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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.06/4.06, allocations: 432.7 MB / 445.3 MB, free: 15.74 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.881e-05/2.907e-05, allocations: 4.297 kB / 0.5383 GB, free: 10.23 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.1801, allocations: 98.73 MB / 0.6347 GB, free: 1.906 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2009/0.381, allocations: 128.6 MB / 0.7603 GB, free: 1.172 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003106/0.3814, allocations: 91.94 kB / 0.7604 GB, free: 1.082 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03175/0.4132, allocations: 8.091 MB / 0.7683 GB, free: 8.945 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.378e-06/0.4132, allocations: 0 / 0.7683 GB, free: 8.945 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.576e-05/0.4133, allocations: 19.94 kB / 0.7683 GB, free: 8.926 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001234/0.4145, allocations: 0.6066 MB / 0.7689 GB, free: 8.27 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.4146, allocations: 8.031 kB / 0.7689 GB, free: 8.262 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001494/0.4147, allocations: 59.73 kB / 0.7689 GB, free: 8.203 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005772/0.4153, allocations: 334.2 kB / 0.7693 GB, free: 7.836 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.272e-05/0.4154, allocations: 41 kB / 0.7693 GB, free: 7.793 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.4156, allocations: 56 kB / 0.7694 GB, free: 7.738 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.4168, allocations: 0.5422 MB / 0.7699 GB, free: 7.168 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.4169, allocations: 8 kB / 0.7699 GB, free: 7.16 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.846e-05/0.417, allocations: 20 kB / 0.7699 GB, free: 7.141 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.463e-05/0.417, allocations: 17 kB / 0.7699 GB, free: 7.125 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.418, allocations: 403.8 kB / 0.7703 GB, free: 6.727 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003368/0.4214, allocations: 1.892 MB / 0.7722 GB, free: 4.758 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008049/0.4223, allocations: 355.5 kB / 0.7725 GB, free: 4.398 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000387/0.4227, allocations: 172.8 kB / 0.7727 GB, free: 4.227 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 6.794e-05/0.4228, allocations: 15.92 kB / 0.7727 GB, free: 4.211 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000475/0.4233, allocations: 210.3 kB / 0.7729 GB, free: 3.992 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 5.476e-06/0.4233, allocations: 4 kB / 0.7729 GB, free: 3.988 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0008728/0.4242, allocations: 337.3 kB / 0.7732 GB, free: 3.652 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.4243, allocations: 63.39 kB / 0.7733 GB, free: 3.578 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/0.4246, allocations: 217 kB / 0.7735 GB, free: 3.355 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.581e-05/0.4247, allocations: 45.7 kB / 0.7735 GB, free: 3.305 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002054/0.4249, allocations: 212.8 kB / 0.7737 GB, free: 3.094 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.4251, allocations: 110.6 kB / 0.7738 GB, free: 2.984 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.591e-05/0.4251, allocations: 12 kB / 0.7738 GB, free: 2.973 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001942/0.4253, allocations: 346.8 kB / 0.7742 GB, free: 2.625 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003867/0.4257, allocations: 149.5 kB / 0.7743 GB, free: 2.48 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000509/0.4263, allocations: 282 kB / 0.7746 GB, free: 2.152 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004051/0.4267, allocations: 155.2 kB / 0.7747 GB, free: 2 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.845e-06/0.4267, allocations: 0 / 0.7747 GB, free: 2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001195/0.4279, allocations: 0.4945 MB / 0.7752 GB, free: 1.5 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.428, allocations: 8 kB / 0.7752 GB, free: 1.492 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.428, allocations: 4 kB / 0.7752 GB, free: 1.488 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.692e-05/0.428, allocations: 8 kB / 0.7752 GB, free: 1.48 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003684/0.4284, allocations: 59.84 kB / 0.7753 GB, free: 1.422 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.302e-05/0.4284, allocations: 11.98 kB / 0.7753 GB, free: 1.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004076/0.4289, allocations: 48.05 kB / 0.7753 GB, free: 1.363 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.594e-05/0.429, allocations: 27.98 kB / 0.7754 GB, free: 1.336 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.0002421/0.4292, allocations: 166 kB / 0.7755 GB, free: 1.168 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.28e-05/0.4293, allocations: 27.67 kB / 0.7756 GB, free: 1.141 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/0.4304, allocations: 419.2 kB / 0.776 GB, free: 0.7305 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.4304, allocations: 4 kB / 0.776 GB, free: 0.7266 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.13e-06/0.4304, allocations: 0 / 0.776 GB, free: 0.7266 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.4305, allocations: 7.969 kB / 0.776 GB, free: 0.7188 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4507/0.8811, allocations: 1.043 MB / 0.777 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.8812, allocations: 0.5 kB / 0.777 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002528/0.8815, allocations: 39.95 kB / 0.777 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/0.8815, allocations: 2.188 kB / 0.777 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.146e-05/0.8815, allocations: 9.938 kB / 0.777 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.49e-06/0.8816, allocations: 2.703 kB / 0.777 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.158e-06/0.8816, allocations: 0 / 0.777 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008663/0.8825, allocations: 485.1 kB / 0.7775 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.669e-05/0.8825, allocations: 103.9 kB / 0.7776 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.333e-05/0.8826, allocations: 11.45 kB / 0.7776 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002877/0.8829, allocations: 31.67 kB / 0.7776 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002116/0.8831, allocations: 63.05 kB / 0.7777 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.732e-05/0.8832, allocations: 16.7 kB / 0.7777 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001477/0.8834, allocations: 137.5 kB / 0.7778 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.55e-07/0.8834, allocations: 1.062 kB / 0.7778 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006467/0.884, allocations: 85.81 kB / 0.7779 GB, free: 137.6 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.0002528/0.8843, allocations: 146.7 kB / 0.7781 GB, free: 137.5 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0009794/0.8853, allocations: 418.8 kB / 0.7785 GB, free: 137.5 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.502e-06/0.8853, allocations: 3.188 kB / 0.7785 GB, free: 137.5 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004482/0.8858, allocations: 206.4 kB / 0.7787 GB, free: 137.5 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.8862, allocations: 40.59 kB / 0.7787 GB, free: 137.5 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.8877, allocations: 0.5341 MB / 0.7792 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.8881, allocations: 0.8296 MB / 0.78 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0003691/0.8885, allocations: 64.56 kB / 0.7801 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.8887, allocations: 39.92 kB / 0.7801 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of SimCode: time 2.405e-06/0.8887, allocations: 5.219 kB / 0.7801 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of Templates: time 0.01379/0.9025, allocations: 3.729 MB / 0.7838 GB, free: 136.4 MB / 0.6511 GB