Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.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.BatteryControl,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",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.508/2.508, allocations: 390.5 MB / 398 MB, free: 10.97 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.001146/0.001146, allocations: 176.6 kB / 491.2 MB, free: 1.621 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.662/1.662, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001251/0.001251, allocations: 79.97 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.375e-05/2.38e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.3499, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.202/1.552, allocations: 153.5 MB / 1.362 GB, free: 17.51 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/1.552, allocations: 91.34 kB / 1.362 GB, free: 17.51 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0205/1.573, allocations: 8.238 MB / 1.37 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.266e-06/1.573, allocations: 0 / 1.37 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.029e-05/1.573, allocations: 12.22 kB / 1.37 GB, free: 32.66 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001374/1.574, allocations: 0.6232 MB / 1.371 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.927e-05/1.574, allocations: 11.53 kB / 1.371 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/1.574, allocations: 54.38 kB / 1.371 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000502/1.575, allocations: 336.2 kB / 1.371 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.215e-05/1.575, allocations: 26.53 kB / 1.371 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.342e-05/1.575, allocations: 31.09 kB / 1.371 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007059/1.576, allocations: 375.1 kB / 1.372 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008874/1.577, allocations: 493.6 kB / 1.372 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/1.577, allocations: 4 kB / 1.372 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.37e-05/1.577, allocations: 0 / 1.372 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.568e-05/1.577, allocations: 20.44 kB / 1.372 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/1.579, allocations: 1.82 MB / 1.374 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000529/1.58, allocations: 363.8 kB / 1.374 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/1.58, allocations: 175.2 kB / 1.375 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 7.072e-05/1.58, allocations: 7.656 kB / 1.375 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003665/1.58, allocations: 246.8 kB / 1.375 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.884e-06/1.58, allocations: 0 / 1.375 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0006549/1.581, allocations: 325.2 kB / 1.375 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.978e-05/1.581, allocations: 120.3 kB / 1.375 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/1.581, allocations: 214.3 kB / 1.375 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.173e-05/1.581, allocations: 40.8 kB / 1.376 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/1.582, allocations: 216.2 kB / 1.376 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/1.582, allocations: 99.77 kB / 1.376 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.132e-05/1.582, allocations: 3.906 kB / 1.376 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001419/1.582, allocations: 343 kB / 1.376 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002239/1.582, allocations: 142.5 kB / 1.376 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/1.582, allocations: 270.6 kB / 1.377 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/1.583, allocations: 156.1 kB / 1.377 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/1.583, allocations: 0 / 1.377 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0006476/1.583, allocations: 446.3 kB / 1.377 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/1.583, allocations: 7.812 kB / 1.377 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/1.583, allocations: 3.844 kB / 1.377 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/1.583, allocations: 3.875 kB / 1.377 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/1.584, allocations: 69.52 kB / 1.377 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/1.584, allocations: 15.69 kB / 1.377 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/1.584, allocations: 37.03 kB / 1.377 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.659e-05/1.584, allocations: 22.56 kB / 1.377 GB, free: 29.6 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 59 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,$PRE.con.t3.t_start,con.t3.t_start,$PRE.con.t4.t_start,con.t4.t_start,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * 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.0001582/1.584, allocations: 163 kB / 1.377 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004487/1.585, allocations: 312.8 kB / 1.378 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.033e-05/1.585, allocations: 31.2 kB / 1.378 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006865/1.585, allocations: 376.8 kB / 1.378 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/1.585, allocations: 7.812 kB / 1.378 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/1.585, allocations: 64 / 1.378 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/1.585, allocations: 10.81 kB / 1.378 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00136/1.587, allocations: 0.9511 MB / 1.379 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/1.587, allocations: 0 / 1.379 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/1.587, allocations: 39.98 kB / 1.379 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/1.587, allocations: 11.83 kB / 1.379 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/1.587, allocations: 3.844 kB / 1.379 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/1.587, allocations: 3.938 kB / 1.379 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.587, allocations: 3.328 kB / 1.379 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006224/1.588, allocations: 0.4995 MB / 1.38 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.833e-05/1.588, allocations: 107.4 kB / 1.38 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.752e-05/1.588, allocations: 3.844 kB / 1.38 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/1.588, allocations: 25.34 kB / 1.38 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/1.588, allocations: 69.53 kB / 1.38 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.635e-05/1.588, allocations: 17.77 kB / 1.38 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.475e-05/1.588, allocations: 129.8 kB / 1.38 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.588, allocations: 0 / 1.38 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000432/1.589, allocations: 69.56 kB / 1.38 GB, free: 28.59 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 44 (con.t4.t_start,con.t3.t_start,con.t2.enableFire,con.t1.enableFire,con.discharge.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 5 (con.off.newActive,con.charge.newActive,con.discharge.newActive,con.t3.t_start,con.t4.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001135/1.59, allocations: 1.214 MB / 1.381 GB, free: 27.72 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005755/1.59, allocations: 395.6 kB / 1.382 GB, free: 27.7 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/1.59, allocations: 0 / 1.382 GB, free: 27.7 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000263/1.591, allocations: 210.9 kB / 1.382 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002971/1.591, allocations: 33.22 kB / 1.382 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/1.592, allocations: 0.6017 MB / 1.382 GB, free: 27.45 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004384/1.593, allocations: 0.837 MB / 1.383 GB, free: 26.74 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002075/1.593, allocations: 63.12 kB / 1.383 GB, free: 26.73 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/1.593, allocations: 143.4 kB / 1.383 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of SimCode: time 5.61e-07/1.593, allocations: 7.812 kB / 1.383 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02732/1.62, allocations: 6.858 MB / 1.39 GB, free: 24.39 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000202/1.621, allocations: 172.3 kB / 1.39 GB, free: 24.2 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.239/3.859, allocations: 0 / 1.39 GB, free: 24.2 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat does not exist to compare? outputFormat=mat