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.296/2.296, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001062/0.001062, allocations: 170.8 kB / 498.1 MB, free: 5.754 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.393/1.393, allocations: 223.2 MB / 0.7948 GB, free: 17.96 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.0009603/0.0009601, allocations: 111.8 kB / 0.9346 GB, free: 6.234 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003403, allocations: 10.62 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2175/0.2179, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1667/0.3846, allocations: 153.4 MB / 1.373 GB, free: 8.598 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/0.3849, allocations: 99.92 kB / 1.373 GB, free: 8.5 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02161/0.4066, allocations: 8.395 MB / 1.381 GB, free: 40 kB / 0.8698 GB Notification: Performance of FrontEnd: time 1.603e-06/0.4066, allocations: 0 / 1.381 GB, free: 40 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.902e-05/0.4067, allocations: 19.94 kB / 1.381 GB, free: 20 kB / 0.8698 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.001236/0.4079, allocations: 0.6517 MB / 1.382 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.408, allocations: 8.031 kB / 1.382 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001819/0.4081, allocations: 94.5 kB / 1.382 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.4083, allocations: 51.44 kB / 1.382 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005214/0.4088, allocations: 339.1 kB / 1.382 GB, free: 14.78 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.608e-05/0.4089, allocations: 45.31 kB / 1.382 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.216e-05/0.409, allocations: 56.33 kB / 1.382 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.41, allocations: 0.5695 MB / 1.383 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.41, allocations: 0 / 1.383 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.846e-05/0.4101, allocations: 24 kB / 1.383 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.022e-05/0.4101, allocations: 24.98 kB / 1.383 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007953/0.4109, allocations: 419.7 kB / 1.383 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002443/0.4134, allocations: 1.911 MB / 1.385 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006265/0.414, allocations: 398.8 kB / 1.386 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 6.101e-05/0.4141, allocations: 12 kB / 1.386 GB, free: 11.21 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004231/0.4145, allocations: 269 kB / 1.386 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 2.164e-06/0.4145, allocations: 0 / 1.386 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.0009504/0.4155, allocations: 0.4992 MB / 1.386 GB, free: 10.42 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.287e-05/0.4156, allocations: 114.8 kB / 1.386 GB, free: 10.28 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.4158, allocations: 210.1 kB / 1.387 GB, free: 10.07 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.95e-05/0.4159, allocations: 57.64 kB / 1.387 GB, free: 10.01 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.416, allocations: 209.4 kB / 1.387 GB, free: 9.801 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.4161, allocations: 118.5 kB / 1.387 GB, free: 9.684 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.5e-05/0.4162, allocations: 12 kB / 1.387 GB, free: 9.672 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.4163, allocations: 343.1 kB / 1.387 GB, free: 9.328 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003123/0.4166, allocations: 169.2 kB / 1.387 GB, free: 9.16 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003871/0.417, allocations: 292.7 kB / 1.388 GB, free: 8.824 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003446/0.4174, allocations: 174.1 kB / 1.388 GB, free: 8.656 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4174, allocations: 3.938 kB / 1.388 GB, free: 8.652 MB / 0.8855 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008438/0.4182, allocations: 0.5101 MB / 1.388 GB, free: 8.133 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.4183, allocations: 9.094 kB / 1.388 GB, free: 8.125 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.4183, allocations: 4 kB / 1.388 GB, free: 8.121 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.4183, allocations: 4 kB / 1.388 GB, free: 8.117 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002439/0.4186, allocations: 68.3 kB / 1.388 GB, free: 8.051 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.4186, allocations: 15.94 kB / 1.388 GB, free: 8.035 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.4188, allocations: 51.77 kB / 1.389 GB, free: 7.984 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-05/0.4189, allocations: 24 kB / 1.389 GB, free: 7.961 MB / 0.8855 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 () * Number of clocked 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.00026/0.4192, allocations: 234.9 kB / 1.389 GB, free: 7.723 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.72e-05/0.4192, allocations: 27.62 kB / 1.389 GB, free: 7.695 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007859/0.42, allocations: 431.5 kB / 1.389 GB, free: 7.27 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.42, allocations: 4 kB / 1.389 GB, free: 7.266 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.42, allocations: 0 / 1.389 GB, free: 7.266 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.4201, allocations: 11.98 kB / 1.389 GB, free: 7.254 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.4216, allocations: 1.081 MB / 1.39 GB, free: 6.113 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.4216, allocations: 0 / 1.39 GB, free: 6.113 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.4218, allocations: 39.92 kB / 1.39 GB, free: 6.074 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.548e-06/0.4218, allocations: 7.953 kB / 1.39 GB, free: 6.066 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.2e-05/0.4219, allocations: 11.98 kB / 1.39 GB, free: 6.055 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.4219, allocations: 4 kB / 1.39 GB, free: 6.051 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4219, allocations: 4 kB / 1.39 GB, free: 6.047 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000737/0.4226, allocations: 0.5437 MB / 1.391 GB, free: 5.465 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.248e-05/0.4227, allocations: 100.8 kB / 1.391 GB, free: 5.348 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.4227, allocations: 12 kB / 1.391 GB, free: 5.336 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.423, allocations: 31.97 kB / 1.391 GB, free: 5.305 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.4231, allocations: 68.34 kB / 1.391 GB, free: 5.238 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.228e-05/0.4232, allocations: 19.98 kB / 1.391 GB, free: 5.219 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001003/0.4233, allocations: 131.4 kB / 1.391 GB, free: 5.09 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.365e-06/0.4233, allocations: 0 / 1.391 GB, free: 5.09 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004186/0.4237, allocations: 99.83 kB / 1.391 GB, free: 4.992 MB / 0.8855 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) * Number of clocked states: 0 () * 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.001124/0.4248, allocations: 1.261 MB / 1.393 GB, free: 3.695 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007385/0.4256, allocations: 453.4 kB / 1.393 GB, free: 3.254 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4256, allocations: 0.9375 kB / 1.393 GB, free: 3.254 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003559/0.426, allocations: 230.4 kB / 1.393 GB, free: 3.027 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/0.4262, allocations: 40.12 kB / 1.393 GB, free: 2.988 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003797/0.43, allocations: 4.327 MB / 1.397 GB, free: 14.54 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.4304, allocations: 0.835 MB / 1.398 GB, free: 13.68 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002143/0.4307, allocations: 67.34 kB / 1.398 GB, free: 13.61 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002221/0.4309, allocations: 151.3 kB / 1.399 GB, free: 13.46 MB / 0.9011 GB Notification: Performance of SimCode: time 3.2e-07/0.4309, allocations: 0 / 1.399 GB, free: 13.46 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.4508, allocations: 7.172 MB / 1.406 GB, free: 6.48 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/0.451, allocations: 210.9 kB / 1.406 GB, free: 6.238 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.164/2.615, allocations: 2.688 kB / 1.406 GB, free: 6.238 MB / 0.9011 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