Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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 loadModel(Buildings): time 4.213/4.213, allocations: 433.4 MB / 440.9 MB, free: 10.49 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.136e-05/2.149e-05, allocations: 4 kB / 0.5325 GB, free: 1.949 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5083/0.5084, allocations: 98.7 MB / 0.6289 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1992/0.7076, allocations: 127.9 MB / 0.7538 GB, free: 15.68 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/0.708, allocations: 95.92 kB / 0.7539 GB, free: 15.59 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0303/0.7383, allocations: 7.96 MB / 0.7617 GB, free: 7.586 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.529e-06/0.7383, allocations: 0 / 0.7617 GB, free: 7.586 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.728e-05/0.7384, allocations: 12.66 kB / 0.7617 GB, free: 7.574 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.001311/0.7397, allocations: 0.6186 MB / 0.7623 GB, free: 6.906 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.7398, allocations: 12.02 kB / 0.7623 GB, free: 6.895 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.74, allocations: 51.73 kB / 0.7624 GB, free: 6.844 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006229/0.7406, allocations: 332.3 kB / 0.7627 GB, free: 6.477 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.135e-05/0.7407, allocations: 16 kB / 0.7627 GB, free: 6.461 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.446e-05/0.7408, allocations: 32 kB / 0.7627 GB, free: 6.43 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001023/0.7418, allocations: 374.5 kB / 0.7631 GB, free: 6.066 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.743, allocations: 485.4 kB / 0.7635 GB, free: 5.559 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.743, allocations: 3.938 kB / 0.7635 GB, free: 5.555 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.132e-05/0.7431, allocations: 0 / 0.7635 GB, free: 5.555 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-05/0.7431, allocations: 29.28 kB / 0.7636 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003242/0.7464, allocations: 1.786 MB / 0.7653 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007485/0.7472, allocations: 323.4 kB / 0.7656 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003501/0.7476, allocations: 164.8 kB / 0.7658 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 6.581e-05/0.7477, allocations: 8 kB / 0.7658 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004484/0.7481, allocations: 205.9 kB / 0.766 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 4.213e-06/0.7481, allocations: 4 kB / 0.766 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.0008609/0.749, allocations: 301.7 kB / 0.7663 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6e-05/0.7491, allocations: 63.39 kB / 0.7663 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003107/0.7494, allocations: 209 kB / 0.7665 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 8.156e-05/0.7495, allocations: 41.7 kB / 0.7666 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.7497, allocations: 220.7 kB / 0.7668 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.7499, allocations: 102.7 kB / 0.7669 GB, free: 2 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.596e-05/0.7499, allocations: 0 / 0.7669 GB, free: 2 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001898/0.7501, allocations: 342.8 kB / 0.7672 GB, free: 1.656 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003547/0.7505, allocations: 141.5 kB / 0.7673 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004654/0.751, allocations: 260.5 kB / 0.7676 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004252/0.7514, allocations: 146.1 kB / 0.7677 GB, free: 1.074 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.818e-06/0.7514, allocations: 4 kB / 0.7677 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001094/0.7525, allocations: 450.5 kB / 0.7682 GB, free: 0.6211 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.7526, allocations: 10.5 kB / 0.7682 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.7526, allocations: 4 kB / 0.7682 GB, free: 0.6094 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.935e-05/0.7526, allocations: 8 kB / 0.7682 GB, free: 0.6016 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003409/0.753, allocations: 63.84 kB / 0.7682 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.742e-05/0.753, allocations: 11.98 kB / 0.7683 GB, free: 0.5273 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003061/0.7533, allocations: 32.08 kB / 0.7683 GB, free: 0.4961 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.24e-05/0.7535, allocations: 24 kB / 0.7683 GB, free: 484 kB / 0.6355 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.0002154/0.7537, allocations: 160.9 kB / 0.7685 GB, free: 320 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.697e-05/0.7538, allocations: 27.67 kB / 0.7685 GB, free: 292 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.7549, allocations: 380 kB / 0.7689 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.7549, allocations: 4 kB / 0.7689 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.998e-06/0.7549, allocations: 4 kB / 0.7689 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.7549, allocations: 3.984 kB / 0.7689 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002155/0.7571, allocations: 0.9371 MB / 0.7698 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.975e-06/0.7572, allocations: 0 / 0.7698 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.7574, allocations: 39.86 kB / 0.7698 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.393e-06/0.7574, allocations: 4 kB / 0.7698 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.989e-05/0.7575, allocations: 7.984 kB / 0.7698 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.65e-06/0.7575, allocations: 0 / 0.7698 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.139e-06/0.7575, allocations: 3.938 kB / 0.7698 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009963/0.7585, allocations: 460.6 kB / 0.7703 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.302e-05/0.7586, allocations: 100.7 kB / 0.7704 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.456e-05/0.7587, allocations: 0 / 0.7704 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002722/0.759, allocations: 23.97 kB / 0.7704 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.7592, allocations: 68.34 kB / 0.7705 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.981e-05/0.7593, allocations: 15.92 kB / 0.7705 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001597/0.7595, allocations: 132.3 kB / 0.7706 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.23e-07/0.7595, allocations: 4 kB / 0.7706 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006115/0.7601, allocations: 67.94 kB / 0.7707 GB, free: 13.96 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.0002612/0.7604, allocations: 142.2 kB / 0.7708 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000897/0.7613, allocations: 384.5 kB / 0.7712 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.119e-06/0.7613, allocations: 4.125 kB / 0.7712 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004078/0.7617, allocations: 201.5 kB / 0.7714 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003858/0.7621, allocations: 27.94 kB / 0.7714 GB, free: 13.22 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.7635, allocations: 0.5092 MB / 0.7719 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005834/0.7641, allocations: 0.8309 MB / 0.7727 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000362/0.7645, allocations: 67.23 kB / 0.7728 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.7647, allocations: 39.42 kB / 0.7728 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of SimCode: time 1.887e-06/0.7647, allocations: 0 / 0.7728 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of Templates: time 0.01188/0.7766, allocations: 3.598 MB / 0.7763 GB, free: 8.148 MB / 0.6511 GB