Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.067/5.067, allocations: 0.5623 GB / 0.5775 GB, free: 3.332 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002535/0.002535, allocations: 357.6 kB / 0.6447 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.054/4.054, allocations: 410.7 MB / 1.113 GB, free: 147.8 MB / 0.5886 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001804/0.001803, allocations: 180 kB / 1.226 GB, free: 35.97 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0005176/0.0005178, allocations: 12.88 kB / 1.349 GB, free: 121.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2266, allocations: 115.3 MB / 1.461 GB, free: 6.59 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.00306/0.2297, allocations: 1.923 MB / 1.463 GB, free: 4.648 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002271/0.2321, allocations: 0.9597 MB / 1.464 GB, free: 3.68 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002848/0.2324, allocations: 11.94 kB / 1.464 GB, free: 3.668 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.2326, allocations: 39.59 kB / 1.464 GB, free: 3.629 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002654/0.2329, allocations: 39.66 kB / 1.464 GB, free: 3.59 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000725/0.2336, allocations: 183.7 kB / 1.464 GB, free: 3.41 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0006979/0.2343, allocations: 0.5426 MB / 1.465 GB, free: 2.867 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005958/0.235, allocations: 348.4 kB / 1.465 GB, free: 2.531 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002575/0.2352, allocations: 139.4 kB / 1.465 GB, free: 2.395 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.2355, allocations: 163.1 kB / 1.466 GB, free: 2.234 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.52e-05/0.2356, allocations: 20 kB / 1.466 GB, free: 2.215 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.2357, allocations: 35.98 kB / 1.466 GB, free: 2.18 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.2359, allocations: 87.67 kB / 1.466 GB, free: 2.094 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.236, allocations: 101.4 kB / 1.466 GB, free: 1.988 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0006624/0.2367, allocations: 0.5301 MB / 1.466 GB, free: 1.457 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.2367, allocations: 4 kB / 1.466 GB, free: 1.453 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2367, allocations: 0 / 1.466 GB, free: 1.453 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.2367, allocations: 0 / 1.466 GB, free: 1.453 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001592/0.2383, allocations: 0.6303 MB / 1.467 GB, free: 0.7734 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.61e-05/0.2384, allocations: 11.97 kB / 1.467 GB, free: 0.7617 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.2386, allocations: 55.39 kB / 1.467 GB, free: 0.707 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005732/0.2391, allocations: 332.2 kB / 1.467 GB, free: 352 kB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.249e-05/0.2392, allocations: 49.31 kB / 1.467 GB, free: 304 kB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.2394, allocations: 59.98 kB / 1.467 GB, free: 244 kB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.241, allocations: 0.5657 MB / 1.468 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.819e-05/0.2411, allocations: 4 kB / 1.468 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.509e-05/0.2412, allocations: 20 kB / 1.468 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-05/0.2412, allocations: 21 kB / 1.468 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.2426, allocations: 427.6 kB / 1.468 GB, free: 15.17 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003799/0.2464, allocations: 1.926 MB / 1.47 GB, free: 13.17 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009543/0.2474, allocations: 357.9 kB / 1.471 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004996/0.248, allocations: 180.8 kB / 1.471 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 8.307e-05/0.2481, allocations: 11.98 kB / 1.471 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000611/0.2487, allocations: 222.3 kB / 1.471 GB, free: 12.39 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 3.857e-06/0.2487, allocations: 0 / 1.471 GB, free: 12.39 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001527/0.2502, allocations: 485.1 kB / 1.472 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.2503, allocations: 67.14 kB / 1.472 GB, free: 11.84 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003786/0.2507, allocations: 240.8 kB / 1.472 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.558e-05/0.2508, allocations: 53.64 kB / 1.472 GB, free: 11.53 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.00022/0.2511, allocations: 216.8 kB / 1.472 GB, free: 11.32 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.2513, allocations: 122.4 kB / 1.472 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.246e-05/0.2513, allocations: 12 kB / 1.472 GB, free: 11.18 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001748/0.2515, allocations: 338.8 kB / 1.473 GB, free: 10.84 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005293/0.252, allocations: 161.2 kB / 1.473 GB, free: 10.69 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000617/0.2527, allocations: 292.7 kB / 1.473 GB, free: 10.35 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005417/0.2532, allocations: 166.2 kB / 1.473 GB, free: 10.19 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.2533, allocations: 4 kB / 1.473 GB, free: 10.19 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001394/0.2547, allocations: 0.5026 MB / 1.474 GB, free: 9.676 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.2547, allocations: 12.08 kB / 1.474 GB, free: 9.664 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.2547, allocations: 4 kB / 1.474 GB, free: 9.66 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.976e-05/0.2548, allocations: 8 kB / 1.474 GB, free: 9.652 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000437/0.2552, allocations: 59.84 kB / 1.474 GB, free: 9.594 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.917e-05/0.2553, allocations: 8 kB / 1.474 GB, free: 9.586 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004229/0.2557, allocations: 67.5 kB / 1.474 GB, free: 9.52 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-05/0.2558, allocations: 24 kB / 1.474 GB, free: 9.496 MB / 0.6198 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.0004493/0.2563, allocations: 238.8 kB / 1.474 GB, free: 9.254 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.968e-05/0.2564, allocations: 27.72 kB / 1.474 GB, free: 9.227 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001311/0.2577, allocations: 427.4 kB / 1.474 GB, free: 8.801 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.2577, allocations: 3.984 kB / 1.474 GB, free: 8.797 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.339e-06/0.2578, allocations: 3.938 kB / 1.474 GB, free: 8.793 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001223/0.2579, allocations: 112.6 kB / 1.475 GB, free: 8.664 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.259e-05/0.258, allocations: 11.98 kB / 1.475 GB, free: 8.652 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002891/0.2583, allocations: 27.98 kB / 1.475 GB, free: 8.625 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002233/0.2585, allocations: 68.3 kB / 1.475 GB, free: 8.559 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001369/0.2599, allocations: 495.6 kB / 1.475 GB, free: 8.07 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001188/0.2611, allocations: 0.5538 MB / 1.476 GB, free: 7.496 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005124/0.2617, allocations: 199.4 kB / 1.476 GB, free: 7.301 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001819/0.2619, allocations: 136.2 kB / 1.476 GB, free: 7.168 MB / 0.6198 GB Notification: Performance of Backend: time 4.51e-07/0.2619, allocations: 0 / 1.476 GB, free: 7.168 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001328/0.2632, allocations: 377.4 kB / 1.476 GB, free: 6.797 MB / 0.6198 GB Notification: Performance of SimCode: time 0.001934/0.2652, allocations: 1.17 MB / 1.477 GB, free: 5.582 MB / 0.6198 GB Notification: Performance of Templates: time 0.01492/0.2802, allocations: 4.036 MB / 1.481 GB, free: 1.582 MB / 0.6198 GB