Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01159/0.01159, allocations: 106.3 kB / 15.05 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001264/0.001264, allocations: 184 kB / 15.94 MB, free: 5.938 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.028/2.028, allocations: 194.6 MB / 211.3 MB, free: 11.29 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.216/2.216, allocations: 236.1 MB / 492.6 MB, free: 11.39 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004917/0.0004916, allocations: 12 kB / 0.587 GB, free: 2.078 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7038/0.7044, allocations: 98.7 MB / 0.6834 GB, free: 16.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2393/0.9438, allocations: 128.6 MB / 0.8091 GB, free: 13.53 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000377/0.9442, allocations: 95.92 kB / 0.8092 GB, free: 13.43 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03302/0.9772, allocations: 8.124 MB / 0.8171 GB, free: 5.262 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.974e-06/0.9773, allocations: 7.938 kB / 0.8171 GB, free: 5.254 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.717e-05/0.9773, allocations: 16 kB / 0.8171 GB, free: 5.238 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001411/0.9788, allocations: 0.6307 MB / 0.8177 GB, free: 4.551 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.9788, allocations: 12.03 kB / 0.8177 GB, free: 4.539 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001539/0.979, allocations: 90.45 kB / 0.8178 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.9791, allocations: 55.73 kB / 0.8179 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005891/0.9797, allocations: 332.8 kB / 0.8182 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.883e-05/0.9798, allocations: 45 kB / 0.8182 GB, free: 3.977 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.98, allocations: 52 kB / 0.8183 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.9814, allocations: 0.5539 MB / 0.8188 GB, free: 3.34 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.9815, allocations: 0 / 0.8188 GB, free: 3.34 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.562e-05/0.9815, allocations: 20 kB / 0.8188 GB, free: 3.32 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-05/0.9816, allocations: 24.98 kB / 0.8189 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.9829, allocations: 423.7 kB / 0.8193 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003399/0.9863, allocations: 1.888 MB / 0.8211 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009655/0.9873, allocations: 375.8 kB / 0.8215 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 7.932e-05/0.9874, allocations: 7.984 kB / 0.8215 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005912/0.988, allocations: 222.8 kB / 0.8217 GB, free: 312 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 4.358e-06/0.988, allocations: 0 / 0.8217 GB, free: 312 kB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.001486/0.9895, allocations: 485.4 kB / 0.8222 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.179e-05/0.9896, allocations: 67.09 kB / 0.8222 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003061/0.9899, allocations: 220.9 kB / 0.8224 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.965e-05/0.99, allocations: 45.7 kB / 0.8225 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.9902, allocations: 216.8 kB / 0.8227 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.9903, allocations: 110.6 kB / 0.8228 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.768e-05/0.9904, allocations: 16 kB / 0.8228 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.9905, allocations: 338.8 kB / 0.8231 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004867/0.991, allocations: 161.2 kB / 0.8233 GB, free: 14.63 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005989/0.9917, allocations: 292.7 kB / 0.8236 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004966/0.9922, allocations: 170.1 kB / 0.8237 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.9922, allocations: 0 / 0.8237 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001355/0.9936, allocations: 0.5064 MB / 0.8242 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.908e-05/0.9936, allocations: 9.406 kB / 0.8242 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.9936, allocations: 4 kB / 0.8242 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/0.9937, allocations: 11.94 kB / 0.8242 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004371/0.9941, allocations: 59.84 kB / 0.8243 GB, free: 13.54 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.153e-05/0.9941, allocations: 11.98 kB / 0.8243 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003873/0.9945, allocations: 44.08 kB / 0.8244 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.514e-05/0.9946, allocations: 28 kB / 0.8244 GB, free: 13.45 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 () * Number of clocked 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.000426/0.9951, allocations: 226.9 kB / 0.8246 GB, free: 13.22 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.525e-05/0.9952, allocations: 31.58 kB / 0.8246 GB, free: 13.19 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001238/0.9964, allocations: 439.4 kB / 0.825 GB, free: 12.76 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.417e-06/0.9964, allocations: 4 kB / 0.825 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.9965, allocations: 0 / 0.825 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.9965, allocations: 11.91 kB / 0.8251 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00243/0.9989, allocations: 1.058 MB / 0.8261 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.9989, allocations: 0 / 0.8261 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.9992, allocations: 31.92 kB / 0.8261 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-05/0.9993, allocations: 7.984 kB / 0.8261 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.9993, allocations: 8 kB / 0.8261 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.354e-06/0.9993, allocations: 7.938 kB / 0.8261 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.9993, allocations: 0 / 0.8261 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/1, allocations: 0.4919 MB / 0.8266 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.948e-05/1.001, allocations: 100.8 kB / 0.8267 GB, free: 10.94 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.078e-05/1.001, allocations: 15.92 kB / 0.8267 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003249/1.001, allocations: 31.98 kB / 0.8268 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/1.001, allocations: 64.34 kB / 0.8268 GB, free: 10.83 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.189e-05/1.001, allocations: 19.98 kB / 0.8268 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001583/1.001, allocations: 140 kB / 0.827 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.91e-07/1.001, allocations: 0 / 0.827 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006201/1.002, allocations: 84 kB / 0.8271 GB, free: 10.59 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) * Number of clocked states: 0 () * 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.001567/1.004, allocations: 1.087 MB / 0.8281 GB, free: 9.484 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001202/1.005, allocations: 441.5 kB / 0.8285 GB, free: 9.055 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/1.005, allocations: 0 / 0.8285 GB, free: 9.055 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005674/1.005, allocations: 214.4 kB / 0.8287 GB, free: 8.844 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004061/1.006, allocations: 44.86 kB / 0.8288 GB, free: 8.801 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005453/1.011, allocations: 4.289 MB / 0.833 GB, free: 4.395 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/1.012, allocations: 0.8272 MB / 0.8338 GB, free: 3.543 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0003836/1.012, allocations: 63.25 kB / 0.8338 GB, free: 3.484 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003549/1.013, allocations: 139.4 kB / 0.834 GB, free: 3.348 MB / 0.6511 GB Notification: Performance of SimCode: time 1.153e-06/1.013, allocations: 4 kB / 0.834 GB, free: 3.344 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03178/1.044, allocations: 7.095 MB / 0.8409 GB, free: 12.41 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003424/1.045, allocations: 216.5 kB / 0.8411 GB, free: 12.16 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.616/3.661, allocations: 0 / 0.8411 GB, free: 12.16 MB / 0.6667 GB