Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Electrical.DC.Storage.Examples.Battery.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.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.668/4.668, allocations: 0.5623 GB / 0.5769 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.002369/0.002368, allocations: 355.5 kB / 0.644 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 3.914/3.914, allocations: 410.7 MB / 1.112 GB, free: 6.004 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.001751/0.00175, allocations: 187.9 kB / 1.225 GB, free: 6.164 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004957/0.0004959, allocations: 12 kB / 1.348 GB, free: 8.301 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5713/0.5718, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.004251/0.5761, allocations: 3.701 MB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.002966/0.5791, allocations: 1.902 MB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003224/0.5795, allocations: 15.94 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0002063/0.5797, allocations: 83.23 kB / 1.466 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0004747/0.5802, allocations: 171 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009028/0.5811, allocations: 328.1 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.000792/0.5819, allocations: 0.9087 MB / 1.468 GB, free: 277.2 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008497/0.5828, allocations: 0.7888 MB / 1.468 GB, free: 276.4 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002364/0.583, allocations: 251 kB / 1.469 GB, free: 276.2 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003796/0.5834, allocations: 311.4 kB / 1.469 GB, free: 275.9 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 7.625e-05/0.5835, allocations: 32 kB / 1.469 GB, free: 275.9 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002352/0.5838, allocations: 92.83 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.5839, allocations: 163.5 kB / 1.469 GB, free: 275.6 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.5841, allocations: 137.3 kB / 1.469 GB, free: 275.5 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0005813/0.5846, allocations: 0.646 MB / 1.47 GB, free: 274.8 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.019e-06/0.5847, allocations: 3.938 kB / 1.47 GB, free: 274.8 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.927e-06/0.5847, allocations: 0 / 1.47 GB, free: 274.8 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.02e-05/0.5847, allocations: 0.6562 kB / 1.47 GB, free: 274.8 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.001252/0.586, allocations: 0.8028 MB / 1.471 GB, free: 274 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.586, allocations: 17.91 kB / 1.471 GB, free: 274 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006019/0.5866, allocations: 123 kB / 1.471 GB, free: 273.8 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005609/0.5872, allocations: 419.8 kB / 1.471 GB, free: 273.4 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.237e-05/0.5873, allocations: 61.98 kB / 1.471 GB, free: 273.3 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.5874, allocations: 83.94 kB / 1.471 GB, free: 273.2 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.5888, allocations: 0.8712 MB / 1.472 GB, free: 272.3 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.5888, allocations: 0.5625 kB / 1.472 GB, free: 272.3 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.593e-05/0.5889, allocations: 35.89 kB / 1.472 GB, free: 272.3 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.574e-05/0.589, allocations: 47.95 kB / 1.472 GB, free: 272.2 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.5902, allocations: 0.5659 MB / 1.473 GB, free: 271.7 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003764/0.594, allocations: 3.713 MB / 1.477 GB, free: 267.8 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006904/0.5947, allocations: 317.2 kB / 1.477 GB, free: 267.5 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004591/0.5952, allocations: 208.1 kB / 1.477 GB, free: 267.3 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.5952, allocations: 4.375 kB / 1.477 GB, free: 267.2 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004452/0.5957, allocations: 249.6 kB / 1.477 GB, free: 267 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=47): time 3.572e-06/0.5957, allocations: 4 kB / 1.477 GB, free: 267 MB / 0.8542 GB Notification: Performance of matching and sorting (n=47): time 0.0009869/0.5967, allocations: 452.2 kB / 1.478 GB, free: 266.5 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.5968, allocations: 85.64 kB / 1.478 GB, free: 266.4 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004559/0.5972, allocations: 414.6 kB / 1.478 GB, free: 266 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.847e-05/0.5973, allocations: 49.69 kB / 1.478 GB, free: 266 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.5975, allocations: 343.5 kB / 1.479 GB, free: 265.6 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.5976, allocations: 134.9 kB / 1.479 GB, free: 265.5 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/0.5977, allocations: 16.72 kB / 1.479 GB, free: 265.5 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 8.752e-05/0.5978, allocations: 358.8 kB / 1.479 GB, free: 265.1 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003507/0.5981, allocations: 151.3 kB / 1.479 GB, free: 265 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004529/0.5986, allocations: 395.9 kB / 1.48 GB, free: 264.5 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003912/0.599, allocations: 185.8 kB / 1.48 GB, free: 264.3 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.151e-06/0.599, allocations: 4.5 kB / 1.48 GB, free: 264.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001096/0.6001, allocations: 0.5877 MB / 1.48 GB, free: 263.8 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.6003, allocations: 298.9 kB / 1.481 GB, free: 263.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.6003, allocations: 5.031 kB / 1.481 GB, free: 263.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.632e-05/0.6003, allocations: 15.94 kB / 1.481 GB, free: 263.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004153/0.6007, allocations: 99.77 kB / 1.481 GB, free: 263.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.78e-05/0.6008, allocations: 21.52 kB / 1.481 GB, free: 263.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004261/0.6012, allocations: 79.12 kB / 1.481 GB, free: 263.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.103e-05/0.6013, allocations: 40.52 kB / 1.481 GB, free: 263.1 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 7.15e-06/0.6013, allocations: 4 kB / 1.481 GB, free: 263.1 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009527/0.6023, allocations: 0.5188 MB / 1.481 GB, free: 262.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.6023, allocations: 8 kB / 1.481 GB, free: 262.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.6023, allocations: 13.03 kB / 1.481 GB, free: 262.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003821/0.6027, allocations: 99.77 kB / 1.482 GB, free: 262.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.6027, allocations: 21.2 kB / 1.482 GB, free: 262.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003726/0.6031, allocations: 71.36 kB / 1.482 GB, free: 262.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.447e-05/0.6032, allocations: 32.59 kB / 1.482 GB, free: 262.4 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,off.active,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,toOn.condition,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * 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.0003412/0.6036, allocations: 318 kB / 1.482 GB, free: 262.1 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.462e-05/0.6036, allocations: 61.38 kB / 1.482 GB, free: 262 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007676/0.6044, allocations: 386 kB / 1.482 GB, free: 261.6 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.403e-06/0.6044, allocations: 4.875 kB / 1.482 GB, free: 261.6 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.242e-06/0.6045, allocations: 0 / 1.482 GB, free: 261.6 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.671e-06/0.6045, allocations: 5.328 kB / 1.482 GB, free: 261.6 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.6063, allocations: 1.213 MB / 1.484 GB, free: 260.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.185e-06/0.6063, allocations: 1.156 kB / 1.484 GB, free: 260.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000266/0.6066, allocations: 47.86 kB / 1.484 GB, free: 260.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.206e-06/0.6066, allocations: 4 kB / 1.484 GB, free: 260.3 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.419e-05/0.6066, allocations: 12.64 kB / 1.484 GB, free: 260.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.787e-06/0.6066, allocations: 4 kB / 1.484 GB, free: 260.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.752e-06/0.6066, allocations: 0.8125 kB / 1.484 GB, free: 260.2 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.6077, allocations: 0.6557 MB / 1.484 GB, free: 259.6 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.6079, allocations: 160.4 kB / 1.484 GB, free: 259.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.391e-05/0.608, allocations: 12 kB / 1.484 GB, free: 259.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002571/0.6082, allocations: 16 kB / 1.484 GB, free: 259.4 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.6084, allocations: 49.39 kB / 1.485 GB, free: 259.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.912e-05/0.6084, allocations: 16 kB / 1.485 GB, free: 259.3 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002803/0.6087, allocations: 251.9 kB / 1.485 GB, free: 259.1 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.885e-06/0.6087, allocations: 0.5 kB / 1.485 GB, free: 259.1 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001016/0.6098, allocations: 278.8 kB / 1.485 GB, free: 258.8 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,off.active,off.newActive,off.oldActive,toOn.condition,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,hold.newActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001678/0.6099, allocations: 133 kB / 1.485 GB, free: 258.6 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001331/0.6113, allocations: 0.7071 MB / 1.486 GB, free: 257.9 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.25e-06/0.6113, allocations: 4.688 kB / 1.486 GB, free: 257.9 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003606/0.6117, allocations: 187 kB / 1.486 GB, free: 257.8 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000737/0.6124, allocations: 104.7 kB / 1.486 GB, free: 257.7 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001784/0.6142, allocations: 1.2 MB / 1.487 GB, free: 256.4 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003911/0.6146, allocations: 0.9246 MB / 1.488 GB, free: 255.5 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0005078/0.6152, allocations: 116.3 kB / 1.488 GB, free: 255.4 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.6153, allocations: 48.27 kB / 1.488 GB, free: 255.3 MB / 0.8542 GB Notification: Performance of SimCode: time 1.901e-06/0.6153, allocations: 0 / 1.488 GB, free: 255.3 MB / 0.8542 GB Notification: Performance of Templates: time 0.0132/0.6285, allocations: 5.399 MB / 1.494 GB, free: 250.1 MB / 0.8542 GB