Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: 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_10_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_10_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.008733/0.008733, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001491/0.001492, allocations: 191.8 kB / 16.67 MB, free: 5.969 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.562/2.562, allocations: 437 MB / 0.7105 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002499/0.002499, allocations: 67.84 kB / 1.019 GB, free: 9.383 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8523/0.8548, allocations: 151.6 MB / 1.167 GB, free: 3.934 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003087/0.858, allocations: 2.005 MB / 1.169 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001192/0.8592, allocations: 0.6897 MB / 1.169 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.8593, allocations: 4 kB / 1.169 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.8595, allocations: 31.61 kB / 1.169 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.258e-05/0.8596, allocations: 43.53 kB / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.8601, allocations: 155.8 kB / 1.169 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003946/0.8605, allocations: 403.2 kB / 1.17 GB, free: 0.5938 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003198/0.8608, allocations: 247.8 kB / 1.17 GB, free: 360 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.8609, allocations: 139.5 kB / 1.17 GB, free: 220 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.8611, allocations: 143.4 kB / 1.17 GB, free: 76 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.581e-05/0.8612, allocations: 40 kB / 1.17 GB, free: 36 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.8613, allocations: 56.03 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.8614, allocations: 83.66 kB / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.8616, allocations: 155.3 kB / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004216/0.862, allocations: 435.3 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.862, allocations: 0 / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.563e-06/0.862, allocations: 0 / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.862, allocations: 0 / 1.171 GB, free: 15.32 MB / 0.9044 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.0008868/0.8629, allocations: 0.6064 MB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.863, allocations: 15.98 kB / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.502e-05/0.863, allocations: 36.75 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003498/0.8634, allocations: 282.2 kB / 1.172 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.802e-05/0.8634, allocations: 29.03 kB / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.341e-05/0.8635, allocations: 28.38 kB / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006571/0.8641, allocations: 349.1 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.8642, allocations: 0 / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.8642, allocations: 19.94 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.8642, allocations: 4 kB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005654/0.8648, allocations: 246.1 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.8663, allocations: 0.9554 MB / 1.174 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006636/0.867, allocations: 265 kB / 1.174 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002589/0.8673, allocations: 124.8 kB / 1.174 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.8673, allocations: 4 kB / 1.174 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004164/0.8677, allocations: 183.2 kB / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=32): time 2.043e-06/0.8677, allocations: 4 kB / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of matching and sorting (n=32): time 0.0008382/0.8686, allocations: 347.8 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.8686, allocations: 59.41 kB / 1.175 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001898/0.8688, allocations: 203.9 kB / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.672e-05/0.8689, allocations: 41.7 kB / 1.175 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.869, allocations: 160.7 kB / 1.175 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.554e-05/0.8691, allocations: 83.38 kB / 1.175 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.8692, allocations: 94.06 kB / 1.175 GB, free: 11 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.8694, allocations: 334.8 kB / 1.175 GB, free: 10.67 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002593/0.8696, allocations: 108.8 kB / 1.175 GB, free: 10.56 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002825/0.8699, allocations: 173.3 kB / 1.176 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004558/0.8704, allocations: 266.5 kB / 1.176 GB, free: 10.09 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.8704, allocations: 4 kB / 1.176 GB, free: 10.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006562/0.8711, allocations: 366.9 kB / 1.176 GB, free: 9.715 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.147e-05/0.8711, allocations: 33.7 kB / 1.176 GB, free: 9.676 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.8711, allocations: 0 / 1.176 GB, free: 9.676 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.8711, allocations: 4 kB / 1.176 GB, free: 9.672 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.8714, allocations: 43.91 kB / 1.176 GB, free: 9.629 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.8714, allocations: 8.094 kB / 1.176 GB, free: 9.621 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002616/0.8717, allocations: 55.73 kB / 1.176 GB, free: 9.566 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.112e-05/0.8717, allocations: 16 kB / 1.176 GB, free: 9.551 MB / 0.9044 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.000185/0.8719, allocations: 173.7 kB / 1.177 GB, free: 9.371 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.728e-05/0.8719, allocations: 27.86 kB / 1.177 GB, free: 9.344 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006315/0.8726, allocations: 295.2 kB / 1.177 GB, free: 9.051 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.8726, allocations: 7.938 kB / 1.177 GB, free: 9.043 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.8726, allocations: 0 / 1.177 GB, free: 9.043 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.8726, allocations: 3.984 kB / 1.177 GB, free: 9.039 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.8737, allocations: 0.742 MB / 1.178 GB, free: 8.242 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.8737, allocations: 4 kB / 1.178 GB, free: 8.238 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.8738, allocations: 35.91 kB / 1.178 GB, free: 8.203 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.8738, allocations: 0 / 1.178 GB, free: 8.203 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.8739, allocations: 4 kB / 1.178 GB, free: 8.199 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.8739, allocations: 7.938 kB / 1.178 GB, free: 8.191 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.8739, allocations: 0 / 1.178 GB, free: 8.191 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005556/0.8744, allocations: 388.4 kB / 1.178 GB, free: 7.797 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.58e-05/0.8745, allocations: 100.9 kB / 1.178 GB, free: 7.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.761e-05/0.8746, allocations: 7.984 kB / 1.178 GB, free: 7.672 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002481/0.8748, allocations: 31.91 kB / 1.178 GB, free: 7.641 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.8749, allocations: 43.95 kB / 1.178 GB, free: 7.598 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.875, allocations: 7.984 kB / 1.178 GB, free: 7.59 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.957e-05/0.8751, allocations: 131.2 kB / 1.178 GB, free: 7.461 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8751, allocations: 0 / 1.178 GB, free: 7.461 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003418/0.8754, allocations: 71.83 kB / 1.178 GB, free: 7.391 MB / 0.9044 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.0001852/0.8756, allocations: 125.4 kB / 1.179 GB, free: 7.258 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006776/0.8763, allocations: 332.3 kB / 1.179 GB, free: 6.922 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.8763, allocations: 4 kB / 1.179 GB, free: 6.918 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002774/0.8766, allocations: 139.8 kB / 1.179 GB, free: 6.781 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.877, allocations: 40.97 kB / 1.179 GB, free: 6.742 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008769/0.8778, allocations: 460.9 kB / 1.179 GB, free: 6.266 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.8782, allocations: 0.7684 MB / 1.18 GB, free: 5.469 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001095/0.8783, allocations: 34.28 kB / 1.18 GB, free: 5.438 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.159e-05/0.8784, allocations: 23.44 kB / 1.18 GB, free: 5.414 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.8784, allocations: 0 / 1.18 GB, free: 5.414 MB / 0.9044 GB Notification: Performance of Templates: time 0.007101/0.8855, allocations: 3.126 MB / 1.183 GB, free: 2.301 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches