Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.026/5.026, allocations: 0.5623 GB / 0.5776 GB, free: 3.328 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.006366/0.006366, allocations: 359.1 kB / 0.6447 GB, free: 185.7 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.824/4.824, allocations: 410.7 MB / 1.113 GB, free: 5.961 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001861/0.001861, allocations: 189.1 kB / 1.226 GB, free: 6.141 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.000489/0.0004893, allocations: 15.98 kB / 1.349 GB, free: 8.266 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7466/0.7471, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005487/0.7527, allocations: 3.863 MB / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.004097/0.7568, allocations: 2.084 MB / 1.467 GB, free: 278.4 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003384/0.7572, allocations: 11.94 kB / 1.467 GB, free: 278.4 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0002191/0.7574, allocations: 59.48 kB / 1.467 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0007899/0.7582, allocations: 253.2 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.7593, allocations: 301.8 kB / 1.468 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.000969/0.7602, allocations: 0.8232 MB / 1.469 GB, free: 276.9 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001536/0.7618, allocations: 0.7113 MB / 1.469 GB, free: 276.2 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004203/0.7622, allocations: 235.5 kB / 1.469 GB, free: 276 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005372/0.7628, allocations: 297.4 kB / 1.47 GB, free: 275.7 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 8.046e-05/0.7629, allocations: 24 kB / 1.47 GB, free: 275.7 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000515/0.7634, allocations: 187.6 kB / 1.47 GB, free: 275.5 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.7636, allocations: 147.5 kB / 1.47 GB, free: 275.4 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001706/0.7638, allocations: 125.4 kB / 1.47 GB, free: 275.2 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0008482/0.7646, allocations: 0.7282 MB / 1.471 GB, free: 274.5 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.7647, allocations: 3.938 kB / 1.471 GB, free: 274.5 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.582e-06/0.7647, allocations: 0 / 1.471 GB, free: 274.5 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 8.827e-06/0.7647, allocations: 0 / 1.471 GB, free: 274.5 MB / 0.8542 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.002026/0.7667, allocations: 0.8364 MB / 1.472 GB, free: 273.6 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.7668, allocations: 11.62 kB / 1.472 GB, free: 273.6 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009952/0.7678, allocations: 144.2 kB / 1.472 GB, free: 273.5 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006951/0.7685, allocations: 425.9 kB / 1.472 GB, free: 273 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.744e-05/0.7686, allocations: 37 kB / 1.472 GB, free: 273 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.7687, allocations: 61.23 kB / 1.472 GB, free: 272.9 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.7702, allocations: 0.6914 MB / 1.473 GB, free: 272.2 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.7703, allocations: 1.594 kB / 1.473 GB, free: 272.2 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.421e-05/0.7704, allocations: 23.98 kB / 1.473 GB, free: 272.2 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.521e-05/0.7705, allocations: 49.91 kB / 1.473 GB, free: 272.1 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/0.7721, allocations: 0.5766 MB / 1.474 GB, free: 271.6 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004437/0.7765, allocations: 2.901 MB / 1.477 GB, free: 268.4 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.7781, allocations: 0.57 MB / 1.477 GB, free: 267.9 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00064/0.7788, allocations: 253.4 kB / 1.477 GB, free: 267.6 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005025/0.7793, allocations: 0.5716 MB / 1.478 GB, free: 266.9 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009213/0.7802, allocations: 402.6 kB / 1.478 GB, free: 266.5 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=46): time 3.526e-06/0.7803, allocations: 1 kB / 1.478 GB, free: 266.5 MB / 0.8542 GB Notification: Performance of matching and sorting (n=46): time 0.002121/0.7824, allocations: 0.7448 MB / 1.479 GB, free: 265.8 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.7824, allocations: 82.08 kB / 1.479 GB, free: 265.7 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004256/0.7829, allocations: 350.1 kB / 1.479 GB, free: 265.3 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 7.749e-05/0.783, allocations: 45.69 kB / 1.479 GB, free: 265.3 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001953/0.7832, allocations: 282 kB / 1.48 GB, free: 265 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.7833, allocations: 149.9 kB / 1.48 GB, free: 264.8 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.848e-05/0.7834, allocations: 8 kB / 1.48 GB, free: 264.8 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 9.158e-05/0.7835, allocations: 360 kB / 1.48 GB, free: 264.5 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006627/0.7842, allocations: 233.8 kB / 1.48 GB, free: 264.2 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007395/0.7849, allocations: 365.8 kB / 1.481 GB, free: 263.8 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007035/0.7856, allocations: 286.8 kB / 1.481 GB, free: 263.6 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.7857, allocations: 4 kB / 1.481 GB, free: 263.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001667/0.7873, allocations: 0.6818 MB / 1.482 GB, free: 262.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 8.828e-05/0.7874, allocations: 195 kB / 1.482 GB, free: 262.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.7875, allocations: 4 kB / 1.482 GB, free: 262.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.7875, allocations: 5.375 kB / 1.482 GB, free: 262.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009033/0.7884, allocations: 107.9 kB / 1.482 GB, free: 262.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.939e-05/0.7884, allocations: 17.31 kB / 1.482 GB, free: 262.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007667/0.7892, allocations: 76.03 kB / 1.482 GB, free: 262.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.23e-05/0.7893, allocations: 20 kB / 1.482 GB, free: 262.4 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 7.123e-06/0.7893, allocations: 4.688 kB / 1.482 GB, free: 262.4 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001449/0.7908, allocations: 0.5807 MB / 1.483 GB, free: 261.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.7908, allocations: 3.938 kB / 1.483 GB, free: 261.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.846e-06/0.7908, allocations: 8.062 kB / 1.483 GB, free: 261.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007262/0.7916, allocations: 106.3 kB / 1.483 GB, free: 261.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.7916, allocations: 8 kB / 1.483 GB, free: 261.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006629/0.7922, allocations: 67.56 kB / 1.483 GB, free: 261.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.361e-05/0.7923, allocations: 20 kB / 1.483 GB, free: 261.6 MB / 0.8542 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.0003827/0.7927, allocations: 300.2 kB / 1.483 GB, free: 261.3 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.407e-05/0.7928, allocations: 47.44 kB / 1.483 GB, free: 261.3 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001566/0.7944, allocations: 0.5839 MB / 1.484 GB, free: 260.7 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.7944, allocations: 0 / 1.484 GB, free: 260.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.7944, allocations: 0 / 1.484 GB, free: 260.7 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002484/0.7947, allocations: 186.3 kB / 1.484 GB, free: 260.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.7948, allocations: 15.98 kB / 1.484 GB, free: 260.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007455/0.7956, allocations: 48.89 kB / 1.484 GB, free: 260.4 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.7958, allocations: 55.88 kB / 1.484 GB, free: 260.4 MB / 0.8542 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002042/0.7978, allocations: 0.7527 MB / 1.485 GB, free: 259.6 MB / 0.8542 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002195/0.8, allocations: 1.113 MB / 1.486 GB, free: 258.5 MB / 0.8542 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006444/0.8007, allocations: 271.9 kB / 1.486 GB, free: 258.2 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003012/0.801, allocations: 249.2 kB / 1.486 GB, free: 258 MB / 0.8542 GB Notification: Performance of Backend: time 4.71e-07/0.801, allocations: 0 / 1.486 GB, free: 258 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0025/0.8035, allocations: 0.901 MB / 1.487 GB, free: 257.1 MB / 0.8542 GB Notification: Performance of SimCode: time 0.00263/0.8062, allocations: 1.619 MB / 1.489 GB, free: 255.4 MB / 0.8542 GB Notification: Performance of Templates: time 0.03406/0.8403, allocations: 10.77 MB / 1.499 GB, free: 245.1 MB / 0.8542 GB