Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007673/0.007673, allocations: 99.64 kB / 15.73 MB, free: 6.039 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.002301/0.002301, allocations: 192.1 kB / 16.67 MB, free: 5.961 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 / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.589/2.589, allocations: 437 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 72.11 kB / 1.018 GB, free: 9.926 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6551/0.6571, allocations: 151.6 MB / 1.166 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.00331/0.6604, allocations: 2.011 MB / 1.168 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001185/0.6616, allocations: 0.6897 MB / 1.169 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.6618, allocations: 7.938 kB / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.6619, allocations: 35.61 kB / 1.169 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.662, allocations: 43.58 kB / 1.169 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004368/0.6625, allocations: 155.8 kB / 1.169 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0004854/0.663, allocations: 407.2 kB / 1.169 GB, free: 452 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003516/0.6633, allocations: 243.9 kB / 1.17 GB, free: 208 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.6635, allocations: 139.5 kB / 1.17 GB, free: 68 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002048/0.6637, allocations: 151.3 kB / 1.17 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 6.277e-05/0.6638, allocations: 40 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 9.333e-05/0.6639, allocations: 43.98 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 8.749e-05/0.664, allocations: 79.83 kB / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001572/0.6642, allocations: 155.2 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005063/0.6647, allocations: 446 kB / 1.171 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.6647, allocations: 0 / 1.171 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.242e-06/0.6647, allocations: 0 / 1.171 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.6647, allocations: 0 / 1.171 GB, free: 15.17 MB / 0.9044 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.001007/0.6657, allocations: 0.6064 MB / 1.171 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.6658, allocations: 8.625 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.061e-05/0.6658, allocations: 66.72 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.197e-05/0.6659, allocations: 32.75 kB / 1.171 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003639/0.6663, allocations: 275.8 kB / 1.172 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.852e-05/0.6663, allocations: 25.03 kB / 1.172 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.543e-05/0.6664, allocations: 44.34 kB / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006997/0.6671, allocations: 337 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.6671, allocations: 0 / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.048e-05/0.6672, allocations: 8 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.6672, allocations: 8 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006438/0.6678, allocations: 258 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.6694, allocations: 0.9553 MB / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006934/0.6701, allocations: 271.6 kB / 1.173 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002944/0.6704, allocations: 120.8 kB / 1.174 GB, free: 12 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.6705, allocations: 0 / 1.174 GB, free: 12 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004043/0.6709, allocations: 179.3 kB / 1.174 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=32): time 1.854e-06/0.6709, allocations: 0 / 1.174 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of matching and sorting (n=32): time 0.0008899/0.6718, allocations: 355.8 kB / 1.174 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.6718, allocations: 63.34 kB / 1.174 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.6721, allocations: 203.9 kB / 1.174 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.462e-05/0.6721, allocations: 41.7 kB / 1.174 GB, free: 11.13 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.6722, allocations: 156.8 kB / 1.175 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 7.932e-05/0.6723, allocations: 83.36 kB / 1.175 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.6725, allocations: 94 kB / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001599/0.6726, allocations: 342.8 kB / 1.175 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002885/0.6729, allocations: 104.8 kB / 1.175 GB, free: 10.35 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003271/0.6733, allocations: 165.5 kB / 1.175 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005273/0.6738, allocations: 274.4 kB / 1.176 GB, free: 9.875 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.6738, allocations: 0 / 1.176 GB, free: 9.875 MB / 0.9044 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000753/0.6746, allocations: 370.9 kB / 1.176 GB, free: 9.5 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.672e-05/0.6746, allocations: 36.2 kB / 1.176 GB, free: 9.461 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.6746, allocations: 0 / 1.176 GB, free: 9.461 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.6747, allocations: 4 kB / 1.176 GB, free: 9.457 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002097/0.6749, allocations: 47.84 kB / 1.176 GB, free: 9.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.6749, allocations: 4 kB / 1.176 GB, free: 9.406 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002558/0.6752, allocations: 51.91 kB / 1.176 GB, free: 9.355 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.163e-05/0.6752, allocations: 23.98 kB / 1.176 GB, free: 9.332 MB / 0.9044 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.0001992/0.6754, allocations: 173.7 kB / 1.176 GB, free: 9.152 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.915e-05/0.6755, allocations: 27.84 kB / 1.176 GB, free: 9.125 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006804/0.6761, allocations: 299.1 kB / 1.177 GB, free: 8.828 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.6762, allocations: 4 kB / 1.177 GB, free: 8.824 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.6762, allocations: 0 / 1.177 GB, free: 8.824 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.6762, allocations: 4 kB / 1.177 GB, free: 8.82 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.6774, allocations: 0.7381 MB / 1.177 GB, free: 8.027 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.6774, allocations: 0 / 1.177 GB, free: 8.027 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001512/0.6776, allocations: 39.84 kB / 1.177 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.6776, allocations: 8 kB / 1.177 GB, free: 7.98 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.6776, allocations: 7.938 kB / 1.177 GB, free: 7.973 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.6776, allocations: 4 kB / 1.177 GB, free: 7.969 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.6776, allocations: 0 / 1.177 GB, free: 7.969 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006228/0.6783, allocations: 376.5 kB / 1.178 GB, free: 7.586 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.755e-05/0.6783, allocations: 96.91 kB / 1.178 GB, free: 7.473 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.95e-05/0.6784, allocations: 15.94 kB / 1.178 GB, free: 7.457 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.6786, allocations: 31.95 kB / 1.178 GB, free: 7.426 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.6788, allocations: 39.95 kB / 1.178 GB, free: 7.387 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.6788, allocations: 8 kB / 1.178 GB, free: 7.379 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001129/0.6789, allocations: 131.2 kB / 1.178 GB, free: 7.25 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6789, allocations: 0 / 1.178 GB, free: 7.25 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003401/0.6793, allocations: 71.89 kB / 1.178 GB, free: 7.18 MB / 0.9044 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.001003/0.6803, allocations: 0.9343 MB / 1.179 GB, free: 6.219 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.00069/0.681, allocations: 339.1 kB / 1.179 GB, free: 5.875 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.681, allocations: 0 / 1.179 GB, free: 5.875 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003074/0.6813, allocations: 135.8 kB / 1.179 GB, free: 5.742 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.6817, allocations: 39.92 kB / 1.179 GB, free: 5.703 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.6856, allocations: 2.642 MB / 1.182 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004132/0.686, allocations: 0.7564 MB / 1.183 GB, free: 2.16 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.000114/0.6861, allocations: 30.28 kB / 1.183 GB, free: 2.133 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.6863, allocations: 87.39 kB / 1.183 GB, free: 2.047 MB / 0.9044 GB Notification: Performance of SimCode: time 2.5e-07/0.6863, allocations: 0 / 1.183 GB, free: 2.047 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02776/0.714, allocations: 5.644 MB / 1.188 GB, free: 12.55 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.311/9.025, allocations: 7.062 kB / 1.188 GB, free: 12.55 MB / 0.92 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches