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.006904/0.006904, allocations: 103.2 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.00112/0.00112, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.366/1.366, 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 11.0.1-master/package.mo): time 2.631/2.631, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.00146, allocations: 63.89 kB / 1.054 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9366/0.9381, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.004194/0.9424, allocations: 2.014 MB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001547/0.9439, allocations: 0.6857 MB / 1.21 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002723/0.9442, allocations: 4 kB / 1.21 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002177/0.9445, allocations: 31.61 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001845/0.9447, allocations: 43.59 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006251/0.9453, allocations: 159.8 kB / 1.211 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0005508/0.9459, allocations: 411.2 kB / 1.211 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004561/0.9464, allocations: 243.8 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.9466, allocations: 139.5 kB / 1.211 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002263/0.9468, allocations: 151.3 kB / 1.211 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 8.058e-05/0.9469, allocations: 40 kB / 1.212 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.947, allocations: 48 kB / 1.212 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.901e-05/0.9471, allocations: 79.81 kB / 1.212 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.9473, allocations: 151.2 kB / 1.212 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004592/0.9478, allocations: 434.4 kB / 1.212 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.9478, allocations: 0 / 1.212 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.693e-06/0.9478, allocations: 0 / 1.212 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.389e-05/0.9478, allocations: 0 / 1.212 GB, free: 9.016 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.001103/0.9489, allocations: 0.6125 MB / 1.213 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.949, allocations: 8.031 kB / 1.213 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.82e-05/0.9491, allocations: 36.56 kB / 1.213 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003937/0.9495, allocations: 258.2 kB / 1.213 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.9495, allocations: 29.03 kB / 1.213 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.821e-05/0.9496, allocations: 36.38 kB / 1.213 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006787/0.9503, allocations: 345.1 kB / 1.213 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.9503, allocations: 0 / 1.213 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.9503, allocations: 12 kB / 1.213 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.9503, allocations: 8 kB / 1.213 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005601/0.9509, allocations: 254.1 kB / 1.214 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.9524, allocations: 0.9472 MB / 1.215 GB, free: 6.34 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006238/0.953, allocations: 270.8 kB / 1.215 GB, free: 6.066 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002483/0.9533, allocations: 121.3 kB / 1.215 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.9533, allocations: 4 kB / 1.215 GB, free: 5.941 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003684/0.9537, allocations: 191.2 kB / 1.215 GB, free: 5.742 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=32): time 2.355e-06/0.9537, allocations: 3.938 kB / 1.215 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of matching and sorting (n=32): time 0.0008385/0.9546, allocations: 349.9 kB / 1.216 GB, free: 5.391 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.9546, allocations: 59.39 kB / 1.216 GB, free: 5.32 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.9548, allocations: 207.2 kB / 1.216 GB, free: 5.102 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.337e-05/0.9549, allocations: 41.7 kB / 1.216 GB, free: 5.055 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.955, allocations: 152.6 kB / 1.216 GB, free: 4.902 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 7.726e-05/0.9551, allocations: 78.91 kB / 1.216 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.9552, allocations: 90.11 kB / 1.216 GB, free: 4.73 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.9554, allocations: 342.7 kB / 1.216 GB, free: 4.387 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.9556, allocations: 104.8 kB / 1.217 GB, free: 4.285 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.9559, allocations: 169.5 kB / 1.217 GB, free: 4.102 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004984/0.9564, allocations: 258.7 kB / 1.217 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.9565, allocations: 0 / 1.217 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007098/0.9572, allocations: 370.6 kB / 1.217 GB, free: 3.449 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.9572, allocations: 37.69 kB / 1.217 GB, free: 3.406 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.9572, allocations: 8 kB / 1.217 GB, free: 3.398 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.9573, allocations: 160 / 1.217 GB, free: 3.398 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.9575, allocations: 51.84 kB / 1.217 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.9575, allocations: 4 kB / 1.217 GB, free: 3.344 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002584/0.9578, allocations: 51.66 kB / 1.217 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.856e-05/0.9578, allocations: 12 kB / 1.218 GB, free: 3.281 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.0001839/0.958, allocations: 181.7 kB / 1.218 GB, free: 3.094 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.747e-05/0.958, allocations: 19.72 kB / 1.218 GB, free: 3.074 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006017/0.9587, allocations: 299.2 kB / 1.218 GB, free: 2.777 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.9587, allocations: 4 kB / 1.218 GB, free: 2.773 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.9587, allocations: 0 / 1.218 GB, free: 2.773 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.9587, allocations: 0 / 1.218 GB, free: 2.773 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.9597, allocations: 0.7445 MB / 1.219 GB, free: 1.973 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.9598, allocations: 0 / 1.219 GB, free: 1.973 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.9599, allocations: 27.98 kB / 1.219 GB, free: 1.945 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.9599, allocations: 3.938 kB / 1.219 GB, free: 1.941 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.549e-05/0.9599, allocations: 11.98 kB / 1.219 GB, free: 1.93 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.96, allocations: 3.938 kB / 1.219 GB, free: 1.926 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.96, allocations: 0 / 1.219 GB, free: 1.926 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005911/0.9606, allocations: 389.7 kB / 1.219 GB, free: 1.527 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.282e-05/0.9606, allocations: 100.8 kB / 1.219 GB, free: 1.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.712e-05/0.9607, allocations: 8 kB / 1.219 GB, free: 1.402 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002402/0.9609, allocations: 35.89 kB / 1.219 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.961, allocations: 43.95 kB / 1.219 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-05/0.9611, allocations: 8 kB / 1.219 GB, free: 1.316 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.756e-05/0.9612, allocations: 127.2 kB / 1.219 GB, free: 1.191 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9612, allocations: 0 / 1.219 GB, free: 1.191 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000352/0.9615, allocations: 75.77 kB / 1.22 GB, free: 1.117 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.0001819/0.9617, allocations: 121.4 kB / 1.22 GB, free: 0.9883 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006316/0.9624, allocations: 339.2 kB / 1.22 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.9624, allocations: 0 / 1.22 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002695/0.9627, allocations: 144.9 kB / 1.22 GB, free: 0.5039 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.963, allocations: 27.98 kB / 1.22 GB, free: 488 kB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008012/0.9638, allocations: 461.8 kB / 1.221 GB, free: 4 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.9641, allocations: 0.7564 MB / 1.221 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001157/0.9643, allocations: 26.28 kB / 1.221 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.264e-05/0.9644, allocations: 31.44 kB / 1.221 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of SimCode: time 2.11e-07/0.9644, allocations: 0 / 1.221 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of Templates: time 0.006678/0.971, allocations: 3.147 MB / 1.224 GB, free: 12.04 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/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