Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.408/2.408, allocations: 248.7 MB / 256.2 MB, free: 7.094 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.001445/0.001444, allocations: 184.4 kB / 315.4 MB, free: 4.008 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.216/2.216, allocations: 205.3 MB / 0.5662 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 97.97 kB / 0.6704 GB, free: 5.801 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.899e-05/2.899e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2173, allocations: 106.3 MB / 0.8841 GB, free: 12.99 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8829/1.1, allocations: 135.9 MB / 1.017 GB, free: 2.938 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003271/1.101, allocations: 95.62 kB / 1.017 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03548/1.136, allocations: 8.1 MB / 1.025 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.562e-06/1.136, allocations: 0 / 1.025 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.552e-05/1.136, allocations: 8 kB / 1.025 GB, free: 12.19 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.001435/1.138, allocations: 0.6198 MB / 1.025 GB, free: 11.55 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.788e-05/1.138, allocations: 12.03 kB / 1.025 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001756/1.138, allocations: 47.44 kB / 1.026 GB, free: 11.5 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006158/1.139, allocations: 340 kB / 1.026 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.836e-05/1.139, allocations: 23.56 kB / 1.026 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/1.139, allocations: 36 kB / 1.026 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001348/1.14, allocations: 360.6 kB / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/1.141, allocations: 496.2 kB / 1.027 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.716e-05/1.142, allocations: 7.938 kB / 1.027 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.044e-05/1.142, allocations: 3.984 kB / 1.027 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-05/1.142, allocations: 17.31 kB / 1.027 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003814/1.146, allocations: 1.806 MB / 1.029 GB, free: 8.98 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007806/1.146, allocations: 324.3 kB / 1.029 GB, free: 8.77 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003638/1.147, allocations: 163.3 kB / 1.029 GB, free: 8.668 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 6.795e-05/1.147, allocations: 11.42 kB / 1.029 GB, free: 8.66 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004713/1.147, allocations: 209.7 kB / 1.029 GB, free: 8.496 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 6.822e-06/1.147, allocations: 4 kB / 1.029 GB, free: 8.492 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0008927/1.148, allocations: 304.7 kB / 1.029 GB, free: 8.258 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/1.148, allocations: 56.03 kB / 1.03 GB, free: 8.191 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003092/1.149, allocations: 219.1 kB / 1.03 GB, free: 8.012 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.29e-05/1.149, allocations: 33.2 kB / 1.03 GB, free: 7.977 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002389/1.149, allocations: 226.5 kB / 1.03 GB, free: 7.781 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/1.149, allocations: 103 kB / 1.03 GB, free: 7.695 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.193e-05/1.149, allocations: 3.938 kB / 1.03 GB, free: 7.691 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001512/1.149, allocations: 336.6 kB / 1.03 GB, free: 7.367 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003634/1.15, allocations: 147.8 kB / 1.031 GB, free: 7.281 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004603/1.15, allocations: 260.9 kB / 1.031 GB, free: 7.043 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004303/1.151, allocations: 151.2 kB / 1.031 GB, free: 6.945 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/1.151, allocations: 0 / 1.031 GB, free: 6.945 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001123/1.152, allocations: 435.9 kB / 1.031 GB, free: 6.605 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/1.152, allocations: 8.406 kB / 1.031 GB, free: 6.598 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/1.152, allocations: 11.98 kB / 1.031 GB, free: 6.586 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.115e-05/1.152, allocations: 8 kB / 1.031 GB, free: 6.578 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004339/1.152, allocations: 66.34 kB / 1.031 GB, free: 6.52 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/1.152, allocations: 4 kB / 1.031 GB, free: 6.516 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003849/1.153, allocations: 35.81 kB / 1.032 GB, free: 6.48 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-05/1.153, allocations: 27.27 kB / 1.032 GB, free: 6.457 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.0002748/1.153, allocations: 157 kB / 1.032 GB, free: 6.305 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008029/1.154, allocations: 302.9 kB / 1.032 GB, free: 6.07 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.666e-05/1.154, allocations: 31.62 kB / 1.032 GB, free: 6.039 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/1.155, allocations: 373.5 kB / 1.032 GB, free: 5.77 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/1.155, allocations: 12 kB / 1.032 GB, free: 5.758 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/1.155, allocations: 3.953 kB / 1.032 GB, free: 5.754 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/1.155, allocations: 7.922 kB / 1.032 GB, free: 5.746 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002251/1.157, allocations: 0.9299 MB / 1.033 GB, free: 4.988 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/1.158, allocations: 0 / 1.033 GB, free: 4.988 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002931/1.158, allocations: 47.42 kB / 1.033 GB, free: 4.945 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.314e-05/1.158, allocations: 4 kB / 1.033 GB, free: 4.941 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.397e-05/1.158, allocations: 3.438 kB / 1.033 GB, free: 4.941 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/1.158, allocations: 4 kB / 1.033 GB, free: 4.938 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/1.158, allocations: 0 / 1.033 GB, free: 4.938 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/1.159, allocations: 451.5 kB / 1.034 GB, free: 4.566 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.438e-05/1.159, allocations: 108.7 kB / 1.034 GB, free: 4.441 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.834e-05/1.159, allocations: 11.89 kB / 1.034 GB, free: 4.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003214/1.159, allocations: 19.98 kB / 1.034 GB, free: 4.41 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002202/1.16, allocations: 66.97 kB / 1.034 GB, free: 4.359 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.743e-05/1.16, allocations: 19.61 kB / 1.034 GB, free: 4.344 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000153/1.16, allocations: 127 kB / 1.034 GB, free: 4.234 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.31e-07/1.16, allocations: 0 / 1.034 GB, free: 4.234 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006979/1.161, allocations: 71.89 kB / 1.034 GB, free: 4.164 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.00152/1.162, allocations: 1.025 MB / 1.035 GB, free: 3.207 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0009829/1.163, allocations: 395.2 kB / 1.036 GB, free: 2.938 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/1.163, allocations: 0 / 1.036 GB, free: 2.938 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004361/1.164, allocations: 192.8 kB / 1.036 GB, free: 2.809 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004471/1.164, allocations: 38.3 kB / 1.036 GB, free: 2.777 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/1.166, allocations: 0.5806 MB / 1.036 GB, free: 2.25 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005158/1.167, allocations: 0.8378 MB / 1.037 GB, free: 1.395 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000399/1.167, allocations: 59.25 kB / 1.037 GB, free: 1.34 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003348/1.167, allocations: 141 kB / 1.037 GB, free: 1.293 MB / 0.6511 GB Notification: Performance of SimCode: time 1.293e-06/1.167, allocations: 0 / 1.037 GB, free: 1.293 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05749/1.225, allocations: 6.811 MB / 1.044 GB, free: 10.51 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003051/1.225, allocations: 172.8 kB / 1.044 GB, free: 10.32 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.537/3.762, allocations: 0 / 1.044 GB, free: 10.32 MB / 0.6667 GB