Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.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.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.272/5.272, allocations: 0.5623 GB / 0.5776 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.002525/0.002524, allocations: 359 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.297/4.297, 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.001787/0.001787, allocations: 170.2 kB / 1.226 GB, free: 35.95 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0005079/0.0005081, allocations: 8 kB / 1.349 GB, free: 121.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2184, allocations: 115.3 MB / 1.461 GB, free: 6.57 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.007965/0.2264, allocations: 5.36 MB / 1.467 GB, free: 1.184 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.005554/0.232, allocations: 2.075 MB / 1.469 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005025/0.2326, allocations: 11.94 kB / 1.469 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002763/0.2329, allocations: 55.5 kB / 1.469 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.234, allocations: 262.4 kB / 1.469 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.2354, allocations: 291.3 kB / 1.469 GB, free: 14.49 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001597/0.237, allocations: 0.8293 MB / 1.47 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002036/0.2391, allocations: 0.7105 MB / 1.471 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006297/0.2397, allocations: 234.9 kB / 1.471 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007395/0.2405, allocations: 306.7 kB / 1.471 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.2406, allocations: 20 kB / 1.471 GB, free: 12.36 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006896/0.2413, allocations: 187.6 kB / 1.471 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0002574/0.2416, allocations: 143.5 kB / 1.472 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.000253/0.2419, allocations: 129.4 kB / 1.472 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.00144/0.2433, allocations: 0.7366 MB / 1.472 GB, free: 11.17 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.2434, allocations: 4 kB / 1.472 GB, free: 11.16 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.405e-06/0.2434, allocations: 0 / 1.472 GB, free: 11.16 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.092e-05/0.2434, allocations: 0 / 1.472 GB, free: 11.16 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.00279/0.2462, allocations: 0.8247 MB / 1.473 GB, free: 10.28 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.592e-05/0.2463, allocations: 12.03 kB / 1.473 GB, free: 10.27 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00123/0.2476, allocations: 139.1 kB / 1.473 GB, free: 10.13 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.2486, allocations: 421.8 kB / 1.474 GB, free: 9.68 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.951e-05/0.2487, allocations: 41 kB / 1.474 GB, free: 9.641 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.2488, allocations: 51.98 kB / 1.474 GB, free: 9.59 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001949/0.2508, allocations: 0.6926 MB / 1.475 GB, free: 8.867 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.046e-05/0.2509, allocations: 4 kB / 1.475 GB, free: 8.863 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.251, allocations: 27.91 kB / 1.475 GB, free: 8.836 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001226/0.2511, allocations: 52.97 kB / 1.475 GB, free: 8.781 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001899/0.253, allocations: 0.5737 MB / 1.475 GB, free: 8.211 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005897/0.259, allocations: 2.901 MB / 1.478 GB, free: 5.062 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.2609, allocations: 0.5709 MB / 1.479 GB, free: 4.477 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008083/0.2618, allocations: 257.4 kB / 1.479 GB, free: 4.219 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007475/0.2626, allocations: 0.5662 MB / 1.479 GB, free: 3.523 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001222/0.2638, allocations: 396.5 kB / 1.48 GB, free: 3.117 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 3.928e-06/0.2638, allocations: 4 kB / 1.48 GB, free: 3.113 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.002573/0.2664, allocations: 0.7458 MB / 1.48 GB, free: 2.359 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.651e-05/0.2665, allocations: 85.23 kB / 1.481 GB, free: 2.258 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006127/0.2672, allocations: 341.7 kB / 1.481 GB, free: 1.922 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001266/0.2673, allocations: 41.7 kB / 1.481 GB, free: 1.875 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003094/0.2676, allocations: 284.3 kB / 1.481 GB, free: 1.59 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.2678, allocations: 153.9 kB / 1.481 GB, free: 1.438 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.954e-05/0.2679, allocations: 12 kB / 1.481 GB, free: 1.426 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001981/0.2681, allocations: 354.8 kB / 1.482 GB, free: 1.07 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008269/0.269, allocations: 241 kB / 1.482 GB, free: 0.8359 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009288/0.2699, allocations: 362.6 kB / 1.482 GB, free: 448 kB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008886/0.2708, allocations: 281.7 kB / 1.483 GB, free: 160 kB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.2709, allocations: 0 / 1.483 GB, free: 160 kB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002202/0.2731, allocations: 0.6836 MB / 1.483 GB, free: 15.46 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001982/0.2733, allocations: 196.9 kB / 1.483 GB, free: 15.22 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.2733, allocations: 4 kB / 1.483 GB, free: 15.22 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.307e-05/0.2734, allocations: 8 kB / 1.483 GB, free: 15.21 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.2744, allocations: 115.8 kB / 1.483 GB, free: 15.1 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.948e-05/0.2744, allocations: 7.953 kB / 1.484 GB, free: 15.09 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009338/0.2754, allocations: 75.48 kB / 1.484 GB, free: 15.02 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.792e-05/0.2755, allocations: 23.98 kB / 1.484 GB, free: 14.99 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.2755, allocations: 4 kB / 1.484 GB, free: 14.99 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001845/0.2774, allocations: 0.5754 MB / 1.484 GB, free: 14.41 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.2774, allocations: 4 kB / 1.484 GB, free: 14.4 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.2774, allocations: 4 kB / 1.484 GB, free: 14.4 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008292/0.2783, allocations: 108 kB / 1.484 GB, free: 14.29 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.2783, allocations: 8 kB / 1.484 GB, free: 14.29 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007734/0.2791, allocations: 63.64 kB / 1.484 GB, free: 14.22 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.886e-05/0.2792, allocations: 19.94 kB / 1.484 GB, free: 14.2 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * 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.0005529/0.2797, allocations: 295.8 kB / 1.485 GB, free: 13.91 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.2799, allocations: 47.44 kB / 1.485 GB, free: 13.86 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001937/0.2819, allocations: 0.5931 MB / 1.485 GB, free: 13.26 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.137e-05/0.2819, allocations: 11.92 kB / 1.485 GB, free: 13.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.2819, allocations: 0 / 1.485 GB, free: 13.25 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/0.2823, allocations: 172.4 kB / 1.485 GB, free: 13.06 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.2825, allocations: 16 kB / 1.485 GB, free: 13.04 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008268/0.2833, allocations: 51.92 kB / 1.486 GB, free: 12.99 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002007/0.2835, allocations: 51.88 kB / 1.486 GB, free: 12.94 MB / 0.6355 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002493/0.286, allocations: 0.7496 MB / 1.486 GB, free: 12.18 MB / 0.6355 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002869/0.2889, allocations: 1.12 MB / 1.487 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008309/0.2898, allocations: 275.9 kB / 1.488 GB, free: 10.77 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0004408/0.2903, allocations: 243.2 kB / 1.488 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of Backend: time 5.91e-07/0.2903, allocations: 0 / 1.488 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.003067/0.2934, allocations: 0.8992 MB / 1.489 GB, free: 9.605 MB / 0.6355 GB Notification: Performance of SimCode: time 0.003523/0.297, allocations: 1.633 MB / 1.49 GB, free: 7.926 MB / 0.6355 GB Notification: Performance of Templates: time 0.03168/0.3287, allocations: 10.76 MB / 1.501 GB, free: 13.27 MB / 0.6511 GB