Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.817/2.817, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.001266/0.001266, allocations: 180.3 kB / 492.3 MB, free: 0.6133 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.406/1.406, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.001044/0.001044, allocations: 89.27 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.797e-05/2.817e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.214, allocations: 142.3 MB / 1.212 GB, free: 38.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8311/1.045, allocations: 153.3 MB / 1.362 GB, free: 18.98 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/1.045, allocations: 99.28 kB / 1.362 GB, free: 18.98 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01888/1.064, allocations: 8.362 MB / 1.371 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.553e-06/1.064, allocations: 0 / 1.371 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.816e-05/1.064, allocations: 15.5 kB / 1.371 GB, free: 34.11 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.0008859/1.065, allocations: 0.6275 MB / 1.371 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/1.065, allocations: 11.5 kB / 1.371 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.358e-05/1.065, allocations: 89.36 kB / 1.371 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.745e-05/1.066, allocations: 57.97 kB / 1.371 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/1.066, allocations: 338 kB / 1.372 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.102e-05/1.066, allocations: 41.91 kB / 1.372 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.234e-05/1.066, allocations: 56 kB / 1.372 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007804/1.067, allocations: 0.5579 MB / 1.372 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/1.067, allocations: 3.844 kB / 1.372 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.831e-05/1.067, allocations: 27.81 kB / 1.372 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-05/1.067, allocations: 16.38 kB / 1.372 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005873/1.068, allocations: 401.4 kB / 1.373 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001955/1.069, allocations: 1.916 MB / 1.375 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004654/1.07, allocations: 387.7 kB / 1.375 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002264/1.07, allocations: 187.9 kB / 1.375 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.433e-05/1.07, allocations: 11.25 kB / 1.375 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003333/1.071, allocations: 262.4 kB / 1.375 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 2.264e-06/1.071, allocations: 0 / 1.375 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0005402/1.071, allocations: 351.7 kB / 1.376 GB, free: 32 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/1.071, allocations: 114.6 kB / 1.376 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/1.071, allocations: 218.1 kB / 1.376 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.626e-05/1.071, allocations: 49.52 kB / 1.376 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/1.072, allocations: 216.6 kB / 1.376 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.324e-05/1.072, allocations: 115.2 kB / 1.376 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.339e-05/1.072, allocations: 13.38 kB / 1.376 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001113/1.072, allocations: 342.7 kB / 1.377 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002181/1.072, allocations: 156.3 kB / 1.377 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/1.072, allocations: 286.3 kB / 1.377 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/1.073, allocations: 160.6 kB / 1.377 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/1.073, allocations: 3.875 kB / 1.377 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.000619/1.073, allocations: 0.4949 MB / 1.378 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/1.073, allocations: 7.719 kB / 1.378 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/1.073, allocations: 3.875 kB / 1.378 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/1.073, allocations: 3.844 kB / 1.378 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002435/1.073, allocations: 67.3 kB / 1.378 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/1.074, allocations: 15.86 kB / 1.378 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/1.074, allocations: 50.5 kB / 1.378 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.074e-05/1.074, allocations: 28.58 kB / 1.378 GB, free: 30.94 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.000144/1.074, allocations: 171.1 kB / 1.378 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.217e-05/1.074, allocations: 29.53 kB / 1.378 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00062/1.075, allocations: 413.8 kB / 1.379 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/1.075, allocations: 3.875 kB / 1.379 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/1.075, allocations: 0 / 1.379 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/1.075, allocations: 10.58 kB / 1.379 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001273/1.076, allocations: 1.065 MB / 1.38 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/1.076, allocations: 0 / 1.38 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/1.076, allocations: 35.89 kB / 1.38 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/1.076, allocations: 10.5 kB / 1.38 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/1.076, allocations: 10.62 kB / 1.38 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.678e-06/1.076, allocations: 10.53 kB / 1.38 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/1.076, allocations: 0 / 1.38 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005203/1.077, allocations: 0.5132 MB / 1.38 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.95e-05/1.077, allocations: 108.4 kB / 1.38 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.292e-05/1.077, allocations: 14.56 kB / 1.38 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/1.077, allocations: 29.62 kB / 1.38 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/1.077, allocations: 71.25 kB / 1.38 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.484e-05/1.077, allocations: 21.73 kB / 1.38 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.302e-05/1.077, allocations: 125.7 kB / 1.381 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.077, allocations: 0 / 1.381 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003747/1.078, allocations: 90.38 kB / 1.381 GB, free: 29.98 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.0008892/1.079, allocations: 1.251 MB / 1.382 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005473/1.079, allocations: 427.8 kB / 1.382 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/1.079, allocations: 0.9375 kB / 1.382 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002639/1.079, allocations: 218.7 kB / 1.382 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/1.08, allocations: 41.19 kB / 1.382 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/1.081, allocations: 0.6564 MB / 1.383 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003766/1.081, allocations: 0.8325 MB / 1.384 GB, free: 28.1 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000193/1.081, allocations: 64.03 kB / 1.384 GB, free: 28.09 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/1.082, allocations: 144.7 kB / 1.384 GB, free: 28.08 MB / 0.8386 GB Notification: Performance of SimCode: time 3.9e-07/1.082, allocations: 0 / 1.384 GB, free: 28.08 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01747/1.099, allocations: 7.295 MB / 1.391 GB, free: 25.26 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001366/1.099, allocations: 181.9 kB / 1.391 GB, free: 25.04 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.101/3.2, allocations: 1.547 kB / 1.391 GB, free: 25.04 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat does not exist to compare? outputFormat=mat