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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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 loadModel(Buildings): time 4.038/4.038, allocations: 432.6 MB / 445.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.955e-05/2.975e-05, allocations: 3.094 kB / 0.5383 GB, free: 10.28 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2067, allocations: 98.74 MB / 0.6347 GB, free: 1.871 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2323/0.439, allocations: 128.6 MB / 0.7603 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003456/0.4395, allocations: 87.94 kB / 0.7604 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03321/0.4727, allocations: 8.099 MB / 0.7683 GB, free: 8.906 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4727, allocations: 0 / 0.7683 GB, free: 8.906 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.725e-05/0.4728, allocations: 15.94 kB / 0.7683 GB, free: 8.891 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.001308/0.4741, allocations: 0.6106 MB / 0.7689 GB, free: 8.23 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.4742, allocations: 11.97 kB / 0.7689 GB, free: 8.219 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000159/0.4743, allocations: 94.52 kB / 0.769 GB, free: 8.117 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.4745, allocations: 51.73 kB / 0.769 GB, free: 8.066 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005953/0.4751, allocations: 331.1 kB / 0.7693 GB, free: 7.699 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.898e-05/0.4752, allocations: 48.94 kB / 0.7694 GB, free: 7.648 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.4753, allocations: 56 kB / 0.7694 GB, free: 7.594 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.4767, allocations: 0.5306 MB / 0.77 GB, free: 7.035 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.4767, allocations: 3.938 kB / 0.77 GB, free: 7.031 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.09e-05/0.4768, allocations: 23.94 kB / 0.77 GB, free: 7.008 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-05/0.4769, allocations: 24.98 kB / 0.77 GB, free: 6.984 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.478, allocations: 403.8 kB / 0.7704 GB, free: 6.586 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003549/0.4816, allocations: 1.896 MB / 0.7722 GB, free: 4.613 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008602/0.4825, allocations: 345.3 kB / 0.7726 GB, free: 4.266 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004262/0.4829, allocations: 176.8 kB / 0.7727 GB, free: 4.09 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.426e-05/0.483, allocations: 12 kB / 0.7728 GB, free: 4.078 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005154/0.4836, allocations: 214.2 kB / 0.773 GB, free: 3.855 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 6.111e-06/0.4836, allocations: 3.984 kB / 0.773 GB, free: 3.852 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0009398/0.4845, allocations: 329.3 kB / 0.7733 GB, free: 3.523 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.715e-05/0.4846, allocations: 63.41 kB / 0.7733 GB, free: 3.449 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003227/0.485, allocations: 224.9 kB / 0.7736 GB, free: 3.219 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.769e-05/0.4851, allocations: 49.7 kB / 0.7736 GB, free: 3.164 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001863/0.4853, allocations: 208.8 kB / 0.7738 GB, free: 2.957 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.4854, allocations: 114.6 kB / 0.7739 GB, free: 2.844 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.232e-05/0.4855, allocations: 8 kB / 0.7739 GB, free: 2.836 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.4856, allocations: 338.8 kB / 0.7742 GB, free: 2.496 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004275/0.4861, allocations: 153.5 kB / 0.7744 GB, free: 2.348 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005443/0.4866, allocations: 282 kB / 0.7747 GB, free: 2.02 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004458/0.4871, allocations: 163.2 kB / 0.7748 GB, free: 1.859 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.4871, allocations: 3.953 kB / 0.7748 GB, free: 1.855 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001239/0.4883, allocations: 486.8 kB / 0.7753 GB, free: 1.375 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.4884, allocations: 12.06 kB / 0.7753 GB, free: 1.363 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/0.4884, allocations: 4 kB / 0.7753 GB, free: 1.359 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.067e-05/0.4885, allocations: 11.98 kB / 0.7753 GB, free: 1.348 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004467/0.4889, allocations: 59.84 kB / 0.7754 GB, free: 1.289 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.12e-05/0.489, allocations: 11.94 kB / 0.7754 GB, free: 1.277 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000387/0.4894, allocations: 47.75 kB / 0.7754 GB, free: 1.23 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.921e-05/0.4894, allocations: 28 kB / 0.7754 GB, free: 1.203 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.0002215/0.4897, allocations: 166.1 kB / 0.7756 GB, free: 1.035 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.917e-05/0.4898, allocations: 31.66 kB / 0.7756 GB, free: 1.004 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001091/0.4909, allocations: 411.3 kB / 0.776 GB, free: 0.6016 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.4909, allocations: 8 kB / 0.776 GB, free: 0.5938 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.4909, allocations: 3.938 kB / 0.776 GB, free: 0.5898 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.4909, allocations: 7.922 kB / 0.776 GB, free: 0.582 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5402/1.031, allocations: 1.031 MB / 0.7771 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-06/1.031, allocations: 0.6094 kB / 0.7771 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003428/1.032, allocations: 36.08 kB / 0.7771 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.311e-05/1.032, allocations: 2.375 kB / 0.7771 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.329e-05/1.032, allocations: 12.83 kB / 0.7771 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.174e-06/1.032, allocations: 3.219 kB / 0.7771 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.032, allocations: 0 / 0.7771 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009628/1.033, allocations: 487 kB / 0.7776 GB, free: 137.8 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.603e-05/1.033, allocations: 104.7 kB / 0.7777 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.868e-05/1.033, allocations: 12.11 kB / 0.7777 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003296/1.033, allocations: 33.41 kB / 0.7777 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002411/1.033, allocations: 67.19 kB / 0.7778 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.029e-05/1.034, allocations: 16.69 kB / 0.7778 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001603/1.034, allocations: 138 kB / 0.7779 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.71e-07/1.034, allocations: 3.281 kB / 0.7779 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006064/1.034, allocations: 85.66 kB / 0.778 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.00134/1.036, allocations: 1.058 MB / 0.779 GB, free: 136.9 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0011/1.037, allocations: 424.1 kB / 0.7794 GB, free: 136.9 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/1.037, allocations: 0 / 0.7794 GB, free: 136.9 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005555/1.037, allocations: 204.1 kB / 0.7796 GB, free: 136.9 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/1.038, allocations: 37.38 kB / 0.7797 GB, free: 136.9 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/1.04, allocations: 0.6305 MB / 0.7803 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/1.04, allocations: 0.8264 MB / 0.7811 GB, free: 136 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0004512/1.041, allocations: 69.62 kB / 0.7812 GB, free: 136 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003612/1.041, allocations: 140.2 kB / 0.7813 GB, free: 136 MB / 0.6511 GB Notification: Performance of SimCode: time 1.413e-06/1.041, allocations: 0 / 0.7813 GB, free: 136 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04653/1.088, allocations: 7.194 MB / 0.7883 GB, free: 135.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002255/1.088, allocations: 186.2 kB / 0.7885 GB, free: 135.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.469/3.557, allocations: 0 / 0.7885 GB, free: 135.3 MB / 0.6511 GB