Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.826/1.826, allocations: 289.7 MB / 302.2 MB, free: 2.223 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.001197/0.001197, allocations: 180.2 kB / 371.6 MB, free: 3.398 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.79/1.79, allocations: 205.2 MB / 0.6309 GB, free: 11.77 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.001028/0.001029, allocations: 94.75 kB / 0.745 GB, free: 54.66 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.558e-05/4.559e-05, allocations: 4 kB / 0.8663 GB, free: 14.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3162, allocations: 116.3 MB / 0.9799 GB, free: 10.53 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9495/1.266, allocations: 143.1 MB / 1.12 GB, free: 41.56 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/1.266, allocations: 94.7 kB / 1.12 GB, free: 41.52 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01827/1.284, allocations: 8.197 MB / 1.128 GB, free: 37.27 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.435e-06/1.284, allocations: 4.656 kB / 1.128 GB, free: 37.26 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.626e-05/1.285, allocations: 20.41 kB / 1.128 GB, free: 37.25 MB / 0.7448 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.0008337/1.285, allocations: 0.623 MB / 1.128 GB, free: 36.67 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/1.285, allocations: 12.03 kB / 1.128 GB, free: 36.66 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/1.286, allocations: 86.47 kB / 1.128 GB, free: 36.61 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.89e-05/1.286, allocations: 61.94 kB / 1.129 GB, free: 36.55 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003761/1.286, allocations: 331.8 kB / 1.129 GB, free: 36.28 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.488e-05/1.286, allocations: 45.34 kB / 1.129 GB, free: 36.25 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.593e-05/1.286, allocations: 53.62 kB / 1.129 GB, free: 36.22 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008221/1.287, allocations: 0.5565 MB / 1.13 GB, free: 35.87 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/1.287, allocations: 352 / 1.13 GB, free: 35.87 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.795e-05/1.287, allocations: 26.47 kB / 1.13 GB, free: 35.86 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.189e-05/1.287, allocations: 17 kB / 1.13 GB, free: 35.84 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000599/1.288, allocations: 400.4 kB / 1.13 GB, free: 35.62 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/1.29, allocations: 1.911 MB / 1.132 GB, free: 34.3 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004868/1.29, allocations: 339 kB / 1.132 GB, free: 34.09 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000228/1.29, allocations: 175.7 kB / 1.132 GB, free: 34 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 9.878e-05/1.29, allocations: 12 kB / 1.132 GB, free: 33.98 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003268/1.291, allocations: 217.5 kB / 1.133 GB, free: 33.85 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=46): time 2.004e-06/1.291, allocations: 0 / 1.133 GB, free: 33.85 MB / 0.7448 GB Notification: Performance of matching and sorting (n=46): time 0.0005442/1.291, allocations: 326.5 kB / 1.133 GB, free: 33.62 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/1.291, allocations: 66.66 kB / 1.133 GB, free: 33.55 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/1.292, allocations: 229.2 kB / 1.133 GB, free: 33.38 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.866e-05/1.292, allocations: 48.33 kB / 1.133 GB, free: 33.34 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/1.292, allocations: 219.8 kB / 1.133 GB, free: 33.16 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 7.885e-05/1.292, allocations: 111.4 kB / 1.133 GB, free: 33.08 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.212e-05/1.292, allocations: 14.94 kB / 1.133 GB, free: 33.07 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 8.336e-05/1.292, allocations: 340.2 kB / 1.134 GB, free: 32.75 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/1.292, allocations: 147.6 kB / 1.134 GB, free: 32.67 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002828/1.292, allocations: 279.7 kB / 1.134 GB, free: 32.43 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002315/1.293, allocations: 157 kB / 1.134 GB, free: 32.34 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/1.293, allocations: 4 kB / 1.134 GB, free: 32.34 MB / 0.7448 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006574/1.293, allocations: 495.8 kB / 1.135 GB, free: 32 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/1.293, allocations: 5.562 kB / 1.135 GB, free: 32 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/1.293, allocations: 4 kB / 1.135 GB, free: 31.99 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/1.293, allocations: 8.656 kB / 1.135 GB, free: 31.98 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002404/1.294, allocations: 65.08 kB / 1.135 GB, free: 31.94 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/1.294, allocations: 13.09 kB / 1.135 GB, free: 31.93 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001999/1.294, allocations: 49.78 kB / 1.135 GB, free: 31.89 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-05/1.294, allocations: 23.45 kB / 1.135 GB, free: 31.88 MB / 0.7448 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.0001309/1.294, allocations: 177 kB / 1.135 GB, free: 31.72 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/1.294, allocations: 31.61 kB / 1.135 GB, free: 31.69 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006895/1.295, allocations: 411 kB / 1.136 GB, free: 31.45 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/1.295, allocations: 4 kB / 1.136 GB, free: 31.45 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/1.295, allocations: 4.938 kB / 1.136 GB, free: 31.45 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/1.295, allocations: 3.469 kB / 1.136 GB, free: 31.45 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001272/1.296, allocations: 1.043 MB / 1.137 GB, free: 30.75 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-06/1.296, allocations: 3.938 kB / 1.137 GB, free: 30.75 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/1.296, allocations: 37.78 kB / 1.137 GB, free: 30.72 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.96e-06/1.296, allocations: 3.938 kB / 1.137 GB, free: 30.71 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.009e-05/1.296, allocations: 18.09 kB / 1.137 GB, free: 30.71 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.808e-06/1.296, allocations: 4.75 kB / 1.137 GB, free: 30.7 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/1.296, allocations: 4 kB / 1.137 GB, free: 30.7 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005072/1.297, allocations: 476.5 kB / 1.137 GB, free: 30.35 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.985e-05/1.297, allocations: 100.8 kB / 1.137 GB, free: 30.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.159e-05/1.297, allocations: 13.89 kB / 1.137 GB, free: 30.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/1.297, allocations: 30.67 kB / 1.137 GB, free: 30.21 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/1.297, allocations: 71.47 kB / 1.137 GB, free: 30.17 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.405e-05/1.297, allocations: 18.86 kB / 1.137 GB, free: 30.16 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.973e-05/1.298, allocations: 132.9 kB / 1.137 GB, free: 30.05 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.262e-06/1.298, allocations: 0 / 1.137 GB, free: 30.05 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003642/1.298, allocations: 91.84 kB / 1.138 GB, free: 29.98 MB / 0.7448 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.0008161/1.299, allocations: 1.052 MB / 1.139 GB, free: 29.05 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0005656/1.299, allocations: 418.7 kB / 1.139 GB, free: 28.78 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/1.299, allocations: 0.9375 kB / 1.139 GB, free: 28.78 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002576/1.3, allocations: 209.6 kB / 1.139 GB, free: 28.63 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/1.3, allocations: 42.73 kB / 1.139 GB, free: 28.61 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/1.301, allocations: 0.6264 MB / 1.14 GB, free: 28.13 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/1.301, allocations: 0.8322 MB / 1.141 GB, free: 27.34 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0002008/1.302, allocations: 64.7 kB / 1.141 GB, free: 27.3 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/1.302, allocations: 138.8 kB / 1.141 GB, free: 27.27 MB / 0.7448 GB Notification: Performance of SimCode: time 3.91e-07/1.302, allocations: 4 kB / 1.141 GB, free: 27.26 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02167/1.323, allocations: 7.239 MB / 1.148 GB, free: 23.05 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001543/1.324, allocations: 178 kB / 1.148 GB, free: 22.83 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.374/3.698, allocations: 4 kB / 1.148 GB, free: 22.82 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)