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.001221/0.001221, allocations: 112.2 kB / 16.42 MB, free: 6.5 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.001177/0.001177, allocations: 186.6 kB / 17.35 MB, free: 5.758 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.476/1.476, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.698/2.698, allocations: 469.4 MB / 0.7428 GB, free: 3.602 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 63.73 kB / 1.065 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8562/0.8577, allocations: 159.1 MB / 1.221 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003436/0.8612, allocations: 2.021 MB / 1.223 GB, free: 360 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001427/0.8626, allocations: 0.6751 MB / 1.224 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001916/0.8628, allocations: 7.938 kB / 1.224 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.863, allocations: 35.59 kB / 1.224 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001347/0.8632, allocations: 39.59 kB / 1.224 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005517/0.8637, allocations: 155.8 kB / 1.224 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0005559/0.8643, allocations: 415.1 kB / 1.224 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004122/0.8647, allocations: 251.8 kB / 1.224 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002237/0.865, allocations: 135.5 kB / 1.225 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002081/0.8652, allocations: 147.4 kB / 1.225 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.708e-05/0.8652, allocations: 40 kB / 1.225 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.8654, allocations: 47.98 kB / 1.225 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.337e-05/0.8655, allocations: 83.75 kB / 1.225 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001526/0.8656, allocations: 151.2 kB / 1.225 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005081/0.8661, allocations: 438.4 kB / 1.225 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.8661, allocations: 0 / 1.225 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8662, allocations: 4 kB / 1.225 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.451e-05/0.8662, allocations: 0 / 1.225 GB, free: 13.76 MB / 0.9512 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.001071/0.8673, allocations: 0.6047 MB / 1.226 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.8673, allocations: 8.625 kB / 1.226 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.574e-05/0.8674, allocations: 32.56 kB / 1.226 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004256/0.8678, allocations: 274.6 kB / 1.226 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.781e-05/0.8679, allocations: 29.03 kB / 1.226 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.227e-05/0.868, allocations: 36.31 kB / 1.226 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006904/0.8687, allocations: 337.2 kB / 1.227 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.8687, allocations: 7.984 kB / 1.227 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.513e-05/0.8687, allocations: 19.94 kB / 1.227 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.8688, allocations: 8 kB / 1.227 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006025/0.8694, allocations: 246 kB / 1.227 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.871, allocations: 0.9512 MB / 1.228 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006525/0.8716, allocations: 266.9 kB / 1.228 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002707/0.8719, allocations: 132.8 kB / 1.228 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.872, allocations: 8 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003953/0.8724, allocations: 179.8 kB / 1.228 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=32): time 2.645e-06/0.8724, allocations: 0 / 1.228 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of matching and sorting (n=32): time 0.000893/0.8733, allocations: 349.2 kB / 1.229 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.8733, allocations: 63.41 kB / 1.229 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.8735, allocations: 203.3 kB / 1.229 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.366e-05/0.8736, allocations: 41.7 kB / 1.229 GB, free: 9.789 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.8737, allocations: 148.6 kB / 1.229 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 9.134e-05/0.8738, allocations: 86.89 kB / 1.229 GB, free: 9.555 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/0.8739, allocations: 86.11 kB / 1.229 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.8741, allocations: 338.8 kB / 1.23 GB, free: 9.121 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002834/0.8744, allocations: 112.8 kB / 1.23 GB, free: 9.012 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002931/0.8747, allocations: 161.5 kB / 1.23 GB, free: 8.84 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005059/0.8752, allocations: 262.6 kB / 1.23 GB, free: 8.559 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.8752, allocations: 0 / 1.23 GB, free: 8.559 MB / 0.9512 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007211/0.8759, allocations: 374.7 kB / 1.231 GB, free: 8.18 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.037e-05/0.876, allocations: 37.7 kB / 1.231 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.876, allocations: 0 / 1.231 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.876, allocations: 4 kB / 1.231 GB, free: 8.133 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.8762, allocations: 43.91 kB / 1.231 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.624e-05/0.8762, allocations: 4 kB / 1.231 GB, free: 8.086 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002884/0.8765, allocations: 55.64 kB / 1.231 GB, free: 8.031 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.451e-05/0.8766, allocations: 20 kB / 1.231 GB, free: 8.012 MB / 0.9512 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.0002082/0.8768, allocations: 177.6 kB / 1.231 GB, free: 7.832 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.121e-05/0.8769, allocations: 23.72 kB / 1.231 GB, free: 7.809 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006503/0.8775, allocations: 291.2 kB / 1.231 GB, free: 7.52 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.8775, allocations: 3.984 kB / 1.231 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.8775, allocations: 4 kB / 1.231 GB, free: 7.512 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.017e-05/0.8776, allocations: 104.8 kB / 1.231 GB, free: 7.391 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.414e-05/0.8777, allocations: 8 kB / 1.231 GB, free: 7.383 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002463/0.8779, allocations: 35.89 kB / 1.231 GB, free: 7.348 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.8781, allocations: 39.95 kB / 1.231 GB, free: 7.309 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008059/0.8789, allocations: 382 kB / 1.232 GB, free: 6.93 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006259/0.8795, allocations: 450.4 kB / 1.232 GB, free: 6.473 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002703/0.8798, allocations: 131.9 kB / 1.232 GB, free: 6.344 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001148/0.8799, allocations: 139.7 kB / 1.232 GB, free: 6.207 MB / 0.9512 GB Notification: Performance of Backend: time 5.71e-07/0.8799, allocations: 4 kB / 1.232 GB, free: 6.203 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008281/0.8808, allocations: 323.8 kB / 1.233 GB, free: 5.867 MB / 0.9512 GB Notification: Performance of SimCode: time 0.001036/0.8818, allocations: 0.8463 MB / 1.234 GB, free: 4.977 MB / 0.9512 GB Notification: Performance of Templates: time 0.007817/0.8896, allocations: 3.465 MB / 1.237 GB, free: 1.531 MB / 0.9512 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/jenkins1/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