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.288/2.288, allocations: 390.3 MB / 402.8 MB, free: 6.73 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.001216/0.001217, allocations: 180.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.693/1.693, allocations: 221.3 MB / 0.7915 GB, free: 5.422 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.0009737/0.0009739, allocations: 87.91 kB / 0.9317 GB, free: 5.742 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.016e-05/4.02e-05, allocations: 5.797 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3655, allocations: 143 MB / 1.219 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.181/1.547, allocations: 153.4 MB / 1.369 GB, free: 0.668 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/1.547, allocations: 94.42 kB / 1.369 GB, free: 0.6094 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0135/1.561, allocations: 4.735 MB / 1.373 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.425e-06/1.561, allocations: 0 / 1.373 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.577e-05/1.561, allocations: 8 kB / 1.373 GB, free: 12.57 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.001145/1.562, allocations: 0.5421 MB / 1.374 GB, free: 12 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.095e-05/1.562, allocations: 12.03 kB / 1.374 GB, free: 11.99 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001568/1.562, allocations: 66.84 kB / 1.374 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/1.562, allocations: 31.62 kB / 1.374 GB, free: 11.9 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/1.563, allocations: 262.1 kB / 1.374 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.606e-05/1.563, allocations: 22.91 kB / 1.374 GB, free: 11.63 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.58e-05/1.563, allocations: 39.8 kB / 1.374 GB, free: 11.6 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006384/1.564, allocations: 311.3 kB / 1.375 GB, free: 11.38 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/1.564, allocations: 3.953 kB / 1.375 GB, free: 11.38 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/1.564, allocations: 13 kB / 1.375 GB, free: 11.38 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/1.564, allocations: 12 kB / 1.375 GB, free: 11.36 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004559/1.564, allocations: 215.9 kB / 1.375 GB, free: 11.22 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/1.566, allocations: 0.9511 MB / 1.376 GB, free: 10.44 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005167/1.566, allocations: 230.7 kB / 1.376 GB, free: 10.28 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/1.567, allocations: 110.1 kB / 1.376 GB, free: 10.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/1.567, allocations: 7.5 kB / 1.376 GB, free: 10.2 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003178/1.567, allocations: 166.8 kB / 1.376 GB, free: 10.06 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=32): time 4.839e-06/1.567, allocations: 7.875 kB / 1.376 GB, free: 10.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=32): time 0.0004749/1.568, allocations: 231.3 kB / 1.376 GB, free: 9.871 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/1.568, allocations: 55.41 kB / 1.377 GB, free: 9.805 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/1.568, allocations: 179.6 kB / 1.377 GB, free: 9.645 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.814e-05/1.568, allocations: 44.77 kB / 1.377 GB, free: 9.605 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/1.568, allocations: 159.5 kB / 1.377 GB, free: 9.465 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.145e-05/1.568, allocations: 77.97 kB / 1.377 GB, free: 9.398 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.648e-05/1.568, allocations: 6.938 kB / 1.377 GB, free: 9.398 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001534/1.568, allocations: 337.7 kB / 1.377 GB, free: 9.07 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/1.568, allocations: 88.12 kB / 1.377 GB, free: 9.02 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/1.569, allocations: 139.8 kB / 1.378 GB, free: 8.902 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/1.569, allocations: 123.5 kB / 1.378 GB, free: 8.805 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/1.569, allocations: 4 kB / 1.378 GB, free: 8.801 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005563/1.569, allocations: 324.4 kB / 1.378 GB, free: 8.543 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.29e-05/1.57, allocations: 33.84 kB / 1.378 GB, free: 8.504 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/1.57, allocations: 8 kB / 1.378 GB, free: 8.496 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/1.57, allocations: 7.953 kB / 1.378 GB, free: 8.488 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002146/1.57, allocations: 43.34 kB / 1.378 GB, free: 8.449 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/1.57, allocations: 4 kB / 1.378 GB, free: 8.445 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002766/1.57, allocations: 47.31 kB / 1.378 GB, free: 8.402 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/1.57, allocations: 15.69 kB / 1.378 GB, free: 8.391 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.0001382/1.57, allocations: 143.2 kB / 1.378 GB, free: 8.258 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.198e-05/1.57, allocations: 23.72 kB / 1.378 GB, free: 8.234 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005114/1.571, allocations: 270.7 kB / 1.379 GB, free: 8.039 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/1.571, allocations: 7.953 kB / 1.379 GB, free: 8.031 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/1.571, allocations: 4 kB / 1.379 GB, free: 8.027 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/1.571, allocations: 3.984 kB / 1.379 GB, free: 8.023 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/1.572, allocations: 0.7121 MB / 1.379 GB, free: 7.398 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/1.572, allocations: 7.953 kB / 1.379 GB, free: 7.391 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/1.572, allocations: 31.36 kB / 1.379 GB, free: 7.363 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.543e-06/1.572, allocations: 8 kB / 1.379 GB, free: 7.355 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/1.572, allocations: 6.734 kB / 1.379 GB, free: 7.352 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/1.572, allocations: 0 / 1.379 GB, free: 7.352 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/1.572, allocations: 4 kB / 1.379 GB, free: 7.348 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000422/1.573, allocations: 325.9 kB / 1.38 GB, free: 7.07 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.169e-05/1.573, allocations: 112.6 kB / 1.38 GB, free: 6.941 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.064e-05/1.573, allocations: 7.875 kB / 1.38 GB, free: 6.938 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002428/1.573, allocations: 35.28 kB / 1.38 GB, free: 6.906 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/1.573, allocations: 40.75 kB / 1.38 GB, free: 6.875 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/1.573, allocations: 15.05 kB / 1.38 GB, free: 6.863 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000113/1.573, allocations: 129 kB / 1.38 GB, free: 6.75 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.573, allocations: 0 / 1.38 GB, free: 6.75 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003551/1.574, allocations: 62.38 kB / 1.38 GB, free: 6.699 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.0008843/1.575, allocations: 0.9025 MB / 1.381 GB, free: 5.836 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004921/1.575, allocations: 300 kB / 1.381 GB, free: 5.598 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/1.575, allocations: 320 / 1.381 GB, free: 5.598 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002105/1.575, allocations: 131.9 kB / 1.381 GB, free: 5.504 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/1.576, allocations: 19.86 kB / 1.381 GB, free: 5.492 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009927/1.577, allocations: 395.9 kB / 1.382 GB, free: 5.137 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/1.577, allocations: 0.7642 MB / 1.382 GB, free: 4.344 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001388/1.577, allocations: 34.06 kB / 1.382 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/1.577, allocations: 88.64 kB / 1.383 GB, free: 4.273 MB / 0.8386 GB Notification: Performance of SimCode: time 1.303e-06/1.577, allocations: 0 / 1.383 GB, free: 4.273 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02169/1.599, allocations: 5.068 MB / 1.387 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002222/1.599, allocations: 183.8 kB / 1.388 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.048/3.648, allocations: 0 / 1.388 GB, free: 15.17 MB / 0.8542 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