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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_latest_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/Buildings 10.0.0-master/package.mo): time 2.381/2.381, allocations: 390.5 MB / 398 MB, free: 10.94 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 184.8 kB / 491.2 MB, free: 1.594 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.686/1.686, allocations: 221.5 MB / 0.7868 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009526/0.0009527, allocations: 107.4 kB / 0.9269 GB, free: 13.86 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.971e-05/1.974e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3288, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.229/1.558, allocations: 152.7 MB / 1.362 GB, free: 17.57 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/1.558, allocations: 92.05 kB / 1.362 GB, free: 17.57 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01226/1.571, allocations: 4.669 MB / 1.366 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.803e-06/1.571, allocations: 0 / 1.366 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.239e-05/1.571, allocations: 11.66 kB / 1.366 GB, free: 32.95 MB / 0.8386 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.0008847/1.572, allocations: 0.5456 MB / 1.367 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/1.572, allocations: 11.69 kB / 1.367 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.462e-05/1.572, allocations: 31.09 kB / 1.367 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/1.572, allocations: 262.1 kB / 1.367 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.836e-05/1.572, allocations: 18.97 kB / 1.367 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.546e-05/1.572, allocations: 18.97 kB / 1.367 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003975/1.573, allocations: 199.5 kB / 1.367 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00045/1.573, allocations: 276.5 kB / 1.368 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/1.573, allocations: 0 / 1.368 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.248e-05/1.573, allocations: 2.906 kB / 1.368 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/1.573, allocations: 7.812 kB / 1.368 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001343/1.574, allocations: 0.8865 MB / 1.368 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004031/1.575, allocations: 215.1 kB / 1.369 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/1.575, allocations: 99.91 kB / 1.369 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/1.575, allocations: 3.969 kB / 1.369 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000266/1.575, allocations: 150.6 kB / 1.369 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=32): time 2.845e-06/1.575, allocations: 0 / 1.369 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=32): time 0.000387/1.576, allocations: 218.7 kB / 1.369 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/1.576, allocations: 58.66 kB / 1.369 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/1.576, allocations: 164.9 kB / 1.369 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/1.576, allocations: 36.23 kB / 1.369 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.935e-05/1.576, allocations: 151.5 kB / 1.369 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.912e-05/1.576, allocations: 75.7 kB / 1.37 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.597e-05/1.576, allocations: 0 / 1.37 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001269/1.576, allocations: 334.3 kB / 1.37 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/1.576, allocations: 83.41 kB / 1.37 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/1.577, allocations: 143.5 kB / 1.37 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/1.577, allocations: 69.86 kB / 1.37 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/1.577, allocations: 0 / 1.37 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003632/1.577, allocations: 271.5 kB / 1.37 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/1.577, allocations: 39.02 kB / 1.37 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/1.577, allocations: 0 / 1.37 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/1.577, allocations: 10.36 kB / 1.37 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/1.577, allocations: 41.28 kB / 1.37 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/1.577, allocations: 7.797 kB / 1.37 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002222/1.578, allocations: 43.61 kB / 1.37 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.968e-05/1.578, allocations: 18.83 kB / 1.371 GB, free: 30.84 MB / 0.8386 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.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.T1.condition,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete 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.0001174/1.578, allocations: 123.9 kB / 1.371 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002893/1.578, allocations: 213.6 kB / 1.371 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.786e-05/1.578, allocations: 22.06 kB / 1.371 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004058/1.579, allocations: 244.1 kB / 1.371 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/1.579, allocations: 11.72 kB / 1.371 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/1.579, allocations: 0 / 1.371 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/1.579, allocations: 0 / 1.371 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007664/1.579, allocations: 0.6376 MB / 1.372 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/1.579, allocations: 3.938 kB / 1.372 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001355/1.58, allocations: 40.61 kB / 1.372 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/1.58, allocations: 2.578 kB / 1.372 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/1.58, allocations: 3.875 kB / 1.372 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/1.58, allocations: 0 / 1.372 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.58, allocations: 0 / 1.372 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003314/1.58, allocations: 323.5 kB / 1.372 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.906e-05/1.58, allocations: 99.31 kB / 1.372 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.58e-05/1.58, allocations: 3.953 kB / 1.372 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/1.58, allocations: 27.7 kB / 1.372 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/1.58, allocations: 47.52 kB / 1.372 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/1.58, allocations: 11.14 kB / 1.372 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.467e-05/1.58, allocations: 124.5 kB / 1.372 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.58, allocations: 0 / 1.372 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002967/1.581, allocations: 46.31 kB / 1.372 GB, free: 29.96 MB / 0.8386 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.fire,wseCon.T1.t_start,wseCon.T1.condition,wseCon.on.newActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.fire,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * 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.0006774/1.581, allocations: 0.8736 MB / 1.373 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003457/1.582, allocations: 274 kB / 1.374 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/1.582, allocations: 0 / 1.374 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001391/1.582, allocations: 111.6 kB / 1.374 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/1.582, allocations: 24.7 kB / 1.374 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007554/1.583, allocations: 362.9 kB / 1.374 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/1.583, allocations: 0.7739 MB / 1.375 GB, free: 28.32 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001161/1.584, allocations: 33.27 kB / 1.375 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/1.584, allocations: 81.75 kB / 1.375 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/1.584, allocations: 0 / 1.375 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02577/1.61, allocations: 4.496 MB / 1.379 GB, free: 27.98 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001791/1.61, allocations: 172.3 kB / 1.379 GB, free: 27.79 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/3.562, allocations: 0 / 1.379 GB, free: 27.79 MB / 0.8386 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat does not exist to compare? outputFormat=mat