Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006683/0.006683, allocations: 103.4 kB / 15.73 MB, free: 6.035 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.001305/0.001305, allocations: 189.8 kB / 16.67 MB, free: 5.965 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.977/2.977, allocations: 461.9 MB / 0.7347 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 59.91 kB / 1.054 GB, free: 7.184 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3575, allocations: 157.4 MB / 1.208 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.004028/0.3616, allocations: 1.999 MB / 1.21 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001416/0.3631, allocations: 0.6934 MB / 1.21 GB, free: 6.953 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001863/0.3633, allocations: 4 kB / 1.21 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001704/0.3635, allocations: 35.61 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.3636, allocations: 39.59 kB / 1.21 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005284/0.3642, allocations: 159.8 kB / 1.211 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0006012/0.3648, allocations: 399.3 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004542/0.3653, allocations: 251.8 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002054/0.3655, allocations: 139.5 kB / 1.211 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/0.3657, allocations: 147.3 kB / 1.211 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 7.134e-05/0.3658, allocations: 40 kB / 1.212 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.948e-05/0.3659, allocations: 51.94 kB / 1.212 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.115e-05/0.366, allocations: 79.77 kB / 1.212 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001481/0.3661, allocations: 155.3 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004772/0.3666, allocations: 438.5 kB / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3666, allocations: 0 / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3667, allocations: 0 / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.556e-05/0.3667, allocations: 0 / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001061/0.3677, allocations: 0.6029 MB / 1.213 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.3678, allocations: 8.625 kB / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.834e-05/0.3679, allocations: 32.56 kB / 1.213 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000403/0.3683, allocations: 275.8 kB / 1.213 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.3683, allocations: 29.03 kB / 1.213 GB, free: 4.02 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.266e-05/0.3684, allocations: 32.38 kB / 1.213 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006895/0.3691, allocations: 345.1 kB / 1.213 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.3691, allocations: 3.938 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.119e-05/0.3692, allocations: 12 kB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.3692, allocations: 4 kB / 1.214 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006068/0.3698, allocations: 246.1 kB / 1.214 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.3713, allocations: 0.9552 MB / 1.215 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000655/0.372, allocations: 267.3 kB / 1.215 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002608/0.3722, allocations: 120.8 kB / 1.215 GB, free: 1.98 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.873e-05/0.3723, allocations: 4 kB / 1.215 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004297/0.3727, allocations: 187.2 kB / 1.215 GB, free: 1.781 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=32): time 2.204e-06/0.3727, allocations: 0 / 1.215 GB, free: 1.781 MB / 0.9669 GB Notification: Performance of matching and sorting (n=32): time 0.0008569/0.3736, allocations: 345.8 kB / 1.216 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.509e-05/0.3737, allocations: 59.41 kB / 1.216 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.3739, allocations: 207.3 kB / 1.216 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.475e-05/0.3739, allocations: 41.7 kB / 1.216 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.3741, allocations: 152.6 kB / 1.216 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.844e-05/0.3741, allocations: 82.84 kB / 1.216 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.3743, allocations: 90.11 kB / 1.216 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.3745, allocations: 338.8 kB / 1.216 GB, free: 440 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003214/0.3748, allocations: 108.8 kB / 1.217 GB, free: 332 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003324/0.3752, allocations: 169.5 kB / 1.217 GB, free: 144 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005517/0.3757, allocations: 262.6 kB / 1.217 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3757, allocations: 0 / 1.217 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000759/0.3765, allocations: 366.6 kB / 1.217 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.468e-05/0.3766, allocations: 33.7 kB / 1.217 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.3766, allocations: 160 / 1.217 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.52e-05/0.3766, allocations: 8 kB / 1.217 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/0.3769, allocations: 43.91 kB / 1.217 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/0.3769, allocations: 11.92 kB / 1.217 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.3772, allocations: 51.64 kB / 1.217 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-05/0.3772, allocations: 19.94 kB / 1.218 GB, free: 15.32 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,wseCon.stateGraphRoot.activeSteps,wseCon.T2.t_start,$PRE.wseCon.T2.t_start,wseCon.T2.fire,wseCon.T2.enableFire,wseCon.T2.localCondition,wseCon.on.oldActive,$PRE.wseCon.on.oldActive,wseCon.on.newActive,$PRE.wseCon.on.newActive,wseCon.on.localActive,$PRE.wseCon.on.localActive,wseCon.on.active,wseCon.T1.t_start,$PRE.wseCon.T1.t_start,wseCon.T1.fire,wseCon.T1.enableFire,wseCon.T1.localCondition,wseCon.off.active,wseCon.off.oldActive,$PRE.wseCon.off.oldActive,wseCon.off.newActive,$PRE.wseCon.off.newActive,wseCon.off.localActive,$PRE.wseCon.off.localActive,wseCHWST.count,$PRE.wseCHWST.count,wseCHWST.T_start,$PRE.wseCHWST.T_start,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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.0002037/0.3774, allocations: 184.8 kB / 1.218 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.317e-05/0.3775, allocations: 23.72 kB / 1.218 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006353/0.3781, allocations: 299.2 kB / 1.218 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.3782, allocations: 4 kB / 1.218 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.3782, allocations: 0 / 1.218 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.3782, allocations: 7.922 kB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.3794, allocations: 0.7458 MB / 1.219 GB, free: 14 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.3794, allocations: 4 kB / 1.219 GB, free: 14 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001342/0.3796, allocations: 27.98 kB / 1.219 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.3796, allocations: 0 / 1.219 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.3796, allocations: 8 kB / 1.219 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.3796, allocations: 7.922 kB / 1.219 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3796, allocations: 0 / 1.219 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005715/0.3802, allocations: 376.4 kB / 1.219 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.469e-05/0.3803, allocations: 104.8 kB / 1.219 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.3803, allocations: 4 kB / 1.219 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.3805, allocations: 35.91 kB / 1.219 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.3807, allocations: 43.95 kB / 1.219 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.3807, allocations: 7.984 kB / 1.219 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.745e-05/0.3808, allocations: 127.2 kB / 1.219 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3808, allocations: 0 / 1.219 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003601/0.3812, allocations: 71.84 kB / 1.22 GB, free: 13.16 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.active,wseCon.off.active,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.localActive,wseCon.off.newActive,wseCon.off.oldActive,wseCon.T1.localCondition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.localActive,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.localCondition,wseCon.T2.fire,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001876/0.3814, allocations: 121.4 kB / 1.22 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007016/0.3821, allocations: 332.2 kB / 1.22 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3821, allocations: 0 / 1.22 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002975/0.3824, allocations: 143.8 kB / 1.22 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.3828, allocations: 32.23 kB / 1.22 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009825/0.3838, allocations: 469.3 kB / 1.221 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.3842, allocations: 0.7603 MB / 1.221 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001222/0.3843, allocations: 34.27 kB / 1.221 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.457e-05/0.3844, allocations: 23.44 kB / 1.221 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of SimCode: time 2.8e-07/0.3844, allocations: 3.938 kB / 1.221 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of Templates: time 0.007679/0.3921, allocations: 3.256 MB / 1.225 GB, free: 7.957 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches