Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00575/0.00575, allocations: 100.1 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 190.6 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.353/2.353, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 64.75 kB / 0.9504 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3019, allocations: 140.4 MB / 1.087 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController): time 0.002155/0.3041, allocations: 0.713 MB / 1.088 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001211/0.3054, allocations: 0.8316 MB / 1.089 GB, free: 448 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.906e-05/0.3054, allocations: 4 kB / 1.089 GB, free: 444 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.613e-05/0.3055, allocations: 3.938 kB / 1.089 GB, free: 440 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.128e-05/0.3056, allocations: 3.938 kB / 1.089 GB, free: 436 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002031/0.3058, allocations: 15.98 kB / 1.089 GB, free: 420 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.833e-05/0.3059, allocations: 43.84 kB / 1.089 GB, free: 376 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.306, allocations: 12 kB / 1.089 GB, free: 364 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.435e-05/0.3061, allocations: 23.84 kB / 1.089 GB, free: 340 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.226e-05/0.3062, allocations: 23.92 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.224e-05/0.3062, allocations: 8 kB / 1.089 GB, free: 308 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.202e-05/0.3063, allocations: 4 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.977e-05/0.3063, allocations: 7.984 kB / 1.089 GB, free: 296 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.926e-05/0.3063, allocations: 19.88 kB / 1.089 GB, free: 276 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001142/0.3064, allocations: 47.84 kB / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3064, allocations: 0 / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3065, allocations: 0 / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.3065, allocations: 3.938 kB / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006986/0.3072, allocations: 382.2 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3072, allocations: 8.031 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.443e-05/0.3073, allocations: 30.75 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.568e-05/0.3073, allocations: 8.844 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.3075, allocations: 173.2 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.3075, allocations: 4.375 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.3075, allocations: 8.375 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002174/0.3077, allocations: 66.11 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3077, allocations: 3.938 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.3078, allocations: 0 / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.3078, allocations: 0 / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.308, allocations: 43.95 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00055/0.3085, allocations: 296.7 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.3088, allocations: 62.47 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.963e-05/0.3089, allocations: 28.98 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.309, allocations: 4.078 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/0.309, allocations: 30.56 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.309, allocations: 0 / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.000378/0.3094, allocations: 93.58 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.3094, allocations: 51.41 kB / 1.09 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.126e-05/0.3095, allocations: 113.8 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.3095, allocations: 25.7 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.433e-05/0.3096, allocations: 100 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.3096, allocations: 7.906 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.3097, allocations: 13.72 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3098, allocations: 326.8 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.398e-05/0.3099, allocations: 15.98 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.358e-05/0.31, allocations: 23.98 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001672/0.3101, allocations: 44.81 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3102, allocations: 0 / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002188/0.3104, allocations: 81.59 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.3104, allocations: 4.375 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.3104, allocations: 0 / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.3104, allocations: 4 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.877e-05/0.3105, allocations: 11.98 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.3105, allocations: 7.938 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.3107, allocations: 23.83 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.3107, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (onOffController.y,$PRE.onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.644e-05/0.3108, allocations: 117.8 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.702e-05/0.3108, allocations: 4 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002666/0.3111, allocations: 85.48 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.3111, allocations: 0 / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.3111, allocations: 3.938 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.3111, allocations: 4 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.3113, allocations: 165.6 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3113, allocations: 4 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.909e-05/0.3114, allocations: 7.984 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3114, allocations: 0 / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.3114, allocations: 0 / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.3114, allocations: 8 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3114, allocations: 0 / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002771/0.3117, allocations: 171.7 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.712e-05/0.3117, allocations: 85.09 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.3118, allocations: 48 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.3119, allocations: 23.97 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.873e-05/0.312, allocations: 7.984 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-06/0.312, allocations: 0 / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.241e-05/0.3121, allocations: 91.27 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3121, allocations: 0 / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002213/0.3123, allocations: 8 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007422/0.3131, allocations: 0.7045 MB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002939/0.3134, allocations: 51.89 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3134, allocations: 0 / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.3135, allocations: 27.97 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.3138, allocations: 8.281 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.3154, allocations: 1.324 MB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.3157, allocations: 0.6846 MB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.956e-05/0.3158, allocations: 4 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.178e-05/0.3158, allocations: 19.42 kB / 1.095 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of SimCode: time 3.51e-07/0.3158, allocations: 3.938 kB / 1.095 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01935/0.3352, allocations: 1.825 MB / 1.097 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.699/8.034, allocations: 5.562 kB / 1.097 GB, free: 8.383 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,onOffController.reference,onOffController.u,onOffController.y Variables in the result:cons2.k,cons2.y,onOffController.bandwidth,onOffController.pre_y_start,onOffController.reference,onOffController.u,onOffController.y,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,sin1.u,sin1.y,time