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.009632/0.009632, allocations: 108.5 kB / 15.06 MB, free: 5.562 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.001138/0.001138, allocations: 180.2 kB / 15.95 MB, free: 5.523 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.108/2.108, 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.266/2.266, allocations: 236.2 MB / 492.6 MB, free: 11.41 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004747/0.0004749, allocations: 16 kB / 0.5869 GB, free: 2.18 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5416/0.5421, allocations: 98.71 MB / 0.6834 GB, free: 16.63 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002583/0.5447, allocations: 1.888 MB / 0.6852 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.001905/0.5467, allocations: 0.9508 MB / 0.6861 GB, free: 14.6 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002572/0.547, allocations: 10.53 kB / 0.6861 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.5471, allocations: 46.81 kB / 0.6862 GB, free: 14.56 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0002354/0.5474, allocations: 31.12 kB / 0.6862 GB, free: 14.54 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.000639/0.548, allocations: 181.4 kB / 0.6864 GB, free: 14.44 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0005456/0.5486, allocations: 352.5 kB / 0.6867 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006043/0.5492, allocations: 352.5 kB / 0.6871 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002604/0.5495, allocations: 142.1 kB / 0.6872 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.5497, allocations: 156.7 kB / 0.6873 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 6.155e-05/0.5498, allocations: 19.84 kB / 0.6874 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.55, allocations: 35.91 kB / 0.6874 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.5501, allocations: 89.08 kB / 0.6875 GB, free: 13.93 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 9.768e-05/0.5502, allocations: 94.92 kB / 0.6876 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0007196/0.5509, allocations: 0.5181 MB / 0.6881 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.705e-06/0.551, allocations: 0 / 0.6881 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.641e-06/0.551, allocations: 5.625 kB / 0.6881 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.046e-05/0.551, allocations: 0 / 0.6881 GB, free: 13.75 MB / 0.5261 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.001136/0.5521, allocations: 0.6143 MB / 0.6887 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.5522, allocations: 14.11 kB / 0.6887 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001387/0.5524, allocations: 52.83 kB / 0.6887 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004497/0.5528, allocations: 337 kB / 0.6891 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.621e-05/0.5529, allocations: 45.42 kB / 0.6891 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.553, allocations: 52.89 kB / 0.6892 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.5543, allocations: 0.5541 MB / 0.6897 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.5544, allocations: 1.062 kB / 0.6897 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.228e-05/0.5544, allocations: 21.19 kB / 0.6897 GB, free: 12.59 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-05/0.5545, allocations: 22.69 kB / 0.6897 GB, free: 12.58 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.5556, allocations: 433.2 kB / 0.6902 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003038/0.5587, allocations: 1.911 MB / 0.692 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008329/0.5596, allocations: 363.3 kB / 0.6924 GB, free: 10.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 6.247e-05/0.5597, allocations: 10.92 kB / 0.6924 GB, free: 10.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005197/0.5602, allocations: 226.9 kB / 0.6926 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 4.565e-06/0.5602, allocations: 3.938 kB / 0.6926 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.001279/0.5615, allocations: 478.7 kB / 0.6931 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.5616, allocations: 65.7 kB / 0.6931 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003052/0.5619, allocations: 242.7 kB / 0.6933 GB, free: 10.36 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.112e-05/0.562, allocations: 48.55 kB / 0.6934 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.5621, allocations: 216.7 kB / 0.6936 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.5623, allocations: 112.2 kB / 0.6937 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-05/0.5623, allocations: 14.62 kB / 0.6937 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.681e-05/0.5624, allocations: 343.6 kB / 0.694 GB, free: 9.707 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004381/0.5629, allocations: 160 kB / 0.6942 GB, free: 9.648 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004982/0.5634, allocations: 289.7 kB / 0.6945 GB, free: 9.445 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004415/0.5638, allocations: 173.2 kB / 0.6946 GB, free: 9.363 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.773e-06/0.5639, allocations: 1.375 kB / 0.6946 GB, free: 9.363 MB / 0.5261 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001197/0.5651, allocations: 0.4985 MB / 0.6951 GB, free: 9.152 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.5651, allocations: 10.53 kB / 0.6951 GB, free: 9.148 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.5651, allocations: 8.859 kB / 0.6951 GB, free: 9.145 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.117e-05/0.5652, allocations: 6.625 kB / 0.6952 GB, free: 9.145 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003208/0.5655, allocations: 63.81 kB / 0.6952 GB, free: 9.133 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.884e-05/0.5655, allocations: 11.11 kB / 0.6952 GB, free: 9.129 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003284/0.5659, allocations: 62.61 kB / 0.6953 GB, free: 9.098 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.704e-05/0.566, allocations: 32.11 kB / 0.6953 GB, free: 9.086 MB / 0.5261 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.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,$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.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.condition,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.condition,con.t3.enableFire,con.t4.condition,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.0003622/0.5663, allocations: 231.5 kB / 0.6955 GB, free: 8.898 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.983e-05/0.5664, allocations: 27.81 kB / 0.6956 GB, free: 8.883 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.5675, allocations: 432 kB / 0.696 GB, free: 8.699 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.5675, allocations: 5.125 kB / 0.696 GB, free: 8.699 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.313e-06/0.5675, allocations: 1.719 kB / 0.696 GB, free: 8.699 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.5676, allocations: 2.625 kB / 0.696 GB, free: 8.699 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.5698, allocations: 1.132 MB / 0.6971 GB, free: 8.012 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.459e-06/0.5698, allocations: 1.375 kB / 0.6971 GB, free: 8.012 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002118/0.57, allocations: 32.31 kB / 0.6971 GB, free: 8.008 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.958e-06/0.5701, allocations: 2.75 kB / 0.6971 GB, free: 8.008 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.083e-05/0.5701, allocations: 13.19 kB / 0.6971 GB, free: 8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.848e-06/0.5701, allocations: 6.688 kB / 0.6971 GB, free: 7.996 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.768e-06/0.5701, allocations: 8.516 kB / 0.6972 GB, free: 7.988 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009603/0.5711, allocations: 0.4898 MB / 0.6976 GB, free: 7.719 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.336e-05/0.5712, allocations: 119.8 kB / 0.6977 GB, free: 7.594 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.285e-05/0.5713, allocations: 12.12 kB / 0.6978 GB, free: 7.586 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002769/0.5716, allocations: 29 kB / 0.6978 GB, free: 7.578 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/0.5718, allocations: 67.42 kB / 0.6978 GB, free: 7.562 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.394e-05/0.5718, allocations: 21.61 kB / 0.6979 GB, free: 7.555 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001454/0.572, allocations: 137 kB / 0.698 GB, free: 7.461 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.44e-07/0.572, allocations: 0 / 0.698 GB, free: 7.461 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0006306/0.5726, allocations: 105.8 kB / 0.6981 GB, free: 7.43 MB / 0.5261 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.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.fire,con.t1.t_start,con.t2.condition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.condition,con.t3.enableFire,con.t4.condition,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.0002203/0.5729, allocations: 143.9 kB / 0.6982 GB, free: 7.32 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001105/0.574, allocations: 438.9 kB / 0.6987 GB, free: 7.184 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.439e-06/0.574, allocations: 0 / 0.6987 GB, free: 7.184 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0004869/0.5745, allocations: 215.8 kB / 0.6989 GB, free: 7.117 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.5749, allocations: 38.62 kB / 0.6989 GB, free: 7.102 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.5766, allocations: 0.8345 MB / 0.6997 GB, free: 6.57 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.577, allocations: 0.8268 MB / 0.7005 GB, free: 5.832 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0003459/0.5773, allocations: 68.73 kB / 0.7006 GB, free: 5.801 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.5775, allocations: 40.7 kB / 0.7006 GB, free: 5.785 MB / 0.5261 GB Notification: Performance of SimCode: time 1.623e-06/0.5775, allocations: 0 / 0.7006 GB, free: 5.785 MB / 0.5261 GB Notification: Performance of Templates: time 0.01162/0.5892, allocations: 3.721 MB / 0.7043 GB, free: 3.977 MB / 0.5261 GB