Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.457/1.457, allocations: 251.9 MB / 266.9 MB, free: 10.87 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001306/0.001306, allocations: 178.5 kB / 326.5 MB, free: 2.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.086/2.086, allocations: 205.4 MB / 0.5775 GB, free: 20.22 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009442/0.0009441, allocations: 86.44 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004078/0.0004082, allocations: 12.69 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2602, allocations: 106.3 MB / 0.9002 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1967/0.457, allocations: 135.9 MB / 1.033 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.4573, allocations: 95.94 kB / 1.033 GB, free: 7.59 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02197/0.4793, allocations: 8.237 MB / 1.041 GB, free: 15.3 MB / 0.698 GB Notification: Performance of FrontEnd: time 4.268e-06/0.4793, allocations: 4 kB / 1.041 GB, free: 15.29 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.225e-05/0.4794, allocations: 8 kB / 1.041 GB, free: 15.29 MB / 0.698 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.00139/0.4808, allocations: 0.6428 MB / 1.042 GB, free: 14.59 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.735e-05/0.4808, allocations: 11.97 kB / 1.042 GB, free: 14.57 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002143/0.4811, allocations: 94.45 kB / 1.042 GB, free: 14.47 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.4812, allocations: 55.42 kB / 1.042 GB, free: 14.42 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005478/0.4818, allocations: 335.1 kB / 1.042 GB, free: 14.05 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.077e-05/0.4819, allocations: 45.31 kB / 1.042 GB, free: 14 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.66e-05/0.482, allocations: 52 kB / 1.042 GB, free: 13.95 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.4836, allocations: 0.5699 MB / 1.043 GB, free: 13.36 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.729e-05/0.4837, allocations: 3.953 kB / 1.043 GB, free: 13.35 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.4838, allocations: 20 kB / 1.043 GB, free: 13.33 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.338e-05/0.4839, allocations: 28.98 kB / 1.043 GB, free: 13.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00133/0.4853, allocations: 419.7 kB / 1.043 GB, free: 12.89 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003623/0.4889, allocations: 1.896 MB / 1.045 GB, free: 10.92 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007742/0.4897, allocations: 362.5 kB / 1.045 GB, free: 10.56 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.829e-05/0.4898, allocations: 8.625 kB / 1.045 GB, free: 10.55 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005171/0.4903, allocations: 241.9 kB / 1.046 GB, free: 10.3 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 4.248e-06/0.4904, allocations: 0 / 1.046 GB, free: 10.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.00116/0.4915, allocations: 478.5 kB / 1.046 GB, free: 9.828 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.656e-05/0.4916, allocations: 71.09 kB / 1.046 GB, free: 9.746 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003094/0.4919, allocations: 220.7 kB / 1.046 GB, free: 9.523 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.067e-05/0.492, allocations: 49.69 kB / 1.046 GB, free: 9.469 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.4922, allocations: 224.6 kB / 1.047 GB, free: 9.242 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.4924, allocations: 110.6 kB / 1.047 GB, free: 9.133 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/0.4924, allocations: 12 kB / 1.047 GB, free: 9.121 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001741/0.4926, allocations: 342.8 kB / 1.047 GB, free: 8.777 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004011/0.493, allocations: 161.2 kB / 1.047 GB, free: 8.621 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000477/0.4935, allocations: 284.8 kB / 1.048 GB, free: 8.297 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003925/0.4939, allocations: 170.1 kB / 1.048 GB, free: 8.133 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.4939, allocations: 4 kB / 1.048 GB, free: 8.129 MB / 0.698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001095/0.495, allocations: 0.5022 MB / 1.048 GB, free: 7.617 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.4951, allocations: 4 kB / 1.048 GB, free: 7.613 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.4951, allocations: 8.453 kB / 1.048 GB, free: 7.605 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.237e-05/0.4951, allocations: 12 kB / 1.048 GB, free: 7.594 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.4955, allocations: 63.84 kB / 1.048 GB, free: 7.531 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/0.4955, allocations: 4 kB / 1.048 GB, free: 7.527 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003235/0.4958, allocations: 51.77 kB / 1.048 GB, free: 7.477 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.716e-05/0.4959, allocations: 28 kB / 1.048 GB, free: 7.449 MB / 0.698 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 () * Number of clocked 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.0003342/0.4963, allocations: 230.9 kB / 1.049 GB, free: 7.215 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.519e-05/0.4963, allocations: 23.72 kB / 1.049 GB, free: 7.191 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008229/0.4972, allocations: 431.4 kB / 1.049 GB, free: 6.766 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.4972, allocations: 12 kB / 1.049 GB, free: 6.754 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.4972, allocations: 3.938 kB / 1.049 GB, free: 6.75 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.4972, allocations: 0 / 1.049 GB, free: 6.75 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001741/0.499, allocations: 1.073 MB / 1.05 GB, free: 5.621 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.499, allocations: 0 / 1.05 GB, free: 5.621 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.4991, allocations: 35.86 kB / 1.05 GB, free: 5.586 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.4992, allocations: 7.953 kB / 1.05 GB, free: 5.578 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.488e-05/0.4992, allocations: 15.98 kB / 1.05 GB, free: 5.562 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.4992, allocations: 4 kB / 1.05 GB, free: 5.559 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4992, allocations: 0 / 1.05 GB, free: 5.559 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000727/0.5, allocations: 499.7 kB / 1.051 GB, free: 5.051 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.644e-05/0.5001, allocations: 96.83 kB / 1.051 GB, free: 4.938 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.985e-05/0.5001, allocations: 19.94 kB / 1.051 GB, free: 4.918 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.5003, allocations: 23.98 kB / 1.051 GB, free: 4.895 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.5005, allocations: 68.34 kB / 1.051 GB, free: 4.828 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.912e-05/0.5005, allocations: 15.98 kB / 1.051 GB, free: 4.812 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001225/0.5007, allocations: 139.2 kB / 1.051 GB, free: 4.676 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5007, allocations: 0 / 1.051 GB, free: 4.676 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004768/0.5012, allocations: 91.94 kB / 1.051 GB, free: 4.586 MB / 0.698 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) * Number of clocked states: 0 () * 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.001234/0.5024, allocations: 1.068 MB / 1.052 GB, free: 3.492 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0008436/0.5033, allocations: 442.1 kB / 1.053 GB, free: 3.055 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.5033, allocations: 4.312 kB / 1.053 GB, free: 3.051 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003542/0.5036, allocations: 214.4 kB / 1.053 GB, free: 2.844 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.504, allocations: 43.86 kB / 1.053 GB, free: 2.801 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5133/1.017, allocations: 4.291 MB / 1.057 GB, free: 148.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005441/1.018, allocations: 0.8295 MB / 1.058 GB, free: 147.5 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004388/1.018, allocations: 67.06 kB / 1.058 GB, free: 147.5 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003589/1.019, allocations: 144.8 kB / 1.058 GB, free: 147.5 MB / 0.698 GB Notification: Performance of SimCode: time 1.282e-06/1.019, allocations: 4.5 kB / 1.058 GB, free: 147.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03638/1.055, allocations: 7.123 MB / 1.065 GB, free: 147.1 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003082/1.055, allocations: 216.6 kB / 1.065 GB, free: 146.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.371/3.427, allocations: 0 / 1.065 GB, free: 146.9 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)