Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conEquSta.TBoi|conEquSta.onSys|conEquSta.onPum|conEquSta.onBoi",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff") translateModel(Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conEquSta.TBoi|conEquSta.onSys|conEquSta.onPum|conEquSta.onBoi",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002396/0.002396, allocations: 193.9 kB / 16.14 MB, free: 6.691 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.468/1.468, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.955/2.955, allocations: 474.4 MB / 0.7465 GB, free: 3.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 69.53 kB / 0.9135 GB, free: 32.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3721, allocations: 160.3 MB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff): time 0.002433/0.3745, allocations: 0.8634 MB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001722/0.3763, allocations: 1.17 MB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.582e-05/0.3763, allocations: 0 / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.516e-05/0.3764, allocations: 3.938 kB / 1.072 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.406e-05/0.3765, allocations: 15.86 kB / 1.072 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004451/0.377, allocations: 123.3 kB / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.3771, allocations: 131.7 kB / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.3773, allocations: 35.95 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.838e-05/0.3774, allocations: 47.84 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.3775, allocations: 51.8 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.896e-05/0.3775, allocations: 12 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.547e-05/0.3776, allocations: 19.98 kB / 1.072 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.504e-05/0.3777, allocations: 15.92 kB / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.804e-05/0.3777, allocations: 51.78 kB / 1.073 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002057/0.3779, allocations: 139.9 kB / 1.073 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.378, allocations: 0 / 1.073 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.443e-06/0.378, allocations: 0 / 1.073 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.378, allocations: 0 / 1.073 GB, free: 5.922 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006286/0.3786, allocations: 438.3 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.3787, allocations: 12.03 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.446e-05/0.3787, allocations: 8.844 kB / 1.073 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/0.3788, allocations: 176.2 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.3789, allocations: 8.375 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.686e-05/0.3789, allocations: 12.38 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002199/0.3791, allocations: 82.2 kB / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.3791, allocations: 192 / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.3792, allocations: 3.938 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.3792, allocations: 8 kB / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002086/0.3794, allocations: 55.95 kB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005586/0.38, allocations: 384.5 kB / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.3801, allocations: 62.48 kB / 1.074 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.799e-05/0.3802, allocations: 28.92 kB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.3803, allocations: 0 / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002332/0.3805, allocations: 83.28 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.623e-06/0.3805, allocations: 4 kB / 1.074 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0004201/0.3809, allocations: 129.8 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.381, allocations: 51.41 kB / 1.074 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.3811, allocations: 141.5 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.3812, allocations: 33.64 kB / 1.074 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.995e-05/0.3812, allocations: 104 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.3812, allocations: 11.81 kB / 1.074 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.278e-05/0.3813, allocations: 41.7 kB / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3815, allocations: 318.8 kB / 1.075 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.3816, allocations: 47.97 kB / 1.075 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.3818, allocations: 83.33 kB / 1.075 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/0.3821, allocations: 124.3 kB / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3821, allocations: 0 / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004071/0.3825, allocations: 187.2 kB / 1.075 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/0.3825, allocations: 41.69 kB / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.3826, allocations: 0 / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.3826, allocations: 4.062 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-05/0.3827, allocations: 8 kB / 1.075 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.3827, allocations: 3.984 kB / 1.075 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.3829, allocations: 43.8 kB / 1.075 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.3829, allocations: 4 kB / 1.075 GB, free: 2.961 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,onSys.y,$PRE.onSys.y,conEquSta.hys.y,$PRE.conEquSta.hys.y,conEquSta.onBoi) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001184/0.3831, allocations: 135.8 kB / 1.075 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.3831, allocations: 4 kB / 1.075 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.854e-05/0.3831, allocations: 12.36 kB / 1.075 GB, free: 2.801 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.3831, allocations: 4 kB / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.3832, allocations: 0 / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3832, allocations: 3.938 kB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/0.3833, allocations: 193.5 kB / 1.076 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3833, allocations: 0 / 1.076 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.631e-05/0.3834, allocations: 4 kB / 1.076 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3834, allocations: 0 / 1.076 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.3834, allocations: 11.98 kB / 1.076 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.3834, allocations: 4 kB / 1.076 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3834, allocations: 0 / 1.076 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002668/0.3837, allocations: 121 kB / 1.076 GB, free: 2.398 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.088e-05/0.3838, allocations: 89 kB / 1.076 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.3838, allocations: 0 / 1.076 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.676e-05/0.3839, allocations: 12.17 kB / 1.076 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.775e-05/0.3839, allocations: 19.92 kB / 1.076 GB, free: 2.262 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.3839, allocations: 7.938 kB / 1.076 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.216e-05/0.384, allocations: 91.27 kB / 1.076 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.384, allocations: 4 kB / 1.076 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002153/0.3842, allocations: 20 kB / 1.076 GB, free: 2.141 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,conEquSta.onBoi,conEquSta.hys.y,onSys.y) * Number of discrete states: 1 (conEquSta.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001409/0.3844, allocations: 107.3 kB / 1.076 GB, free: 2.027 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003866/0.3848, allocations: 175.2 kB / 1.076 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3848, allocations: 0 / 1.076 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.3849, allocations: 35.97 kB / 1.076 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002105/0.3851, allocations: 11.98 kB / 1.076 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003881/0.3855, allocations: 193.1 kB / 1.076 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.3858, allocations: 0.6926 MB / 1.077 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.198e-05/0.3858, allocations: 4 kB / 1.077 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.242e-05/0.3859, allocations: 19.42 kB / 1.077 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of SimCode: time 5.01e-07/0.3859, allocations: 4 kB / 1.077 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of Templates: time 0.003816/0.3897, allocations: 1.454 MB / 1.079 GB, free: 15.4 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.makefile (rm -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.sim & ./Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_CDL_Controls_Validation_EquipmentOnOff.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches