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.001417/0.001417, allocations: 106.9 kB / 16.41 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.001555/0.001556, allocations: 183 kB / 17.34 MB, free: 5.766 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.702/2.702, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 60.12 kB / 1.055 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7722/0.7735, allocations: 157.4 MB / 1.208 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003556/0.7771, allocations: 2.025 MB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001295/0.7785, allocations: 0.6741 MB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.7786, allocations: 4 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.7788, allocations: 35.55 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.7789, allocations: 39.66 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005018/0.7794, allocations: 163.7 kB / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004989/0.78, allocations: 403.2 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003918/0.7804, allocations: 247.8 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.7805, allocations: 143.5 kB / 1.212 GB, free: 9.945 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.7807, allocations: 147.4 kB / 1.212 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.399e-05/0.7808, allocations: 40 kB / 1.212 GB, free: 9.762 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.7809, allocations: 48 kB / 1.212 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.941e-05/0.781, allocations: 83.8 kB / 1.212 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001665/0.7812, allocations: 147.3 kB / 1.212 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000454/0.7817, allocations: 438.3 kB / 1.213 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.7817, allocations: 0 / 1.213 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.643e-06/0.7817, allocations: 0 / 1.213 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.031e-05/0.7817, allocations: 0 / 1.213 GB, free: 9.062 MB / 0.9356 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.0009928/0.7827, allocations: 0.6047 MB / 1.213 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.7827, allocations: 12.03 kB / 1.213 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.676e-05/0.7828, allocations: 36.55 kB / 1.214 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000354/0.7832, allocations: 263.9 kB / 1.214 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.366e-05/0.7832, allocations: 29.03 kB / 1.214 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.843e-05/0.7833, allocations: 32.38 kB / 1.214 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006625/0.784, allocations: 345.2 kB / 1.214 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.784, allocations: 0 / 1.214 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.953e-05/0.784, allocations: 12 kB / 1.214 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.784, allocations: 8 kB / 1.214 GB, free: 7.637 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005858/0.7846, allocations: 250 kB / 1.214 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/0.7861, allocations: 0.9588 MB / 1.215 GB, free: 6.379 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000656/0.7868, allocations: 270.8 kB / 1.216 GB, free: 6.105 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000262/0.7871, allocations: 125.3 kB / 1.216 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.7871, allocations: 4 kB / 1.216 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003922/0.7875, allocations: 183.2 kB / 1.216 GB, free: 5.785 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=32): time 2.414e-06/0.7875, allocations: 0 / 1.216 GB, free: 5.785 MB / 0.9356 GB Notification: Performance of matching and sorting (n=32): time 0.0008971/0.7884, allocations: 353.8 kB / 1.216 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.7885, allocations: 55.41 kB / 1.216 GB, free: 5.367 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002068/0.7887, allocations: 211.2 kB / 1.217 GB, free: 5.145 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.352e-05/0.7888, allocations: 45.69 kB / 1.217 GB, free: 5.094 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.7889, allocations: 156.6 kB / 1.217 GB, free: 4.938 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 8.015e-05/0.789, allocations: 74.91 kB / 1.217 GB, free: 4.863 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.7891, allocations: 90.11 kB / 1.217 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.7892, allocations: 338.8 kB / 1.217 GB, free: 4.43 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002896/0.7895, allocations: 108.8 kB / 1.217 GB, free: 4.324 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002999/0.7898, allocations: 165.5 kB / 1.217 GB, free: 4.145 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004868/0.7903, allocations: 258.7 kB / 1.218 GB, free: 3.867 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.7903, allocations: 3.938 kB / 1.218 GB, free: 3.863 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007187/0.7911, allocations: 374.6 kB / 1.218 GB, free: 3.484 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/0.7911, allocations: 29.7 kB / 1.218 GB, free: 3.449 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.7911, allocations: 4 kB / 1.218 GB, free: 3.445 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.7911, allocations: 4.156 kB / 1.218 GB, free: 3.441 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.7914, allocations: 39.91 kB / 1.218 GB, free: 3.402 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.7914, allocations: 7.984 kB / 1.218 GB, free: 3.395 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002864/0.7917, allocations: 55.66 kB / 1.218 GB, free: 3.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/0.7917, allocations: 12 kB / 1.218 GB, free: 3.328 MB / 0.9356 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.0002045/0.7919, allocations: 185.7 kB / 1.218 GB, free: 3.137 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.063e-05/0.792, allocations: 19.72 kB / 1.218 GB, free: 3.117 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006522/0.7926, allocations: 295.2 kB / 1.219 GB, free: 2.824 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.7927, allocations: 4 kB / 1.219 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.7927, allocations: 3.984 kB / 1.219 GB, free: 2.816 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.7927, allocations: 0 / 1.219 GB, free: 2.816 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.7938, allocations: 0.7445 MB / 1.219 GB, free: 2.016 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.7938, allocations: 0 / 1.219 GB, free: 2.016 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.794, allocations: 31.92 kB / 1.219 GB, free: 1.984 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.802e-06/0.794, allocations: 7.938 kB / 1.219 GB, free: 1.977 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.17e-05/0.794, allocations: 7.984 kB / 1.219 GB, free: 1.969 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.794, allocations: 7.938 kB / 1.219 GB, free: 1.961 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.794, allocations: 0 / 1.219 GB, free: 1.961 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005912/0.7946, allocations: 377.8 kB / 1.22 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.215e-05/0.7947, allocations: 104.8 kB / 1.22 GB, free: 1.453 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.7948, allocations: 11.94 kB / 1.22 GB, free: 1.441 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.795, allocations: 35.91 kB / 1.22 GB, free: 1.406 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.7951, allocations: 39.94 kB / 1.22 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.7952, allocations: 12 kB / 1.22 GB, free: 1.355 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.755e-05/0.7953, allocations: 127.2 kB / 1.22 GB, free: 1.23 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.945e-06/0.7953, allocations: 0 / 1.22 GB, free: 1.23 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000344/0.7956, allocations: 67.78 kB / 1.22 GB, free: 1.164 MB / 0.9356 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.0001679/0.7958, allocations: 121.5 kB / 1.22 GB, free: 1.035 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006659/0.7965, allocations: 339.2 kB / 1.221 GB, free: 0.6914 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.7965, allocations: 0 / 1.221 GB, free: 0.6914 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002758/0.7968, allocations: 136.9 kB / 1.221 GB, free: 0.5586 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.7971, allocations: 28.3 kB / 1.221 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009428/0.7981, allocations: 479.2 kB / 1.221 GB, free: 36 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.7985, allocations: 0.7603 MB / 1.222 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.698e-05/0.7986, allocations: 27.42 kB / 1.222 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of SimCode: time 4.01e-07/0.7986, allocations: 0 / 1.222 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of Templates: time 0.006309/0.8049, allocations: 3.509 MB / 1.225 GB, free: 11.72 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