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.01066/0.01066, allocations: 222 kB / 15.17 MB, free: 5.93 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.001095/0.001095, allocations: 174.2 kB / 16.06 MB, free: 5.828 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 3.555/3.555, allocations: 389.1 MB / 405.9 MB, free: 11.84 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.894/3.894, allocations: 472.3 MB / 0.9018 GB, free: 9.188 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0004771/0.0004774, allocations: 12.2 kB / 1.008 GB, free: 138.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1327, allocations: 98.72 MB / 1.104 GB, free: 42.15 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002149/0.1349, allocations: 1.895 MB / 1.106 GB, free: 40.24 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001489/0.1365, allocations: 0.9551 MB / 1.107 GB, free: 39.28 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.1367, allocations: 4 kB / 1.107 GB, free: 39.27 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.1368, allocations: 43.59 kB / 1.107 GB, free: 39.23 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002201/0.137, allocations: 35.72 kB / 1.107 GB, free: 39.2 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004724/0.1375, allocations: 179.7 kB / 1.107 GB, free: 39.02 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0004764/0.138, allocations: 0.5349 MB / 1.108 GB, free: 38.48 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004636/0.1385, allocations: 348.8 kB / 1.108 GB, free: 38.16 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001862/0.1387, allocations: 151.3 kB / 1.108 GB, free: 38.02 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.1389, allocations: 159.1 kB / 1.108 GB, free: 37.86 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.024e-05/0.139, allocations: 20 kB / 1.108 GB, free: 37.84 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 9.851e-05/0.1391, allocations: 28 kB / 1.108 GB, free: 37.81 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.1392, allocations: 91.66 kB / 1.108 GB, free: 37.72 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.291e-05/0.1393, allocations: 101.5 kB / 1.108 GB, free: 37.62 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004544/0.1398, allocations: 0.5251 MB / 1.109 GB, free: 37.09 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.604e-06/0.1398, allocations: 0 / 1.109 GB, free: 37.09 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.369e-06/0.1398, allocations: 0 / 1.109 GB, free: 37.09 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.841e-06/0.1398, allocations: 0 / 1.109 GB, free: 37.09 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.0009343/0.1408, allocations: 0.6209 MB / 1.11 GB, free: 36.43 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.1408, allocations: 12.03 kB / 1.11 GB, free: 36.41 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.1409, allocations: 47.44 kB / 1.11 GB, free: 36.37 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003927/0.1413, allocations: 336.2 kB / 1.11 GB, free: 36 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.472e-05/0.1414, allocations: 45 kB / 1.11 GB, free: 35.96 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.838e-05/0.1415, allocations: 52 kB / 1.11 GB, free: 35.91 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.1425, allocations: 0.5585 MB / 1.111 GB, free: 35.32 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.1426, allocations: 7.125 kB / 1.111 GB, free: 35.32 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.29e-05/0.1426, allocations: 20 kB / 1.111 GB, free: 35.3 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.321e-05/0.1427, allocations: 20.98 kB / 1.111 GB, free: 35.28 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009265/0.1436, allocations: 431.6 kB / 1.111 GB, free: 34.86 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002338/0.146, allocations: 1.902 MB / 1.113 GB, free: 32.9 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006921/0.1467, allocations: 367.7 kB / 1.113 GB, free: 32.54 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003521/0.1471, allocations: 180.8 kB / 1.113 GB, free: 32.36 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 5.803e-05/0.1471, allocations: 11.98 kB / 1.113 GB, free: 32.35 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004301/0.1476, allocations: 225.2 kB / 1.114 GB, free: 32.12 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 5.242e-06/0.1476, allocations: 0.6562 kB / 1.114 GB, free: 32.12 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001056/0.1487, allocations: 487.3 kB / 1.114 GB, free: 31.64 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.1487, allocations: 67.11 kB / 1.114 GB, free: 31.57 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.149, allocations: 239.8 kB / 1.114 GB, free: 31.32 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.494e-05/0.149, allocations: 45.7 kB / 1.114 GB, free: 31.27 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.1492, allocations: 223.8 kB / 1.115 GB, free: 31.05 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.541e-05/0.1493, allocations: 110.5 kB / 1.115 GB, free: 30.95 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.934e-05/0.1493, allocations: 15.94 kB / 1.115 GB, free: 30.93 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.51e-05/0.1494, allocations: 342.8 kB / 1.115 GB, free: 30.59 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003608/0.1498, allocations: 157.2 kB / 1.115 GB, free: 30.43 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004175/0.1502, allocations: 288.2 kB / 1.116 GB, free: 30.11 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003804/0.1506, allocations: 171.2 kB / 1.116 GB, free: 29.95 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.917e-06/0.1506, allocations: 0 / 1.116 GB, free: 29.95 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009803/0.1516, allocations: 0.5022 MB / 1.116 GB, free: 29.45 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.1517, allocations: 15.22 kB / 1.116 GB, free: 29.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.89e-06/0.1517, allocations: 0 / 1.116 GB, free: 29.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.1517, allocations: 8 kB / 1.116 GB, free: 29.43 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002874/0.152, allocations: 67.84 kB / 1.116 GB, free: 29.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.152, allocations: 7.938 kB / 1.116 GB, free: 29.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002845/0.1523, allocations: 70.11 kB / 1.116 GB, free: 29.29 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-05/0.1524, allocations: 24 kB / 1.116 GB, free: 29.26 MB / 0.6042 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.0003056/0.1527, allocations: 235 kB / 1.117 GB, free: 29.04 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.547e-05/0.1528, allocations: 23.72 kB / 1.117 GB, free: 29.01 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008795/0.1537, allocations: 431.4 kB / 1.117 GB, free: 28.59 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.222e-06/0.1537, allocations: 8 kB / 1.117 GB, free: 28.58 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.326e-06/0.1537, allocations: 1.875 kB / 1.117 GB, free: 28.58 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.773e-06/0.1537, allocations: 0 / 1.117 GB, free: 28.58 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001885/0.1556, allocations: 1.13 MB / 1.118 GB, free: 27.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.055e-06/0.1557, allocations: 0 / 1.118 GB, free: 27.38 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.1559, allocations: 35.91 kB / 1.118 GB, free: 27.35 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.35e-06/0.1559, allocations: 9.766 kB / 1.118 GB, free: 27.34 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.484e-05/0.156, allocations: 12 kB / 1.118 GB, free: 27.33 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.156, allocations: 0 / 1.118 GB, free: 27.33 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.371e-06/0.156, allocations: 0 / 1.118 GB, free: 27.33 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008548/0.1568, allocations: 0.4953 MB / 1.119 GB, free: 26.82 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.438e-05/0.1569, allocations: 110.1 kB / 1.119 GB, free: 26.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.139e-05/0.157, allocations: 15.95 kB / 1.119 GB, free: 26.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.1573, allocations: 34.61 kB / 1.119 GB, free: 26.65 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.1574, allocations: 72.33 kB / 1.119 GB, free: 26.58 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.36e-05/0.1575, allocations: 16 kB / 1.119 GB, free: 26.57 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001157/0.1576, allocations: 135.3 kB / 1.119 GB, free: 26.44 MB / 0.6042 GB Notification: Performance of sort global known variables: time 7.03e-07/0.1576, allocations: 0 / 1.119 GB, free: 26.44 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005563/0.1582, allocations: 107.6 kB / 1.119 GB, free: 26.33 MB / 0.6042 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.0002178/0.1584, allocations: 148.8 kB / 1.119 GB, free: 26.19 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000876/0.1593, allocations: 441.9 kB / 1.12 GB, free: 25.76 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.738e-06/0.1594, allocations: 0 / 1.12 GB, free: 25.76 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003942/0.1598, allocations: 214.4 kB / 1.12 GB, free: 25.55 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004673/0.1602, allocations: 47.91 kB / 1.12 GB, free: 25.51 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.1616, allocations: 0.8406 MB / 1.121 GB, free: 24.65 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.1619, allocations: 0.8261 MB / 1.122 GB, free: 23.8 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0002805/0.1622, allocations: 64.62 kB / 1.122 GB, free: 23.75 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.1624, allocations: 43.41 kB / 1.122 GB, free: 23.71 MB / 0.6042 GB Notification: Performance of SimCode: time 1.647e-06/0.1624, allocations: 0 / 1.122 GB, free: 23.71 MB / 0.6042 GB Notification: Performance of Templates: time 0.01036/0.1728, allocations: 3.732 MB / 1.125 GB, free: 20.17 MB / 0.6042 GB