Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.393/2.393, allocations: 251.1 MB / 266.1 MB, free: 11.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001648/0.001647, allocations: 183.3 kB / 325.6 MB, free: 2.855 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.589/2.589, allocations: 205.4 MB / 0.5766 GB, free: 20.77 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001148/0.001148, allocations: 98.23 kB / 0.6811 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004607/0.0004609, allocations: 11.84 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.229, allocations: 106.3 MB / 0.8989 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.005524/0.2346, allocations: 3.653 MB / 0.9024 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.003961/0.2386, allocations: 1.918 MB / 0.9043 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000406/0.2391, allocations: 19.94 kB / 0.9043 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002719/0.2394, allocations: 87.28 kB / 0.9044 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0005713/0.2399, allocations: 151.6 kB / 0.9046 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.2411, allocations: 325.8 kB / 0.9049 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0008643/0.242, allocations: 0.5429 MB / 0.9054 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009787/0.243, allocations: 0.7878 MB / 0.9062 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.2433, allocations: 243 kB / 0.9064 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004207/0.2437, allocations: 266.7 kB / 0.9067 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 8.124e-05/0.2438, allocations: 28 kB / 0.9067 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002861/0.2441, allocations: 83.94 kB / 0.9068 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.2443, allocations: 159.5 kB / 0.9069 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.2444, allocations: 141.3 kB / 0.9071 GB, free: 57.05 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0007562/0.2452, allocations: 0.6393 MB / 0.9077 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.2452, allocations: 4 kB / 0.9077 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.704e-06/0.2452, allocations: 0 / 0.9077 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.418e-06/0.2452, allocations: 0 / 0.9077 GB, free: 56.41 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.001667/0.2469, allocations: 0.8086 MB / 0.9085 GB, free: 55.55 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.2469, allocations: 8.031 kB / 0.9085 GB, free: 55.55 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006921/0.2476, allocations: 135 kB / 0.9086 GB, free: 55.41 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006768/0.2483, allocations: 419.8 kB / 0.909 GB, free: 54.97 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.897e-05/0.2484, allocations: 58 kB / 0.9091 GB, free: 54.91 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.2486, allocations: 80 kB / 0.9091 GB, free: 54.83 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.2503, allocations: 0.8613 MB / 0.91 GB, free: 53.91 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.366e-05/0.2503, allocations: 7.891 kB / 0.91 GB, free: 53.9 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.035e-05/0.2505, allocations: 36 kB / 0.91 GB, free: 53.86 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.182e-05/0.2505, allocations: 45.97 kB / 0.9101 GB, free: 53.82 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.2519, allocations: 0.562 MB / 0.9106 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004693/0.2567, allocations: 3.72 MB / 0.9143 GB, free: 49.32 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008029/0.2575, allocations: 304.3 kB / 0.9145 GB, free: 49.01 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 4.966e-05/0.2576, allocations: 8.375 kB / 0.9145 GB, free: 49 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005173/0.2581, allocations: 225.2 kB / 0.9148 GB, free: 48.77 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=47): time 3.747e-06/0.2581, allocations: 0 / 0.9148 GB, free: 48.77 MB / 0.6042 GB Notification: Performance of matching and sorting (n=47): time 0.001198/0.2593, allocations: 458.6 kB / 0.9152 GB, free: 48.32 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.2594, allocations: 63.84 kB / 0.9153 GB, free: 48.25 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005251/0.2599, allocations: 417.1 kB / 0.9157 GB, free: 47.83 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.593e-05/0.26, allocations: 49.69 kB / 0.9157 GB, free: 47.77 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002283/0.2603, allocations: 339.5 kB / 0.916 GB, free: 47.44 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.2604, allocations: 130.3 kB / 0.9162 GB, free: 47.31 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.781e-05/0.2605, allocations: 12 kB / 0.9162 GB, free: 47.3 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.2606, allocations: 370.7 kB / 0.9165 GB, free: 46.93 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000404/0.261, allocations: 153.9 kB / 0.9167 GB, free: 46.77 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005586/0.2616, allocations: 383.6 kB / 0.917 GB, free: 46.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004725/0.262, allocations: 202.1 kB / 0.9172 GB, free: 46.11 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.2621, allocations: 0 / 0.9172 GB, free: 46.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00208/0.2642, allocations: 0.5918 MB / 0.9178 GB, free: 45.5 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008766/0.2651, allocations: 2.693 MB / 0.9204 GB, free: 42.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.222e-05/0.2652, allocations: 8 kB / 0.9204 GB, free: 42.59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.871e-05/0.2652, allocations: 16 kB / 0.9205 GB, free: 42.58 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/0.2663, allocations: 103.8 kB / 0.9206 GB, free: 42.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.054e-05/0.2664, allocations: 15.95 kB / 0.9206 GB, free: 42.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/0.2676, allocations: 79.2 kB / 0.9206 GB, free: 42.38 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/0.2678, allocations: 35.98 kB / 0.9207 GB, free: 42.35 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.2678, allocations: 6.031 kB / 0.9207 GB, free: 42.34 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002145/0.27, allocations: 0.5208 MB / 0.9212 GB, free: 41.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/0.2701, allocations: 12.19 kB / 0.9212 GB, free: 41.81 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.047e-05/0.2701, allocations: 12 kB / 0.9212 GB, free: 41.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009818/0.2711, allocations: 103.8 kB / 0.9213 GB, free: 41.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.524e-05/0.2712, allocations: 12 kB / 0.9213 GB, free: 41.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000859/0.2721, allocations: 67.36 kB / 0.9214 GB, free: 41.62 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.179e-05/0.2722, allocations: 36 kB / 0.9214 GB, free: 41.58 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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.0006707/0.2729, allocations: 328.8 kB / 0.9217 GB, free: 41.25 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/0.2731, allocations: 43.44 kB / 0.9218 GB, free: 41.21 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/0.2748, allocations: 405.3 kB / 0.9222 GB, free: 40.8 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.2748, allocations: 11.94 kB / 0.9222 GB, free: 40.79 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.2748, allocations: 0 / 0.9222 GB, free: 40.79 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.2749, allocations: 0 / 0.9222 GB, free: 40.79 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002612/0.2775, allocations: 1.071 MB / 0.9232 GB, free: 39.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.2776, allocations: 4 kB / 0.9232 GB, free: 39.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.278, allocations: 43.91 kB / 0.9233 GB, free: 39.61 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.877e-06/0.278, allocations: 4 kB / 0.9233 GB, free: 39.61 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.86e-05/0.2781, allocations: 8 kB / 0.9233 GB, free: 39.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.723e-06/0.2781, allocations: 4 kB / 0.9233 GB, free: 39.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.2781, allocations: 3.938 kB / 0.9233 GB, free: 39.59 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.2793, allocations: 0.6719 MB / 0.9239 GB, free: 38.89 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002059/0.2796, allocations: 152.4 kB / 0.9241 GB, free: 38.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.854e-05/0.2797, allocations: 15.95 kB / 0.9241 GB, free: 38.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003099/0.28, allocations: 15.98 kB / 0.9241 GB, free: 38.69 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.2801, allocations: 48.44 kB / 0.9242 GB, free: 38.64 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.455e-05/0.2802, allocations: 15.98 kB / 0.9242 GB, free: 38.62 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003273/0.2805, allocations: 259.2 kB / 0.9244 GB, free: 38.37 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2806, allocations: 0 / 0.9244 GB, free: 38.37 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001155/0.2817, allocations: 270.9 kB / 0.9247 GB, free: 38.11 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (51): * Single equations (assignments): 47 * 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.0001951/0.2819, allocations: 117.4 kB / 0.9248 GB, free: 37.98 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001583/0.2835, allocations: 0.7265 MB / 0.9255 GB, free: 37.26 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.2836, allocations: 0 / 0.9255 GB, free: 37.26 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004083/0.284, allocations: 182.4 kB / 0.9257 GB, free: 37.08 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007631/0.2847, allocations: 97.66 kB / 0.9258 GB, free: 36.98 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/0.2869, allocations: 1.192 MB / 0.9269 GB, free: 35.76 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004064/0.2874, allocations: 0.9228 MB / 0.9278 GB, free: 34.81 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0006626/0.2881, allocations: 120.7 kB / 0.928 GB, free: 34.69 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.2883, allocations: 43.42 kB / 0.928 GB, free: 34.64 MB / 0.6042 GB Notification: Performance of SimCode: time 8.72e-07/0.2883, allocations: 4 kB / 0.928 GB, free: 34.64 MB / 0.6042 GB Notification: Performance of Templates: time 0.01539/0.3037, allocations: 5.334 MB / 0.9332 GB, free: 29.36 MB / 0.6042 GB