Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_maint_8_0_x_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 8.0.1-maint.8.0.x/package.mo): time 1.666/1.666, allocations: 285.6 MB / 293.1 MB, free: 10.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001488/0.001488, allocations: 184.9 kB / 361.4 MB, free: 6.848 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.685/1.685, allocations: 205.3 MB / 0.62 GB, free: 11.62 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009069/0.0009067, allocations: 91.62 kB / 0.733 GB, free: 44.15 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.957e-05/2.963e-05, allocations: 4 kB / 0.8518 GB, free: 2.605 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8528/0.8529, allocations: 115.3 MB / 0.9645 GB, free: 78.71 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2186/1.072, allocations: 141.5 MB / 1.103 GB, free: 14.21 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003219/1.072, allocations: 91.94 kB / 1.103 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02239/1.094, allocations: 8.077 MB / 1.111 GB, free: 6.121 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.573e-06/1.094, allocations: 0 / 1.111 GB, free: 6.121 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.019e-05/1.094, allocations: 16.66 kB / 1.111 GB, free: 6.105 MB / 0.7136 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.001572/1.096, allocations: 0.6226 MB / 1.111 GB, free: 5.43 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.067e-05/1.096, allocations: 8.031 kB / 1.111 GB, free: 5.422 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002724/1.096, allocations: 55.34 kB / 1.111 GB, free: 5.367 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006865/1.097, allocations: 331.2 kB / 1.112 GB, free: 5 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.053e-05/1.097, allocations: 20 kB / 1.112 GB, free: 4.98 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/1.097, allocations: 38.62 kB / 1.112 GB, free: 4.945 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008909/1.098, allocations: 366.5 kB / 1.112 GB, free: 4.59 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/1.099, allocations: 493.7 kB / 1.112 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/1.099, allocations: 0 / 1.112 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/1.099, allocations: 7.953 kB / 1.112 GB, free: 4.066 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.024e-05/1.099, allocations: 21.31 kB / 1.113 GB, free: 4.047 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002866/1.102, allocations: 1.812 MB / 1.114 GB, free: 2.168 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000583/1.103, allocations: 323.6 kB / 1.115 GB, free: 1.84 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002719/1.103, allocations: 158.2 kB / 1.115 GB, free: 1.684 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 7.774e-05/1.103, allocations: 15.98 kB / 1.115 GB, free: 1.668 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003824/1.104, allocations: 197.7 kB / 1.115 GB, free: 1.461 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=46): time 2.855e-06/1.104, allocations: 0 / 1.115 GB, free: 1.461 MB / 0.7136 GB Notification: Performance of matching and sorting (n=46): time 0.0007479/1.104, allocations: 305.9 kB / 1.115 GB, free: 1.156 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.16e-05/1.104, allocations: 67.39 kB / 1.115 GB, free: 1.078 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/1.105, allocations: 212.8 kB / 1.116 GB, free: 0.8633 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.524e-05/1.105, allocations: 45.62 kB / 1.116 GB, free: 0.8125 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002127/1.105, allocations: 220.7 kB / 1.116 GB, free: 0.5938 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/1.105, allocations: 98.67 kB / 1.116 GB, free: 0.4961 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.2e-05/1.105, allocations: 0 / 1.116 GB, free: 0.4961 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001772/1.105, allocations: 346.8 kB / 1.116 GB, free: 152 kB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002689/1.106, allocations: 137.5 kB / 1.116 GB, free: 16 kB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003688/1.106, allocations: 260.5 kB / 1.117 GB, free: 15.71 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/1.106, allocations: 150 kB / 1.117 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/1.106, allocations: 4 kB / 1.117 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.000859/1.107, allocations: 438.4 kB / 1.117 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/1.107, allocations: 8.781 kB / 1.117 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/1.107, allocations: 4 kB / 1.117 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.84e-05/1.107, allocations: 9.125 kB / 1.117 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/1.108, allocations: 75.75 kB / 1.117 GB, free: 15.03 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.508e-05/1.108, allocations: 8 kB / 1.117 GB, free: 15.02 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002857/1.108, allocations: 27.83 kB / 1.117 GB, free: 15 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.941e-05/1.108, allocations: 27.98 kB / 1.117 GB, free: 14.97 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($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,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 (74): * Single equations (assignments): 74 * 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.0002018/1.108, allocations: 154 kB / 1.117 GB, free: 14.81 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000564/1.109, allocations: 316.8 kB / 1.118 GB, free: 14.5 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.73e-05/1.109, allocations: 25.12 kB / 1.118 GB, free: 14.47 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007699/1.11, allocations: 379.1 kB / 1.118 GB, free: 14.1 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.776e-05/1.11, allocations: 4 kB / 1.118 GB, free: 14.1 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/1.11, allocations: 0 / 1.118 GB, free: 14.1 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/1.11, allocations: 4 kB / 1.118 GB, free: 14.09 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00162/1.111, allocations: 0.9411 MB / 1.119 GB, free: 13.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/1.111, allocations: 0 / 1.119 GB, free: 13.11 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001654/1.112, allocations: 35.86 kB / 1.119 GB, free: 13.07 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.638e-06/1.112, allocations: 4 kB / 1.119 GB, free: 13.07 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/1.112, allocations: 15.88 kB / 1.119 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/1.112, allocations: 5.5 kB / 1.119 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.112, allocations: 0 / 1.119 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007474/1.112, allocations: 452.6 kB / 1.12 GB, free: 12.59 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 9.301e-05/1.113, allocations: 104.7 kB / 1.12 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.736e-05/1.113, allocations: 0 / 1.12 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001925/1.113, allocations: 34.36 kB / 1.12 GB, free: 12.44 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/1.113, allocations: 60.34 kB / 1.12 GB, free: 12.38 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.732e-05/1.113, allocations: 19.98 kB / 1.12 GB, free: 12.36 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001284/1.113, allocations: 132.3 kB / 1.12 GB, free: 12.23 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.21e-07/1.113, allocations: 0 / 1.12 GB, free: 12.23 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004824/1.114, allocations: 64 kB / 1.12 GB, free: 12.17 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (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: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001339/1.115, allocations: 1.028 MB / 1.121 GB, free: 11.11 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000731/1.116, allocations: 388.5 kB / 1.121 GB, free: 10.73 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/1.116, allocations: 0 / 1.121 GB, free: 10.73 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003142/1.116, allocations: 209.6 kB / 1.122 GB, free: 10.53 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/1.116, allocations: 28.64 kB / 1.122 GB, free: 10.51 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/1.118, allocations: 0.5912 MB / 1.122 GB, free: 9.879 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005757/1.119, allocations: 0.8239 MB / 1.123 GB, free: 9.027 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002664/1.119, allocations: 74.67 kB / 1.123 GB, free: 8.961 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002534/1.119, allocations: 143.3 kB / 1.123 GB, free: 8.824 MB / 0.7292 GB Notification: Performance of SimCode: time 4.81e-07/1.119, allocations: 0 / 1.123 GB, free: 8.824 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03399/1.153, allocations: 6.809 MB / 1.13 GB, free: 2.18 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002357/1.153, allocations: 187.8 kB / 1.13 GB, free: 1.984 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.097/3.25, allocations: 4 kB / 1.13 GB, free: 1.98 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)