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.995/4.995, allocations: 0.5623 GB / 0.5776 GB, free: 3.336 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.003614/0.003613, allocations: 353.7 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.395/4.395, allocations: 410.7 MB / 1.113 GB, free: 5.945 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: 179.1 kB / 1.226 GB, free: 6.125 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0006642/0.0006646, allocations: 16 kB / 1.349 GB, free: 8.254 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7674/0.7681, 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.00576/0.7739, allocations: 3.699 MB / 1.465 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.004236/0.7782, allocations: 1.902 MB / 1.467 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005476/0.7788, allocations: 15.94 kB / 1.467 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0002838/0.7791, allocations: 83.23 kB / 1.467 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0007209/0.7798, allocations: 169 kB / 1.467 GB, free: 278.4 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.7812, allocations: 326.9 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.001363/0.7825, allocations: 0.9126 MB / 1.468 GB, free: 277.2 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001209/0.7838, allocations: 0.7843 MB / 1.469 GB, free: 276.4 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003951/0.7842, allocations: 259.7 kB / 1.469 GB, free: 276.2 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005354/0.7848, allocations: 303.1 kB / 1.47 GB, free: 275.9 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 9.33e-05/0.7849, allocations: 33.41 kB / 1.47 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003282/0.7852, allocations: 91.83 kB / 1.47 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0001667/0.7854, allocations: 163.5 kB / 1.47 GB, free: 275.6 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001595/0.7856, allocations: 137.3 kB / 1.47 GB, free: 275.5 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0008458/0.7864, allocations: 0.6457 MB / 1.471 GB, free: 274.8 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.7864, allocations: 0 / 1.471 GB, free: 274.8 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.734e-06/0.7865, allocations: 5 kB / 1.471 GB, free: 274.8 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.221e-05/0.7865, allocations: 0 / 1.471 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.001716/0.7882, allocations: 0.8069 MB / 1.471 GB, free: 273.9 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.7883, allocations: 11.62 kB / 1.471 GB, free: 273.9 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007703/0.7891, allocations: 136.8 kB / 1.472 GB, free: 273.8 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007152/0.7898, allocations: 416.7 kB / 1.472 GB, free: 273.4 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.102e-05/0.7899, allocations: 58 kB / 1.472 GB, free: 273.3 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001721/0.7901, allocations: 78.62 kB / 1.472 GB, free: 273.2 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001729/0.7918, allocations: 0.8691 MB / 1.473 GB, free: 272.3 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.372e-05/0.7919, allocations: 7.938 kB / 1.473 GB, free: 272.3 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.489e-05/0.792, allocations: 37.72 kB / 1.473 GB, free: 272.3 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.251e-05/0.7921, allocations: 46.52 kB / 1.473 GB, free: 272.2 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.7934, allocations: 0.5671 MB / 1.474 GB, free: 271.7 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005089/0.7986, allocations: 3.716 MB / 1.477 GB, free: 267.8 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008227/0.7994, allocations: 314.1 kB / 1.477 GB, free: 267.4 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005492/0.8, allocations: 210.2 kB / 1.478 GB, free: 267.2 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.744e-05/0.8001, allocations: 8.859 kB / 1.478 GB, free: 267.2 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005353/0.8006, allocations: 250 kB / 1.478 GB, free: 267 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=47): time 3.637e-06/0.8006, allocations: 0 / 1.478 GB, free: 267 MB / 0.8542 GB Notification: Performance of matching and sorting (n=47): time 0.001205/0.8019, allocations: 453 kB / 1.478 GB, free: 266.5 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.8019, allocations: 85.05 kB / 1.478 GB, free: 266.4 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005644/0.8025, allocations: 421.2 kB / 1.479 GB, free: 266 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 7.997e-05/0.8026, allocations: 45.7 kB / 1.479 GB, free: 266 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.00024/0.8028, allocations: 343.5 kB / 1.479 GB, free: 265.6 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.803, allocations: 134.2 kB / 1.479 GB, free: 265.5 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.783e-05/0.803, allocations: 16 kB / 1.479 GB, free: 265.5 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.8031, allocations: 360.1 kB / 1.48 GB, free: 265.1 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004011/0.8036, allocations: 149.9 kB / 1.48 GB, free: 265 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005169/0.8041, allocations: 395.1 kB / 1.48 GB, free: 264.5 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004611/0.8046, allocations: 183.6 kB / 1.48 GB, free: 264.3 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/0.8046, allocations: 7.391 kB / 1.48 GB, free: 264.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001318/0.8059, allocations: 0.5855 MB / 1.481 GB, free: 263.7 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001896/0.8061, allocations: 299.5 kB / 1.481 GB, free: 263.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.8062, allocations: 12.53 kB / 1.481 GB, free: 263.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.396e-05/0.8062, allocations: 12 kB / 1.481 GB, free: 263.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006246/0.8068, allocations: 100.4 kB / 1.481 GB, free: 263.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.324e-05/0.8069, allocations: 20.58 kB / 1.481 GB, free: 263.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005596/0.8075, allocations: 81.31 kB / 1.481 GB, free: 263.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.522e-05/0.8075, allocations: 35.98 kB / 1.482 GB, free: 263.1 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.8076, allocations: 4 kB / 1.482 GB, free: 263.1 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001132/0.8087, allocations: 0.5139 MB / 1.482 GB, free: 262.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.8087, allocations: 14.52 kB / 1.482 GB, free: 262.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.8088, allocations: 12 kB / 1.482 GB, free: 262.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000562/0.8093, allocations: 103.8 kB / 1.482 GB, free: 262.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.733e-05/0.8094, allocations: 15.94 kB / 1.482 GB, free: 262.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005153/0.8099, allocations: 71.3 kB / 1.482 GB, free: 262.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.526e-05/0.81, allocations: 37.28 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.0004649/0.8105, allocations: 318.8 kB / 1.483 GB, free: 262 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.371e-05/0.8106, allocations: 47.09 kB / 1.483 GB, free: 262 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009174/0.8115, allocations: 389.1 kB / 1.483 GB, free: 261.6 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.8116, allocations: 7.984 kB / 1.483 GB, free: 261.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.8116, allocations: 4.906 kB / 1.483 GB, free: 261.6 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.8118, allocations: 156.4 kB / 1.483 GB, free: 261.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.027e-05/0.8119, allocations: 13.16 kB / 1.483 GB, free: 261.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002719/0.8122, allocations: 11.98 kB / 1.483 GB, free: 261.4 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.8123, allocations: 46.41 kB / 1.483 GB, free: 261.3 MB / 0.8542 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001061/0.8134, allocations: 0.5169 MB / 1.484 GB, free: 260.8 MB / 0.8542 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001258/0.8147, allocations: 0.764 MB / 1.484 GB, free: 260.1 MB / 0.8542 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003469/0.8151, allocations: 164.5 kB / 1.485 GB, free: 259.9 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003166/0.8154, allocations: 255.2 kB / 1.485 GB, free: 259.6 MB / 0.8542 GB Notification: Performance of Backend: time 6.91e-07/0.8154, allocations: 0.7812 kB / 1.485 GB, free: 259.6 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.002008/0.8174, allocations: 0.706 MB / 1.486 GB, free: 258.9 MB / 0.8542 GB Notification: Performance of SimCode: time 0.002551/0.82, allocations: 1.61 MB / 1.487 GB, free: 257.3 MB / 0.8542 GB Notification: Performance of Templates: time 0.02034/0.8404, allocations: 7.249 MB / 1.494 GB, free: 250.3 MB / 0.8542 GB