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.265/2.265, allocations: 248.5 MB / 261 MB, free: 6.066 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.001546/0.001546, allocations: 182.7 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.985/1.985, allocations: 205.2 MB / 0.571 GB, free: 11.8 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.001028/0.001028, allocations: 90.48 kB / 0.6754 GB, free: 0.8906 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.499e-05/4.531e-05, allocations: 4 kB / 0.7869 GB, free: 97.79 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2124, allocations: 106.3 MB / 0.8907 GB, free: 7.434 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8386/1.051, allocations: 135.7 MB / 1.023 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/1.051, allocations: 99.98 kB / 1.023 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.03316/1.085, allocations: 8.229 MB / 1.031 GB, free: 8.281 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.683e-06/1.085, allocations: 0 / 1.031 GB, free: 8.281 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.666e-05/1.085, allocations: 8 kB / 1.031 GB, free: 8.273 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.001358/1.086, allocations: 0.6192 MB / 1.032 GB, free: 7.641 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/1.086, allocations: 12.03 kB / 1.032 GB, free: 7.629 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001591/1.086, allocations: 91.39 kB / 1.032 GB, free: 7.562 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/1.086, allocations: 47.44 kB / 1.032 GB, free: 7.516 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005971/1.087, allocations: 338.5 kB / 1.032 GB, free: 7.199 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.578e-05/1.087, allocations: 42.62 kB / 1.032 GB, free: 7.176 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/1.087, allocations: 60.47 kB / 1.032 GB, free: 7.137 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/1.089, allocations: 0.5619 MB / 1.033 GB, free: 6.711 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/1.089, allocations: 0 / 1.033 GB, free: 6.711 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.842e-05/1.089, allocations: 18.5 kB / 1.033 GB, free: 6.707 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.663e-05/1.089, allocations: 17 kB / 1.033 GB, free: 6.691 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/1.09, allocations: 408.8 kB / 1.033 GB, free: 6.43 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003449/1.093, allocations: 1.901 MB / 1.035 GB, free: 4.848 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008375/1.094, allocations: 349.1 kB / 1.036 GB, free: 4.613 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004112/1.095, allocations: 175.2 kB / 1.036 GB, free: 4.504 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.508e-05/1.095, allocations: 8 kB / 1.036 GB, free: 4.5 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005083/1.095, allocations: 221.9 kB / 1.036 GB, free: 4.328 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.356e-06/1.095, allocations: 0 / 1.036 GB, free: 4.328 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.000919/1.096, allocations: 338.5 kB / 1.036 GB, free: 4.07 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/1.096, allocations: 63.34 kB / 1.036 GB, free: 3.996 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003205/1.097, allocations: 221 kB / 1.037 GB, free: 3.816 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.828e-05/1.097, allocations: 46.39 kB / 1.037 GB, free: 3.777 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/1.097, allocations: 220.7 kB / 1.037 GB, free: 3.582 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/1.097, allocations: 120 kB / 1.037 GB, free: 3.484 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.61e-05/1.097, allocations: 6.938 kB / 1.037 GB, free: 3.484 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001471/1.097, allocations: 340.5 kB / 1.037 GB, free: 3.156 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004539/1.098, allocations: 149.7 kB / 1.037 GB, free: 3.066 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005199/1.098, allocations: 278.9 kB / 1.038 GB, free: 2.812 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/1.099, allocations: 165.1 kB / 1.038 GB, free: 2.703 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/1.099, allocations: 0 / 1.038 GB, free: 2.703 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001177/1.1, allocations: 487.9 kB / 1.038 GB, free: 2.336 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/1.1, allocations: 16.02 kB / 1.038 GB, free: 2.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/1.1, allocations: 4 kB / 1.038 GB, free: 2.316 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.93e-05/1.1, allocations: 7.938 kB / 1.038 GB, free: 2.309 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000456/1.101, allocations: 62.84 kB / 1.038 GB, free: 2.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.094e-05/1.101, allocations: 11.95 kB / 1.038 GB, free: 2.238 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003859/1.101, allocations: 45.81 kB / 1.039 GB, free: 2.203 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.689e-05/1.101, allocations: 23.25 kB / 1.039 GB, free: 2.184 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.0002233/1.101, allocations: 175.6 kB / 1.039 GB, free: 2.027 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.259e-05/1.101, allocations: 23.72 kB / 1.039 GB, free: 2.004 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/1.103, allocations: 414.8 kB / 1.039 GB, free: 1.715 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.088e-06/1.103, allocations: 8 kB / 1.039 GB, free: 1.707 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/1.103, allocations: 3.984 kB / 1.039 GB, free: 1.703 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/1.103, allocations: 3.953 kB / 1.039 GB, free: 1.699 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002248/1.105, allocations: 1.037 MB / 1.04 GB, free: 0.8555 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/1.105, allocations: 3.953 kB / 1.04 GB, free: 0.8516 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002927/1.105, allocations: 43.41 kB / 1.04 GB, free: 0.8125 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.28e-05/1.105, allocations: 4 kB / 1.04 GB, free: 0.8086 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.968e-05/1.105, allocations: 10.69 kB / 1.04 GB, free: 0.8047 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/1.105, allocations: 3.938 kB / 1.04 GB, free: 0.8008 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/1.105, allocations: 0 / 1.04 GB, free: 0.8008 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000956/1.106, allocations: 474.5 kB / 1.041 GB, free: 424 kB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.477e-05/1.106, allocations: 115.9 kB / 1.041 GB, free: 292 kB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.818e-05/1.107, allocations: 14.38 kB / 1.041 GB, free: 284 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003195/1.107, allocations: 30.67 kB / 1.041 GB, free: 260 kB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002105/1.107, allocations: 60.72 kB / 1.041 GB, free: 212 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.126e-05/1.107, allocations: 19.36 kB / 1.041 GB, free: 196 kB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001652/1.107, allocations: 130.3 kB / 1.041 GB, free: 80 kB / 0.6511 GB Notification: Performance of sort global known variables: time 3.7e-07/1.107, allocations: 0 / 1.041 GB, free: 80 kB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006107/1.108, allocations: 92.05 kB / 1.041 GB, free: 4 kB / 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.001432/1.109, allocations: 1.064 MB / 1.042 GB, free: 15.03 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001132/1.111, allocations: 425.5 kB / 1.043 GB, free: 14.72 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/1.111, allocations: 0 / 1.043 GB, free: 14.72 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004778/1.111, allocations: 203 kB / 1.043 GB, free: 14.58 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/1.112, allocations: 34.3 kB / 1.043 GB, free: 14.56 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/1.113, allocations: 0.6273 MB / 1.043 GB, free: 14.01 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005146/1.114, allocations: 0.8385 MB / 1.044 GB, free: 13.15 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0003744/1.114, allocations: 63.25 kB / 1.044 GB, free: 13.09 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003266/1.115, allocations: 145.4 kB / 1.044 GB, free: 13.04 MB / 0.6667 GB Notification: Performance of SimCode: time 1.152e-06/1.115, allocations: 0 / 1.044 GB, free: 13.04 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03346/1.148, allocations: 7.23 MB / 1.051 GB, free: 5.984 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000281/1.149, allocations: 179.5 kB / 1.052 GB, free: 5.766 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.688/3.837, allocations: 2.5 kB / 1.052 GB, free: 5.766 MB / 0.6667 GB