Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_8_0_0_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_0_0_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.0/package.mo): time 2.516/2.516, allocations: 284.9 MB / 292.4 MB, free: 10.51 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.001464/0.001464, allocations: 168.9 kB / 360.6 MB, free: 7.293 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.998/1.998, allocations: 205.3 MB / 0.6191 GB, free: 12.18 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.001029/0.001029, allocations: 97.41 kB / 0.7321 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.45e-05/2.449e-05, allocations: 4 kB / 0.8509 GB, free: 3.328 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8194/0.8195, allocations: 115.3 MB / 0.9634 GB, free: 78.54 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2472/1.067, allocations: 141.3 MB / 1.101 GB, free: 15.13 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003426/1.067, allocations: 99.16 kB / 1.102 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.03259/1.1, allocations: 8.08 MB / 1.109 GB, free: 7.004 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.784e-06/1.1, allocations: 0 / 1.109 GB, free: 7.004 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.541e-05/1.1, allocations: 12.66 kB / 1.109 GB, free: 6.992 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.001333/1.101, allocations: 0.6187 MB / 1.11 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/1.101, allocations: 12.03 kB / 1.11 GB, free: 6.309 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/1.101, allocations: 52.66 kB / 1.11 GB, free: 6.258 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006385/1.102, allocations: 335.2 kB / 1.11 GB, free: 5.887 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.64e-05/1.102, allocations: 24 kB / 1.11 GB, free: 5.863 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/1.102, allocations: 32 kB / 1.11 GB, free: 5.832 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001067/1.103, allocations: 362.3 kB / 1.111 GB, free: 5.484 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/1.105, allocations: 0.4899 MB / 1.111 GB, free: 4.961 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/1.105, allocations: 0 / 1.111 GB, free: 4.961 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.006e-05/1.105, allocations: 0 / 1.111 GB, free: 4.961 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.242e-05/1.105, allocations: 21.3 kB / 1.111 GB, free: 4.941 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003772/1.108, allocations: 1.813 MB / 1.113 GB, free: 3.059 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007986/1.109, allocations: 319.6 kB / 1.113 GB, free: 2.734 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003856/1.11, allocations: 164.2 kB / 1.114 GB, free: 2.574 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 7.825e-05/1.11, allocations: 16.61 kB / 1.114 GB, free: 2.559 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004864/1.11, allocations: 204.9 kB / 1.114 GB, free: 2.348 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=46): time 3.257e-06/1.11, allocations: 0 / 1.114 GB, free: 2.348 MB / 0.7136 GB Notification: Performance of matching and sorting (n=46): time 0.000906/1.111, allocations: 305.9 kB / 1.114 GB, free: 2.043 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/1.111, allocations: 55.41 kB / 1.114 GB, free: 1.977 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/1.112, allocations: 213.2 kB / 1.114 GB, free: 1.762 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.483e-05/1.112, allocations: 37.7 kB / 1.114 GB, free: 1.719 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002007/1.112, allocations: 224.6 kB / 1.115 GB, free: 1.496 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/1.112, allocations: 102.7 kB / 1.115 GB, free: 1.395 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.122e-05/1.112, allocations: 0 / 1.115 GB, free: 1.395 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001938/1.112, allocations: 346.8 kB / 1.115 GB, free: 1.047 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003728/1.113, allocations: 137.5 kB / 1.115 GB, free: 0.9141 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004879/1.113, allocations: 260.5 kB / 1.115 GB, free: 0.6094 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004418/1.114, allocations: 146.1 kB / 1.115 GB, free: 480 kB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/1.114, allocations: 0 / 1.115 GB, free: 480 kB / 0.7136 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001122/1.115, allocations: 446.5 kB / 1.116 GB, free: 24 kB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/1.115, allocations: 8 kB / 1.116 GB, free: 16 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/1.115, allocations: 4 kB / 1.116 GB, free: 12 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/1.115, allocations: 4 kB / 1.116 GB, free: 8 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004588/1.115, allocations: 67.78 kB / 1.116 GB, free: 15.94 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/1.115, allocations: 4 kB / 1.116 GB, free: 15.94 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003691/1.116, allocations: 40.19 kB / 1.116 GB, free: 15.9 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.837e-05/1.116, allocations: 28 kB / 1.116 GB, free: 15.87 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.0002279/1.116, allocations: 159.6 kB / 1.116 GB, free: 15.71 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008174/1.117, allocations: 308.8 kB / 1.117 GB, free: 15.4 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.494e-05/1.117, allocations: 31.72 kB / 1.117 GB, free: 15.37 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/1.118, allocations: 374.8 kB / 1.117 GB, free: 15 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/1.118, allocations: 8 kB / 1.117 GB, free: 15 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/1.118, allocations: 0 / 1.117 GB, free: 15 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/1.118, allocations: 7.938 kB / 1.117 GB, free: 14.99 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/1.121, allocations: 0.9334 MB / 1.118 GB, free: 14.01 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/1.121, allocations: 0 / 1.118 GB, free: 14.01 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002783/1.121, allocations: 43.84 kB / 1.118 GB, free: 13.96 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.731e-05/1.121, allocations: 11.94 kB / 1.118 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.392e-05/1.121, allocations: 0 / 1.118 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.396e-06/1.121, allocations: 11.62 kB / 1.118 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/1.121, allocations: 3.984 kB / 1.118 GB, free: 13.94 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/1.122, allocations: 452.6 kB / 1.118 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.251e-05/1.122, allocations: 104.7 kB / 1.118 GB, free: 13.36 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.867e-05/1.122, allocations: 11.95 kB / 1.118 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003045/1.122, allocations: 15.98 kB / 1.118 GB, free: 13.34 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/1.123, allocations: 68.33 kB / 1.119 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.549e-05/1.123, allocations: 20 kB / 1.119 GB, free: 13.25 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001677/1.123, allocations: 132.2 kB / 1.119 GB, free: 13.12 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.21e-07/1.123, allocations: 0 / 1.119 GB, free: 13.12 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0006548/1.124, allocations: 64 kB / 1.119 GB, free: 13.06 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.001481/1.125, allocations: 1.021 MB / 1.12 GB, free: 12.02 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0009808/1.126, allocations: 383.7 kB / 1.12 GB, free: 11.64 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.126, allocations: 0 / 1.12 GB, free: 11.64 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004463/1.127, allocations: 197.5 kB / 1.12 GB, free: 11.45 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004085/1.127, allocations: 37 kB / 1.12 GB, free: 11.42 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001886/1.129, allocations: 0.5873 MB / 1.121 GB, free: 10.79 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005083/1.129, allocations: 0.8309 MB / 1.122 GB, free: 9.934 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.000378/1.13, allocations: 67.11 kB / 1.122 GB, free: 9.875 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003583/1.13, allocations: 143.4 kB / 1.122 GB, free: 9.738 MB / 0.7292 GB Notification: Performance of SimCode: time 1.462e-06/1.13, allocations: 7.938 kB / 1.122 GB, free: 9.73 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05197/1.182, allocations: 6.801 MB / 1.129 GB, free: 3.094 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003384/1.183, allocations: 172.5 kB / 1.129 GB, free: 2.902 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.661/3.844, allocations: 0 / 1.129 GB, free: 2.902 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)