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.001118/0.001118, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.00141/0.00141, allocations: 168.7 kB / 15.95 MB, free: 204 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.394/1.394, allocations: 223.3 MB / 240 MB, free: 5.273 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.524/2.524, allocations: 390.9 MB / 0.666 GB, free: 2.488 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003969/0.0003969, allocations: 15.98 kB / 0.8154 GB, free: 13.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7511/0.7515, allocations: 142.4 MB / 0.9544 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.001979/0.7535, allocations: 1.693 MB / 0.9561 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001163/0.7547, allocations: 0.664 MB / 0.9568 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.7549, allocations: 8.094 kB / 0.9568 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.7551, allocations: 27.69 kB / 0.9568 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.7552, allocations: 30.59 kB / 0.9568 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004026/0.7556, allocations: 104.5 kB / 0.9569 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004071/0.756, allocations: 352.3 kB / 0.9572 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003525/0.7564, allocations: 197.3 kB / 0.9574 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.7565, allocations: 91.7 kB / 0.9575 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.7567, allocations: 115.9 kB / 0.9576 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.534e-05/0.7567, allocations: 13.38 kB / 0.9576 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.193e-05/0.7568, allocations: 20.55 kB / 0.9577 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.78e-05/0.7569, allocations: 51.64 kB / 0.9577 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.807e-05/0.7569, allocations: 75.33 kB / 0.9578 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002345/0.7572, allocations: 314.4 kB / 0.9581 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.7572, allocations: 0 / 0.9581 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.393e-06/0.7572, allocations: 0 / 0.9581 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.315e-06/0.7572, allocations: 0 / 0.9581 GB, free: 4.996 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.0007223/0.7579, allocations: 0.5461 MB / 0.9586 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.758, allocations: 9.438 kB / 0.9586 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.739e-05/0.758, allocations: 32.25 kB / 0.9587 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.7583, allocations: 264.8 kB / 0.9589 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.7583, allocations: 31.3 kB / 0.9589 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.722e-05/0.7584, allocations: 30.88 kB / 0.959 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005811/0.759, allocations: 336.9 kB / 0.9593 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.759, allocations: 1.375 kB / 0.9593 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.869e-05/0.759, allocations: 14.73 kB / 0.9593 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.759, allocations: 10.83 kB / 0.9593 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005135/0.7596, allocations: 256.8 kB / 0.9596 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.7609, allocations: 0.9597 MB / 0.9605 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005722/0.7614, allocations: 276.8 kB / 0.9608 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.7617, allocations: 130.4 kB / 0.9609 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.7617, allocations: 2.219 kB / 0.9609 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003846/0.7621, allocations: 175.3 kB / 0.9611 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=32): time 1.613e-06/0.7621, allocations: 0 / 0.9611 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=32): time 0.0008159/0.7629, allocations: 380 kB / 0.9614 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/0.763, allocations: 64.23 kB / 0.9615 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.7632, allocations: 198.5 kB / 0.9617 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.513e-05/0.7632, allocations: 43.42 kB / 0.9617 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.054e-05/0.7633, allocations: 156.7 kB / 0.9619 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.403e-05/0.7633, allocations: 75.2 kB / 0.9619 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.688e-05/0.7634, allocations: 5.906 kB / 0.9619 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.716e-05/0.7634, allocations: 336.8 kB / 0.9623 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.7637, allocations: 111.9 kB / 0.9624 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002616/0.764, allocations: 168.9 kB / 0.9625 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002426/0.7642, allocations: 140.3 kB / 0.9627 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.7642, allocations: 0 / 0.9627 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006536/0.7649, allocations: 386.7 kB / 0.963 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.7649, allocations: 32.67 kB / 0.9631 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.765, allocations: 2.594 kB / 0.9631 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.765, allocations: 2.688 kB / 0.9631 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001966/0.7652, allocations: 50.36 kB / 0.9631 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.7652, allocations: 3 kB / 0.9631 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.7654, allocations: 62.92 kB / 0.9632 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-05/0.7655, allocations: 14.91 kB / 0.9632 GB, free: 1.105 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.0001622/0.7657, allocations: 175.7 kB / 0.9634 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.113e-05/0.7657, allocations: 21.09 kB / 0.9634 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006116/0.7663, allocations: 308.3 kB / 0.9637 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.7663, allocations: 3.75 kB / 0.9637 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.7663, allocations: 3.953 kB / 0.9637 GB, free: 0.7695 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.7664, allocations: 5.266 kB / 0.9637 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.7675, allocations: 0.7675 MB / 0.9644 GB, free: 172 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.7675, allocations: 3.984 kB / 0.9644 GB, free: 168 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/0.7676, allocations: 38.52 kB / 0.9645 GB, free: 152 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.171e-06/0.7676, allocations: 5.672 kB / 0.9645 GB, free: 148 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.7677, allocations: 6.125 kB / 0.9645 GB, free: 144 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.7677, allocations: 2.094 kB / 0.9645 GB, free: 144 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.7677, allocations: 3.984 kB / 0.9645 GB, free: 140 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006561/0.7684, allocations: 375.4 kB / 0.9649 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.518e-05/0.7684, allocations: 98.86 kB / 0.9649 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.719e-05/0.7685, allocations: 19 kB / 0.965 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.7687, allocations: 33.19 kB / 0.965 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.7689, allocations: 45.38 kB / 0.965 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.7689, allocations: 18.86 kB / 0.9651 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001279/0.769, allocations: 130.1 kB / 0.9652 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.769, allocations: 1.031 kB / 0.9652 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003678/0.7694, allocations: 64.53 kB / 0.9652 GB, free: 15.6 MB / 0.7325 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.0001896/0.7696, allocations: 120.7 kB / 0.9654 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007158/0.7703, allocations: 341.3 kB / 0.9657 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.7703, allocations: 1.312 kB / 0.9657 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000307/0.7706, allocations: 144.1 kB / 0.9658 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.771, allocations: 36.33 kB / 0.9659 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009564/0.772, allocations: 0.5171 MB / 0.9664 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.7724, allocations: 0.7566 MB / 0.9671 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001231/0.7725, allocations: 26.31 kB / 0.9671 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.364e-05/0.7726, allocations: 27.98 kB / 0.9672 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of SimCode: time 1.774e-06/0.7726, allocations: 3.938 kB / 0.9672 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of Templates: time 0.007229/0.7798, allocations: 2.733 MB / 0.9698 GB, free: 12.75 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches