Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01026/0.01026, allocations: 89.83 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001207/0.001207, allocations: 173.6 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.128/2.128, allocations: 205.5 MB / 222.2 MB, free: 13.73 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.406/2.406, allocations: 252.8 MB / 0.511 GB, free: 8.355 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008836/0.0008838, allocations: 17.47 kB / 0.6243 GB, free: 28.37 MB / 0.4949 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2363, allocations: 106.2 MB / 0.7281 GB, free: 10.16 MB / 0.5574 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003574/0.24, allocations: 1.922 MB / 0.73 GB, free: 8.223 MB / 0.5574 GB Notification: Performance of NFInst.instExpressions: time 0.002498/0.2425, allocations: 0.9792 MB / 0.7309 GB, free: 7.234 MB / 0.5574 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.2428, allocations: 11.94 kB / 0.7309 GB, free: 7.223 MB / 0.5574 GB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.243, allocations: 43.59 kB / 0.731 GB, free: 7.18 MB / 0.5574 GB Notification: Performance of NFTyping.typeBindings: time 0.0002591/0.2433, allocations: 39.81 kB / 0.731 GB, free: 7.141 MB / 0.5574 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007048/0.244, allocations: 171.8 kB / 0.7312 GB, free: 6.973 MB / 0.5574 GB Notification: Performance of NFFlatten.flatten: time 0.0007147/0.2447, allocations: 367.9 kB / 0.7315 GB, free: 6.613 MB / 0.5574 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007123/0.2454, allocations: 348.4 kB / 0.7318 GB, free: 6.27 MB / 0.5574 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002861/0.2457, allocations: 135.5 kB / 0.732 GB, free: 6.137 MB / 0.5574 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002911/0.246, allocations: 163.1 kB / 0.7321 GB, free: 5.977 MB / 0.5574 GB Notification: Performance of NFPackage.collectConstants: time 6.971e-05/0.2461, allocations: 24 kB / 0.7322 GB, free: 5.953 MB / 0.5574 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.2463, allocations: 31.98 kB / 0.7322 GB, free: 5.922 MB / 0.5574 GB Notification: Performance of NFScalarize.scalarize: time 0.000163/0.2464, allocations: 87.67 kB / 0.7323 GB, free: 5.836 MB / 0.5574 GB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.2466, allocations: 101.5 kB / 0.7324 GB, free: 5.73 MB / 0.5574 GB Notification: Performance of NFConvertDAE.convert: time 0.0008087/0.2474, allocations: 0.5263 MB / 0.7329 GB, free: 5.203 MB / 0.5574 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2474, allocations: 0 / 0.7329 GB, free: 5.203 MB / 0.5574 GB Notification: Performance of FrontEnd: time 2.034e-06/0.2474, allocations: 0 / 0.7329 GB, free: 5.203 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 8.636e-06/0.2474, allocations: 4 kB / 0.7329 GB, free: 5.199 MB / 0.5574 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001442/0.2489, allocations: 0.6305 MB / 0.7335 GB, free: 4.512 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.249, allocations: 8.031 kB / 0.7335 GB, free: 4.504 MB / 0.5574 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001656/0.2492, allocations: 94.47 kB / 0.7336 GB, free: 4.402 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.2493, allocations: 55.44 kB / 0.7336 GB, free: 4.348 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005657/0.2499, allocations: 340.3 kB / 0.734 GB, free: 3.977 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.818e-05/0.25, allocations: 45.31 kB / 0.734 GB, free: 3.934 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.2501, allocations: 60 kB / 0.7341 GB, free: 3.875 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.2517, allocations: 0.5656 MB / 0.7346 GB, free: 3.281 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/0.2517, allocations: 3.938 kB / 0.7346 GB, free: 3.277 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-05/0.2518, allocations: 24 kB / 0.7347 GB, free: 3.254 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.778e-05/0.2518, allocations: 24.95 kB / 0.7347 GB, free: 3.23 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/0.2532, allocations: 419.7 kB / 0.7351 GB, free: 2.82 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003561/0.2568, allocations: 1.934 MB / 0.737 GB, free: 0.8086 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009946/0.2578, allocations: 354.5 kB / 0.7373 GB, free: 468 kB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 7.629e-05/0.2579, allocations: 8 kB / 0.7373 GB, free: 460 kB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005873/0.2585, allocations: 222 kB / 0.7375 GB, free: 224 kB / 0.5574 GB Notification: Performance of pre-optimization done (n=46): time 5.34e-06/0.2585, allocations: 4 kB / 0.7375 GB, free: 220 kB / 0.5574 GB Notification: Performance of matching and sorting (n=46): time 0.001489/0.26, allocations: 482.5 kB / 0.738 GB, free: 15.74 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.2601, allocations: 63.16 kB / 0.738 GB, free: 15.66 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003431/0.2604, allocations: 237.7 kB / 0.7383 GB, free: 15.42 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 8.252e-05/0.2605, allocations: 49.7 kB / 0.7383 GB, free: 15.37 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002132/0.2608, allocations: 220.7 kB / 0.7385 GB, free: 15.15 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.261, allocations: 122.4 kB / 0.7386 GB, free: 15.03 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-05/0.261, allocations: 12 kB / 0.7387 GB, free: 15.02 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000172/0.2612, allocations: 342.8 kB / 0.739 GB, free: 14.67 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005174/0.2617, allocations: 165.2 kB / 0.7391 GB, free: 14.51 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006082/0.2623, allocations: 292.7 kB / 0.7394 GB, free: 14.18 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005025/0.2629, allocations: 166.1 kB / 0.7396 GB, free: 14.02 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.2629, allocations: 0 / 0.7396 GB, free: 14.02 MB / 0.573 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001349/0.2642, allocations: 0.5023 MB / 0.7401 GB, free: 13.51 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.2643, allocations: 4 kB / 0.7401 GB, free: 13.51 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.2643, allocations: 4 kB / 0.7401 GB, free: 13.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.938e-05/0.2643, allocations: 12.41 kB / 0.7401 GB, free: 13.49 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004228/0.2648, allocations: 67.84 kB / 0.7402 GB, free: 13.43 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.914e-05/0.2648, allocations: 11.92 kB / 0.7402 GB, free: 13.41 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004145/0.2652, allocations: 63.52 kB / 0.7402 GB, free: 13.35 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.928e-05/0.2653, allocations: 24 kB / 0.7403 GB, free: 13.33 MB / 0.573 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.0004393/0.2658, allocations: 234.9 kB / 0.7405 GB, free: 13.09 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.852e-05/0.2659, allocations: 27.62 kB / 0.7405 GB, free: 13.06 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/0.2671, allocations: 427.5 kB / 0.7409 GB, free: 12.64 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/0.2671, allocations: 8 kB / 0.7409 GB, free: 12.63 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.2671, allocations: 4 kB / 0.7409 GB, free: 12.62 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.2672, allocations: 3.984 kB / 0.7409 GB, free: 12.62 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002571/0.2697, allocations: 1.134 MB / 0.742 GB, free: 11.41 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.2698, allocations: 0 / 0.742 GB, free: 11.41 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002932/0.2701, allocations: 43.91 kB / 0.7421 GB, free: 11.37 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.237e-06/0.2701, allocations: 0 / 0.7421 GB, free: 11.37 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.832e-05/0.2702, allocations: 19.94 kB / 0.7421 GB, free: 11.35 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.896e-06/0.2702, allocations: 4 kB / 0.7421 GB, free: 11.35 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.2702, allocations: 0 / 0.7421 GB, free: 11.35 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.2713, allocations: 495.8 kB / 0.7426 GB, free: 10.85 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 9.29e-05/0.2715, allocations: 108.7 kB / 0.7427 GB, free: 10.73 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.139e-05/0.2715, allocations: 8 kB / 0.7427 GB, free: 10.72 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003302/0.2719, allocations: 35.86 kB / 0.7427 GB, free: 10.68 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.2721, allocations: 68.34 kB / 0.7428 GB, free: 10.62 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.619e-05/0.2722, allocations: 16 kB / 0.7428 GB, free: 10.6 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0001713/0.2724, allocations: 136.2 kB / 0.7429 GB, free: 10.47 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.41e-07/0.2724, allocations: 4 kB / 0.7429 GB, free: 10.46 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0006679/0.2731, allocations: 111.6 kB / 0.743 GB, free: 10.36 MB / 0.573 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.001616/0.2747, allocations: 1.077 MB / 0.7441 GB, free: 9.246 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001238/0.276, allocations: 433.5 kB / 0.7445 GB, free: 8.824 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.276, allocations: 0.9375 kB / 0.7445 GB, free: 8.824 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005684/0.2766, allocations: 230.3 kB / 0.7447 GB, free: 8.598 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.277, allocations: 35.94 kB / 0.7448 GB, free: 8.562 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005792/0.2829, allocations: 4.286 MB / 0.7489 GB, free: 4.156 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005239/0.2834, allocations: 0.8311 MB / 0.7498 GB, free: 3.297 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0004044/0.2839, allocations: 67.23 kB / 0.7498 GB, free: 3.23 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003655/0.2842, allocations: 147.4 kB / 0.75 GB, free: 3.086 MB / 0.573 GB Notification: Performance of SimCode: time 1.022e-06/0.2842, allocations: 0 / 0.75 GB, free: 3.086 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03472/0.319, allocations: 7.137 MB / 0.7569 GB, free: 12.08 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000311/0.3193, allocations: 211.1 kB / 0.7571 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.825/3.144, allocations: 0 / 0.7571 GB, free: 11.84 MB / 0.5886 GB