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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.004222/0.004223, allocations: 232.5 kB / 15.82 MB, free: 6.293 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.001134/0.001134, allocations: 173.2 kB / 16.7 MB, free: 5.449 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 4.025/4.025, allocations: 389.1 MB / 406.5 MB, free: 11.73 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 3.9/3.9, allocations: 472.3 MB / 0.9024 GB, free: 9.238 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0004921/0.0004923, allocations: 8 kB / 1.008 GB, free: 176.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.1704, allocations: 98.71 MB / 1.105 GB, free: 80.54 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7664/0.9369, allocations: 128.6 MB / 1.23 GB, free: 18.78 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000352/0.9373, allocations: 97.45 kB / 1.23 GB, free: 18.78 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.03131/0.9686, allocations: 8.135 MB / 1.238 GB, free: 16.78 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.354e-06/0.9686, allocations: 0 / 1.238 GB, free: 16.78 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.468e-05/0.9687, allocations: 16.72 kB / 1.238 GB, free: 16.77 MB / 0.6042 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.001331/0.97, allocations: 0.6325 MB / 1.239 GB, free: 16.25 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.9701, allocations: 9.531 kB / 1.239 GB, free: 16.25 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.9703, allocations: 55.02 kB / 1.239 GB, free: 16.23 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005188/0.9708, allocations: 333.1 kB / 1.239 GB, free: 15.96 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.541e-05/0.9709, allocations: 48.3 kB / 1.239 GB, free: 15.96 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.971, allocations: 53.03 kB / 1.239 GB, free: 15.96 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.9724, allocations: 0.5577 MB / 1.24 GB, free: 15.77 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.9725, allocations: 0 / 1.24 GB, free: 15.77 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-05/0.9726, allocations: 19.53 kB / 1.24 GB, free: 15.77 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.48e-05/0.9726, allocations: 20.11 kB / 1.24 GB, free: 15.77 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.9738, allocations: 432.4 kB / 1.24 GB, free: 15.7 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003663/0.9775, allocations: 1.884 MB / 1.242 GB, free: 30.5 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008214/0.9783, allocations: 364.2 kB / 1.243 GB, free: 30.43 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004148/0.9788, allocations: 188.2 kB / 1.243 GB, free: 30.4 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 7.522e-05/0.9789, allocations: 5.375 kB / 1.243 GB, free: 30.4 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005383/0.9794, allocations: 228.4 kB / 1.243 GB, free: 30.31 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 3.506e-06/0.9794, allocations: 0 / 1.243 GB, free: 30.31 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001294/0.9807, allocations: 479.3 kB / 1.243 GB, free: 30.21 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.9808, allocations: 69.22 kB / 1.244 GB, free: 30.14 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003235/0.9811, allocations: 242.3 kB / 1.244 GB, free: 30 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.32e-05/0.9812, allocations: 46.73 kB / 1.244 GB, free: 29.96 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.9814, allocations: 220.2 kB / 1.244 GB, free: 29.81 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.9815, allocations: 110.4 kB / 1.244 GB, free: 29.74 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/0.9816, allocations: 12.56 kB / 1.244 GB, free: 29.74 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.9817, allocations: 340.1 kB / 1.244 GB, free: 29.42 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004734/0.9822, allocations: 160.4 kB / 1.245 GB, free: 29.4 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005018/0.9827, allocations: 289 kB / 1.245 GB, free: 29.24 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004686/0.9832, allocations: 172.3 kB / 1.245 GB, free: 29.23 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.742e-06/0.9832, allocations: 7.891 kB / 1.245 GB, free: 29.22 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001294/0.9845, allocations: 0.5019 MB / 1.246 GB, free: 29.1 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.9846, allocations: 10.72 kB / 1.246 GB, free: 29.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.9846, allocations: 3.906 kB / 1.246 GB, free: 29.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.9846, allocations: 7.812 kB / 1.246 GB, free: 29.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004077/0.985, allocations: 66.08 kB / 1.246 GB, free: 29.08 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.9851, allocations: 9.484 kB / 1.246 GB, free: 29.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003817/0.9855, allocations: 48.3 kB / 1.246 GB, free: 29.06 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.49e-05/0.9856, allocations: 26.11 kB / 1.246 GB, free: 29.06 MB / 0.6198 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.0004295/0.986, allocations: 225.3 kB / 1.246 GB, free: 28.93 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.524e-05/0.9861, allocations: 30.05 kB / 1.246 GB, free: 28.91 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001179/0.9873, allocations: 439.6 kB / 1.246 GB, free: 28.8 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.9873, allocations: 6.531 kB / 1.246 GB, free: 28.8 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.9873, allocations: 0.8438 kB / 1.246 GB, free: 28.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.9873, allocations: 5.453 kB / 1.246 GB, free: 28.79 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002313/0.9897, allocations: 1.057 MB / 1.247 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.9897, allocations: 0 / 1.247 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.99, allocations: 39.25 kB / 1.247 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.387e-06/0.99, allocations: 4.969 kB / 1.247 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.699e-05/0.9901, allocations: 10.28 kB / 1.247 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.264e-06/0.9901, allocations: 2.562 kB / 1.247 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.9901, allocations: 3.938 kB / 1.247 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.9912, allocations: 0.4884 MB / 1.248 GB, free: 28.1 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.808e-05/0.9913, allocations: 117.2 kB / 1.248 GB, free: 27.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.991e-05/0.9914, allocations: 9.688 kB / 1.248 GB, free: 27.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003138/0.9917, allocations: 24.8 kB / 1.248 GB, free: 27.97 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.9919, allocations: 64.16 kB / 1.248 GB, free: 27.95 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.303e-05/0.992, allocations: 23.52 kB / 1.248 GB, free: 27.95 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001776/0.9922, allocations: 142 kB / 1.248 GB, free: 27.86 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.172e-06/0.9922, allocations: 0 / 1.248 GB, free: 27.86 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000619/0.9928, allocations: 88.19 kB / 1.248 GB, free: 27.85 MB / 0.6198 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.0002563/0.9931, allocations: 152.8 kB / 1.249 GB, free: 27.75 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001076/0.9942, allocations: 436.2 kB / 1.249 GB, free: 27.69 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.9942, allocations: 4.188 kB / 1.249 GB, free: 27.69 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0005468/0.9948, allocations: 216.4 kB / 1.249 GB, free: 27.66 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005697/0.9954, allocations: 45.81 kB / 1.249 GB, free: 27.65 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001899/0.9973, allocations: 0.8382 MB / 1.25 GB, free: 27.17 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.9978, allocations: 0.8284 MB / 1.251 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0004056/0.9982, allocations: 72.33 kB / 1.251 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.9984, allocations: 34.61 kB / 1.251 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of SimCode: time 1.133e-06/0.9984, allocations: 0 / 1.251 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of Templates: time 0.01289/1.011, allocations: 3.731 MB / 1.255 GB, free: 24.77 MB / 0.6198 GB