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.346/2.346, allocations: 390.3 MB / 402.8 MB, free: 6.688 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.001369/0.001369, allocations: 169 kB / 496.1 MB, free: 12.9 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.542/1.542, allocations: 221.3 MB / 0.7915 GB, free: 5.41 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.0009746/0.0009747, allocations: 91.95 kB / 0.9317 GB, free: 5.727 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.31e-05/3.312e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3007, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.117/1.418, allocations: 154.2 MB / 1.369 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000321/1.419, allocations: 87.72 kB / 1.369 GB, free: 15.87 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.02072/1.439, allocations: 8.379 MB / 1.378 GB, free: 8.82 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.493e-06/1.439, allocations: 0 / 1.378 GB, free: 8.82 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.79e-05/1.439, allocations: 16.66 kB / 1.378 GB, free: 8.805 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.001022/1.44, allocations: 0.6297 MB / 1.378 GB, free: 8.156 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/1.44, allocations: 8.031 kB / 1.378 GB, free: 8.148 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001106/1.441, allocations: 95.89 kB / 1.378 GB, free: 8.078 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.348e-05/1.441, allocations: 51.34 kB / 1.378 GB, free: 8.027 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004381/1.441, allocations: 326.6 kB / 1.379 GB, free: 7.723 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.13e-05/1.441, allocations: 52.34 kB / 1.379 GB, free: 7.691 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.545e-05/1.441, allocations: 60.59 kB / 1.379 GB, free: 7.652 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009206/1.442, allocations: 0.5617 MB / 1.379 GB, free: 7.23 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/1.442, allocations: 0 / 1.379 GB, free: 7.23 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/1.442, allocations: 18.31 kB / 1.379 GB, free: 7.227 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.501e-05/1.442, allocations: 21 kB / 1.379 GB, free: 7.207 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006516/1.443, allocations: 397.4 kB / 1.38 GB, free: 6.957 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002251/1.445, allocations: 1.919 MB / 1.382 GB, free: 5.359 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000563/1.446, allocations: 384.7 kB / 1.382 GB, free: 5.074 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00027/1.446, allocations: 195.3 kB / 1.382 GB, free: 4.941 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 6.116e-05/1.446, allocations: 5.344 kB / 1.382 GB, free: 4.938 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003802/1.447, allocations: 261.9 kB / 1.383 GB, free: 4.723 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.773e-06/1.447, allocations: 0 / 1.383 GB, free: 4.723 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0006353/1.447, allocations: 355.4 kB / 1.383 GB, free: 4.453 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.127e-05/1.447, allocations: 118.7 kB / 1.383 GB, free: 4.312 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/1.448, allocations: 216 kB / 1.383 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.547e-05/1.448, allocations: 54.52 kB / 1.383 GB, free: 4.09 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/1.448, allocations: 214.7 kB / 1.383 GB, free: 3.906 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/1.448, allocations: 119 kB / 1.384 GB, free: 3.809 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.152e-05/1.448, allocations: 11.19 kB / 1.384 GB, free: 3.805 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001457/1.448, allocations: 340.4 kB / 1.384 GB, free: 3.477 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/1.448, allocations: 156.7 kB / 1.384 GB, free: 3.379 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003199/1.449, allocations: 280.6 kB / 1.384 GB, free: 3.125 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002655/1.449, allocations: 165.8 kB / 1.384 GB, free: 3.008 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/1.449, allocations: 0 / 1.384 GB, free: 3.008 MB / 0.8386 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007261/1.45, allocations: 0.5011 MB / 1.385 GB, free: 2.625 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/1.45, allocations: 5.406 kB / 1.385 GB, free: 2.621 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/1.45, allocations: 4 kB / 1.385 GB, free: 2.617 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/1.45, allocations: 8 kB / 1.385 GB, free: 2.609 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/1.45, allocations: 62.95 kB / 1.385 GB, free: 2.551 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/1.45, allocations: 11.95 kB / 1.385 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002135/1.45, allocations: 55.7 kB / 1.385 GB, free: 2.496 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.764e-05/1.45, allocations: 26.48 kB / 1.385 GB, free: 2.477 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.0001755/1.45, allocations: 180.5 kB / 1.385 GB, free: 2.312 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.377e-05/1.451, allocations: 23.72 kB / 1.385 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006802/1.451, allocations: 416.8 kB / 1.386 GB, free: 2 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/1.451, allocations: 8 kB / 1.386 GB, free: 1.992 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/1.451, allocations: 0 / 1.386 GB, free: 1.992 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/1.451, allocations: 7.938 kB / 1.386 GB, free: 1.984 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/1.453, allocations: 1.057 MB / 1.387 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/1.453, allocations: 0 / 1.387 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/1.453, allocations: 35.88 kB / 1.387 GB, free: 1.094 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/1.453, allocations: 4 kB / 1.387 GB, free: 1.09 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-05/1.453, allocations: 21.98 kB / 1.387 GB, free: 1.078 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/1.453, allocations: 3.938 kB / 1.387 GB, free: 1.074 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/1.453, allocations: 4 kB / 1.387 GB, free: 1.07 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000629/1.454, allocations: 0.5115 MB / 1.387 GB, free: 0.6172 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.777e-05/1.454, allocations: 116.6 kB / 1.387 GB, free: 496 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.886e-05/1.454, allocations: 12.56 kB / 1.387 GB, free: 492 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/1.454, allocations: 30.23 kB / 1.387 GB, free: 468 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/1.454, allocations: 69.77 kB / 1.388 GB, free: 412 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.503e-05/1.454, allocations: 15.62 kB / 1.388 GB, free: 400 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001078/1.454, allocations: 140.7 kB / 1.388 GB, free: 276 kB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.454, allocations: 0 / 1.388 GB, free: 276 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003895/1.455, allocations: 85.75 kB / 1.388 GB, free: 208 kB / 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.001122/1.456, allocations: 1.246 MB / 1.389 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006705/1.456, allocations: 429.7 kB / 1.389 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/1.456, allocations: 0 / 1.389 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000308/1.457, allocations: 218.8 kB / 1.39 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/1.457, allocations: 47.25 kB / 1.39 GB, free: 14.53 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/1.458, allocations: 0.6487 MB / 1.39 GB, free: 13.96 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/1.459, allocations: 0.826 MB / 1.391 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002108/1.459, allocations: 75.17 kB / 1.391 GB, free: 13.04 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002134/1.459, allocations: 141.9 kB / 1.391 GB, free: 13 MB / 0.8542 GB Notification: Performance of SimCode: time 4.21e-07/1.459, allocations: 4 kB / 1.391 GB, free: 12.99 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/1.48, allocations: 7.283 MB / 1.398 GB, free: 5.902 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/1.48, allocations: 191.2 kB / 1.399 GB, free: 5.672 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.132/3.612, allocations: 0 / 1.399 GB, free: 5.672 MB / 0.8542 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