Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.0009124/0.0009123, allocations: 102.8 kB / 15.06 MB, free: 1.098 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.001002/0.001002, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.525/1.525, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.515/2.515, allocations: 390.2 MB / 0.6653 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003098/0.0003099, allocations: 8 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8437/0.844, allocations: 142.3 MB / 0.9535 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002223/0.8463, allocations: 1.68 MB / 0.9552 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001083/0.8474, allocations: 0.6721 MB / 0.9558 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.8476, allocations: 4.344 kB / 0.9558 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.8477, allocations: 27.17 kB / 0.9558 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.8478, allocations: 36.47 kB / 0.9559 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.8482, allocations: 102.8 kB / 0.956 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003086/0.8485, allocations: 219.6 kB / 0.9562 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003343/0.8489, allocations: 200.6 kB / 0.9564 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.849, allocations: 100.7 kB / 0.9565 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.8492, allocations: 108 kB / 0.9566 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.656e-05/0.8492, allocations: 12.97 kB / 0.9566 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.361e-05/0.8493, allocations: 24.42 kB / 0.9566 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.371e-05/0.8494, allocations: 60.16 kB / 0.9567 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.321e-05/0.8494, allocations: 70.64 kB / 0.9567 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002688/0.8497, allocations: 308.8 kB / 0.957 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.696e-06/0.8497, allocations: 0 / 0.957 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.184e-06/0.8497, allocations: 0 / 0.957 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.8497, allocations: 1.031 kB / 0.957 GB, free: 5.359 MB / 0.7169 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.0008599/0.8506, allocations: 0.5463 MB / 0.9576 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.8506, allocations: 8.656 kB / 0.9576 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.017e-05/0.8507, allocations: 40.17 kB / 0.9576 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.851, allocations: 263.1 kB / 0.9579 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.298e-05/0.8511, allocations: 23.16 kB / 0.9579 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.707e-05/0.8511, allocations: 34.91 kB / 0.9579 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006219/0.8518, allocations: 335.9 kB / 0.9582 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.8518, allocations: 0 / 0.9582 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.8518, allocations: 10.34 kB / 0.9583 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.8518, allocations: 11.17 kB / 0.9583 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005346/0.8524, allocations: 261.2 kB / 0.9585 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.8537, allocations: 0.9561 MB / 0.9594 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006006/0.8543, allocations: 281.9 kB / 0.9597 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.8543, allocations: 2.75 kB / 0.9597 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004051/0.8547, allocations: 181.5 kB / 0.9599 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=32): time 2.053e-06/0.8547, allocations: 1.156 kB / 0.9599 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of matching and sorting (n=32): time 0.0008468/0.8556, allocations: 374.7 kB / 0.9602 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.8556, allocations: 60.66 kB / 0.9603 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001736/0.8558, allocations: 199 kB / 0.9605 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.688e-05/0.8559, allocations: 39.83 kB / 0.9605 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.224e-05/0.856, allocations: 156.8 kB / 0.9607 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.946e-05/0.856, allocations: 82.48 kB / 0.9608 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.783e-05/0.8561, allocations: 14.5 kB / 0.9608 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.357e-05/0.8561, allocations: 332.6 kB / 0.9611 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/0.8564, allocations: 112.2 kB / 0.9612 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.8567, allocations: 167.4 kB / 0.9614 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002579/0.857, allocations: 140 kB / 0.9615 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.857, allocations: 0 / 0.9615 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006903/0.8577, allocations: 374.4 kB / 0.9619 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.5e-05/0.8577, allocations: 32.55 kB / 0.9619 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.8577, allocations: 0.9688 kB / 0.9619 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.8578, allocations: 8.531 kB / 0.9619 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.858, allocations: 46.22 kB / 0.9619 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.858, allocations: 6.953 kB / 0.9619 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.8582, allocations: 55.31 kB / 0.962 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.942e-05/0.8583, allocations: 17.73 kB / 0.962 GB, free: 1.543 MB / 0.7169 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,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wseCHWST.T_start,wseCHWST.T_start,$PRE.wseCHWST.count,wseCHWST.count,$PRE.wseCon.off.localActive,wseCon.off.localActive,$PRE.wseCon.off.newActive,wseCon.off.newActive,$PRE.wseCon.off.oldActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.condition,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.on.active,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001557/0.8585, allocations: 180.5 kB / 0.9622 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.29e-05/0.8585, allocations: 21.25 kB / 0.9622 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000618/0.8591, allocations: 314.8 kB / 0.9625 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.8591, allocations: 4.125 kB / 0.9625 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.8592, allocations: 0 / 0.9625 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.8592, allocations: 5.047 kB / 0.9625 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.8602, allocations: 0.76 MB / 0.9633 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.8602, allocations: 0 / 0.9633 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001385/0.8603, allocations: 34.25 kB / 0.9633 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.8604, allocations: 6.016 kB / 0.9633 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.8604, allocations: 6.281 kB / 0.9633 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.8604, allocations: 5.062 kB / 0.9633 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.8604, allocations: 3.938 kB / 0.9633 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005578/0.861, allocations: 379.7 kB / 0.9637 GB, free: 344 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.879e-05/0.861, allocations: 99.73 kB / 0.9638 GB, free: 232 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.731e-05/0.8611, allocations: 14.08 kB / 0.9638 GB, free: 220 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.8613, allocations: 41.86 kB / 0.9638 GB, free: 200 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.8614, allocations: 45.47 kB / 0.9639 GB, free: 172 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.8614, allocations: 6.094 kB / 0.9639 GB, free: 172 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.451e-05/0.8615, allocations: 130.8 kB / 0.964 GB, free: 68 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8615, allocations: 4 kB / 0.964 GB, free: 64 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003392/0.8619, allocations: 69.5 kB / 0.9641 GB, free: 44 kB / 0.7169 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.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.condition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.active,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.condition,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001903/0.8621, allocations: 120 kB / 0.9642 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006831/0.8628, allocations: 346.1 kB / 0.9645 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.8628, allocations: 3.938 kB / 0.9645 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002967/0.8631, allocations: 137.5 kB / 0.9646 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.8634, allocations: 32.61 kB / 0.9647 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009207/0.8643, allocations: 0.5107 MB / 0.9652 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.8646, allocations: 0.7658 MB / 0.9659 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001155/0.8648, allocations: 30.38 kB / 0.9659 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.05e-05/0.8649, allocations: 31.94 kB / 0.966 GB, free: 14.53 MB / 0.7325 GB Notification: Performance of SimCode: time 3.1e-07/0.8649, allocations: 0 / 0.966 GB, free: 14.53 MB / 0.7325 GB Notification: Performance of Templates: time 0.006346/0.8712, allocations: 2.723 MB / 0.9686 GB, free: 13.19 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches