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.427/1.427, allocations: 249.5 MB / 257 MB, free: 6.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00132/0.00132, allocations: 180.8 kB / 316.3 MB, free: 3.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.3 MB / 0.5671 GB, free: 15.83 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.0009733/0.0009733, allocations: 97.95 kB / 0.6714 GB, free: 4.941 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.184e-05/2.147e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2051, allocations: 106.3 MB / 0.8853 GB, free: 12.15 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7309/0.9361, allocations: 136.2 MB / 1.018 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/0.9363, allocations: 95.69 kB / 1.018 GB, free: 1.273 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0192/0.9556, allocations: 8.079 MB / 1.026 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.174e-06/0.9556, allocations: 0 / 1.026 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.75e-05/0.9556, allocations: 12 kB / 1.026 GB, free: 10.6 MB / 0.6511 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.0008751/0.9565, allocations: 0.6137 MB / 1.027 GB, free: 9.969 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.9566, allocations: 12.03 kB / 1.027 GB, free: 9.957 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.909e-05/0.9567, allocations: 47.44 kB / 1.027 GB, free: 9.91 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.9571, allocations: 344.3 kB / 1.027 GB, free: 9.59 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.026e-05/0.9571, allocations: 23.31 kB / 1.027 GB, free: 9.57 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.199e-05/0.9572, allocations: 32 kB / 1.027 GB, free: 9.539 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006218/0.9578, allocations: 363.2 kB / 1.028 GB, free: 9.324 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007662/0.9586, allocations: 0.4917 MB / 1.028 GB, free: 8.934 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.9586, allocations: 0 / 1.028 GB, free: 8.934 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.521e-05/0.9587, allocations: 0 / 1.028 GB, free: 8.934 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.92e-05/0.9587, allocations: 21.31 kB / 1.028 GB, free: 8.914 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.9607, allocations: 1.812 MB / 1.03 GB, free: 7.391 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004623/0.9612, allocations: 320.2 kB / 1.03 GB, free: 7.184 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/0.9614, allocations: 172.6 kB / 1.03 GB, free: 7.074 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.726e-05/0.9615, allocations: 8 kB / 1.03 GB, free: 7.066 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002963/0.9618, allocations: 199.9 kB / 1.031 GB, free: 6.914 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 1.944e-06/0.9618, allocations: 0 / 1.031 GB, free: 6.914 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0005588/0.9623, allocations: 304.1 kB / 1.031 GB, free: 6.68 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.9624, allocations: 63.33 kB / 1.031 GB, free: 6.605 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.9626, allocations: 215 kB / 1.031 GB, free: 6.43 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.9627, allocations: 40.81 kB / 1.031 GB, free: 6.387 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.9628, allocations: 223.7 kB / 1.031 GB, free: 6.195 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 8.711e-05/0.9629, allocations: 104.1 kB / 1.032 GB, free: 6.109 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.894e-05/0.9629, allocations: 0 / 1.032 GB, free: 6.109 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.963, allocations: 348.3 kB / 1.032 GB, free: 5.773 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.9632, allocations: 132.4 kB / 1.032 GB, free: 5.699 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002683/0.9635, allocations: 266.8 kB / 1.032 GB, free: 5.457 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002564/0.9638, allocations: 151.5 kB / 1.032 GB, free: 5.359 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.9638, allocations: 0 / 1.032 GB, free: 5.359 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006367/0.9644, allocations: 440.2 kB / 1.033 GB, free: 5.016 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.9645, allocations: 10.19 kB / 1.033 GB, free: 5.008 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.9645, allocations: 7.984 kB / 1.033 GB, free: 5 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.9645, allocations: 4 kB / 1.033 GB, free: 4.996 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002552/0.9648, allocations: 69.64 kB / 1.033 GB, free: 4.934 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.9648, allocations: 12.34 kB / 1.033 GB, free: 4.922 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.965, allocations: 35.83 kB / 1.033 GB, free: 4.887 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.214e-05/0.9651, allocations: 27.86 kB / 1.033 GB, free: 4.863 MB / 0.6511 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.0001447/0.9652, allocations: 156.4 kB / 1.033 GB, free: 4.707 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004413/0.9657, allocations: 302.8 kB / 1.033 GB, free: 4.473 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.863e-05/0.9657, allocations: 27.62 kB / 1.033 GB, free: 4.445 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006518/0.9664, allocations: 382.2 kB / 1.034 GB, free: 4.168 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.9664, allocations: 8 kB / 1.034 GB, free: 4.16 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.9664, allocations: 0 / 1.034 GB, free: 4.16 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.9664, allocations: 3.953 kB / 1.034 GB, free: 4.156 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001281/0.9677, allocations: 0.925 MB / 1.035 GB, free: 3.402 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.9677, allocations: 0 / 1.035 GB, free: 3.402 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.9679, allocations: 39.66 kB / 1.035 GB, free: 3.367 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.266e-06/0.9679, allocations: 7.953 kB / 1.035 GB, free: 3.359 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.552e-05/0.9679, allocations: 7.922 kB / 1.035 GB, free: 3.355 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.9679, allocations: 7.938 kB / 1.035 GB, free: 3.348 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.9679, allocations: 0 / 1.035 GB, free: 3.348 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005771/0.9685, allocations: 454.1 kB / 1.035 GB, free: 2.973 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.092e-05/0.9686, allocations: 104.8 kB / 1.035 GB, free: 2.852 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.306e-05/0.9686, allocations: 3.953 kB / 1.035 GB, free: 2.848 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.9688, allocations: 19.97 kB / 1.035 GB, free: 2.828 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.969, allocations: 72.53 kB / 1.035 GB, free: 2.773 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.374e-05/0.969, allocations: 19.31 kB / 1.035 GB, free: 2.758 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.815e-05/0.9691, allocations: 129.3 kB / 1.036 GB, free: 2.648 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9691, allocations: 0 / 1.036 GB, free: 2.648 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003765/0.9695, allocations: 67.91 kB / 1.036 GB, free: 2.582 MB / 0.6511 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.0009123/0.9704, allocations: 1.026 MB / 1.037 GB, free: 1.621 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005292/0.971, allocations: 386.1 kB / 1.037 GB, free: 1.355 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.971, allocations: 0 / 1.037 GB, free: 1.355 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002497/0.9712, allocations: 203.3 kB / 1.037 GB, free: 1.215 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.9715, allocations: 37.53 kB / 1.037 GB, free: 1.188 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.9727, allocations: 0.5799 MB / 1.038 GB, free: 0.6641 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.973, allocations: 0.827 MB / 1.039 GB, free: 15.82 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0002017/0.9733, allocations: 67.23 kB / 1.039 GB, free: 15.75 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.9735, allocations: 143.7 kB / 1.039 GB, free: 15.7 MB / 0.6667 GB Notification: Performance of SimCode: time 3.1e-07/0.9735, allocations: 0 / 1.039 GB, free: 15.7 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02503/0.9985, allocations: 6.807 MB / 1.045 GB, free: 8.949 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002228/0.9988, allocations: 178.7 kB / 1.046 GB, free: 8.762 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.963/2.962, allocations: 6.438 kB / 1.046 GB, free: 8.758 MB / 0.6667 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)