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.697/1.697, allocations: 285.4 MB / 298 MB, free: 5.992 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.001056/0.001056, allocations: 176.9 kB / 366.4 MB, free: 2.078 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.799/1.799, allocations: 205.1 MB / 0.6248 GB, free: 7.727 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.0008619/0.0008619, allocations: 89.14 kB / 0.738 GB, free: 40.26 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.275e-05/4.277e-05, allocations: 4 kB / 0.8584 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9714/0.9714, allocations: 115.3 MB / 0.971 GB, free: 78 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2556/1.227, allocations: 142.2 MB / 1.11 GB, free: 9.586 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/1.228, allocations: 87.94 kB / 1.11 GB, free: 9.5 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02121/1.249, allocations: 8.22 MB / 1.118 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.023e-06/1.249, allocations: 0 / 1.118 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.295e-05/1.249, allocations: 20.59 kB / 1.118 GB, free: 1.316 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.001022/1.25, allocations: 0.6189 MB / 1.119 GB, free: 0.6484 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/1.25, allocations: 8.031 kB / 1.119 GB, free: 0.6406 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001388/1.25, allocations: 90.52 kB / 1.119 GB, free: 0.543 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/1.25, allocations: 55.34 kB / 1.119 GB, free: 500 kB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005443/1.251, allocations: 335.2 kB / 1.119 GB, free: 120 kB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.194e-05/1.251, allocations: 41.31 kB / 1.119 GB, free: 76 kB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.25e-05/1.251, allocations: 59.98 kB / 1.119 GB, free: 16 kB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/1.252, allocations: 0.5517 MB / 1.12 GB, free: 15.44 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/1.252, allocations: 352 / 1.12 GB, free: 15.44 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.707e-05/1.252, allocations: 23.95 kB / 1.12 GB, free: 15.41 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-05/1.252, allocations: 24.94 kB / 1.12 GB, free: 15.39 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008325/1.253, allocations: 391.8 kB / 1.12 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002655/1.256, allocations: 1.915 MB / 1.122 GB, free: 13.02 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000576/1.256, allocations: 339.8 kB / 1.122 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002923/1.257, allocations: 178.5 kB / 1.122 GB, free: 12.5 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 6.57e-05/1.257, allocations: 12 kB / 1.122 GB, free: 12.49 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003904/1.257, allocations: 218 kB / 1.123 GB, free: 12.26 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=46): time 4.007e-06/1.257, allocations: 0 / 1.123 GB, free: 12.26 MB / 0.7292 GB Notification: Performance of matching and sorting (n=46): time 0.0006793/1.258, allocations: 329.5 kB / 1.123 GB, free: 11.93 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.451e-05/1.258, allocations: 59.41 kB / 1.123 GB, free: 11.86 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002903/1.258, allocations: 232.7 kB / 1.123 GB, free: 11.63 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 6.642e-05/1.258, allocations: 49.7 kB / 1.123 GB, free: 11.57 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002065/1.259, allocations: 220.6 kB / 1.124 GB, free: 11.36 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/1.259, allocations: 110.7 kB / 1.124 GB, free: 11.25 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.421e-05/1.259, allocations: 8 kB / 1.124 GB, free: 11.24 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0002096/1.259, allocations: 338.8 kB / 1.124 GB, free: 10.9 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002639/1.259, allocations: 157.5 kB / 1.124 GB, free: 10.75 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003474/1.26, allocations: 278 kB / 1.124 GB, free: 10.43 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/1.26, allocations: 159.2 kB / 1.125 GB, free: 10.27 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/1.26, allocations: 4 kB / 1.125 GB, free: 10.27 MB / 0.7292 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007745/1.261, allocations: 494.3 kB / 1.125 GB, free: 9.773 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/1.261, allocations: 8 kB / 1.125 GB, free: 9.766 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/1.261, allocations: 4.469 kB / 1.125 GB, free: 9.762 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.345e-05/1.261, allocations: 12 kB / 1.125 GB, free: 9.75 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/1.261, allocations: 59.84 kB / 1.125 GB, free: 9.691 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.186e-05/1.261, allocations: 15.92 kB / 1.125 GB, free: 9.676 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/1.261, allocations: 43.83 kB / 1.125 GB, free: 9.633 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.899e-05/1.261, allocations: 27.95 kB / 1.125 GB, free: 9.605 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.0001859/1.262, allocations: 176.1 kB / 1.125 GB, free: 9.43 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.445e-05/1.262, allocations: 27.62 kB / 1.125 GB, free: 9.402 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007888/1.262, allocations: 408.9 kB / 1.126 GB, free: 9 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/1.262, allocations: 4 kB / 1.126 GB, free: 8.996 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/1.262, allocations: 0 / 1.126 GB, free: 8.996 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/1.262, allocations: 4 kB / 1.126 GB, free: 8.992 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001444/1.264, allocations: 1.054 MB / 1.127 GB, free: 7.879 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/1.264, allocations: 1.625 kB / 1.127 GB, free: 7.879 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001551/1.264, allocations: 39.84 kB / 1.127 GB, free: 7.84 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/1.264, allocations: 0 / 1.127 GB, free: 7.84 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.282e-05/1.264, allocations: 23.94 kB / 1.127 GB, free: 7.816 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/1.264, allocations: 0 / 1.127 GB, free: 7.816 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.264, allocations: 0 / 1.127 GB, free: 7.816 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005836/1.265, allocations: 483.7 kB / 1.127 GB, free: 7.328 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.171e-05/1.265, allocations: 100.8 kB / 1.127 GB, free: 7.211 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.465e-05/1.265, allocations: 12 kB / 1.127 GB, free: 7.199 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/1.265, allocations: 35.94 kB / 1.127 GB, free: 7.164 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/1.265, allocations: 68.33 kB / 1.128 GB, free: 7.098 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.844e-05/1.265, allocations: 14.69 kB / 1.128 GB, free: 7.086 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.000111/1.265, allocations: 137.8 kB / 1.128 GB, free: 6.953 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/1.265, allocations: 0 / 1.128 GB, free: 6.953 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004104/1.266, allocations: 87.91 kB / 1.128 GB, free: 6.867 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.001029/1.267, allocations: 1.052 MB / 1.129 GB, free: 5.789 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006734/1.268, allocations: 414.3 kB / 1.129 GB, free: 5.383 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 6.994e-06/1.268, allocations: 4.312 kB / 1.129 GB, free: 5.379 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000305/1.268, allocations: 206.4 kB / 1.129 GB, free: 5.18 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002877/1.268, allocations: 37.53 kB / 1.129 GB, free: 5.145 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/1.27, allocations: 0.6336 MB / 1.13 GB, free: 4.473 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/1.27, allocations: 0.8319 MB / 1.131 GB, free: 3.609 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002255/1.27, allocations: 66.94 kB / 1.131 GB, free: 3.543 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002224/1.27, allocations: 143.4 kB / 1.131 GB, free: 3.402 MB / 0.7292 GB Notification: Performance of SimCode: time 4.5e-07/1.271, allocations: 0 / 1.131 GB, free: 3.402 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/1.292, allocations: 7.243 MB / 1.138 GB, free: 12.49 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000193/1.293, allocations: 195.7 kB / 1.138 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.12/3.413, allocations: 0 / 1.138 GB, free: 12.27 MB / 0.7448 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)