Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 3.025/3.025, allocations: 287.5 MB / 302.4 MB, free: 8.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001314/0.001314, allocations: 186.3 kB / 371 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.145/2.145, allocations: 205.4 MB / 0.6297 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001622/0.001622, allocations: 97.14 kB / 0.743 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006674/0.0006677, allocations: 12.02 kB / 0.8658 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2355, allocations: 115.3 MB / 0.9783 GB, free: 28.38 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.005861/0.2415, allocations: 3.703 MB / 0.982 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.004485/0.246, allocations: 1.922 MB / 0.9838 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006169/0.2467, allocations: 15.94 kB / 0.9839 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0003656/0.2471, allocations: 83.23 kB / 0.9839 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0008198/0.2479, allocations: 167.1 kB / 0.9841 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.2494, allocations: 335.5 kB / 0.9844 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001564/0.251, allocations: 0.9088 MB / 0.9853 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001221/0.2523, allocations: 0.7878 MB / 0.9861 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004279/0.2527, allocations: 251 kB / 0.9863 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005969/0.2533, allocations: 314.6 kB / 0.9866 GB, free: 19.83 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.000122/0.2535, allocations: 32 kB / 0.9866 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004188/0.2539, allocations: 95.83 kB / 0.9867 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.000189/0.2541, allocations: 163.4 kB / 0.9869 GB, free: 19.55 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001928/0.2543, allocations: 141.3 kB / 0.987 GB, free: 19.4 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0009242/0.2552, allocations: 0.6393 MB / 0.9876 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.2553, allocations: 0 / 0.9876 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.625e-06/0.2553, allocations: 0 / 0.9876 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.07e-05/0.2553, allocations: 4 kB / 0.9877 GB, free: 18.76 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.001854/0.2572, allocations: 0.8048 MB / 0.9884 GB, free: 17.91 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.2573, allocations: 12.02 kB / 0.9885 GB, free: 17.89 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007886/0.2581, allocations: 123 kB / 0.9886 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008307/0.2589, allocations: 423.7 kB / 0.989 GB, free: 17.32 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.535e-05/0.259, allocations: 58 kB / 0.989 GB, free: 17.27 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.2592, allocations: 80 kB / 0.9891 GB, free: 17.19 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/0.2609, allocations: 0.8691 MB / 0.99 GB, free: 16.25 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.821e-05/0.261, allocations: 4 kB / 0.99 GB, free: 16.25 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.624e-05/0.2611, allocations: 39.94 kB / 0.99 GB, free: 16.21 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-05/0.2612, allocations: 45.92 kB / 0.99 GB, free: 16.16 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00147/0.2627, allocations: 0.562 MB / 0.9906 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005367/0.2681, allocations: 3.728 MB / 0.9942 GB, free: 11.66 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008448/0.269, allocations: 317.5 kB / 0.9945 GB, free: 11.34 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000597/0.2696, allocations: 215.5 kB / 0.9947 GB, free: 11.13 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.896e-05/0.2697, allocations: 4.375 kB / 0.9947 GB, free: 11.13 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005393/0.2702, allocations: 247.9 kB / 0.995 GB, free: 10.87 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=47): time 3.506e-06/0.2703, allocations: 0 / 0.995 GB, free: 10.87 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47): time 0.001197/0.2715, allocations: 457.3 kB / 0.9954 GB, free: 10.42 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.2715, allocations: 81.11 kB / 0.9955 GB, free: 10.32 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005581/0.2721, allocations: 421.1 kB / 0.9959 GB, free: 9.902 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.524e-05/0.2722, allocations: 45.7 kB / 0.9959 GB, free: 9.852 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002482/0.2725, allocations: 339.5 kB / 0.9963 GB, free: 9.516 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.2726, allocations: 134.4 kB / 0.9964 GB, free: 9.383 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.775e-05/0.2727, allocations: 16 kB / 0.9964 GB, free: 9.367 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.2728, allocations: 354.8 kB / 0.9967 GB, free: 9.012 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004079/0.2732, allocations: 153.9 kB / 0.9969 GB, free: 8.859 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000544/0.2738, allocations: 400.4 kB / 0.9973 GB, free: 8.367 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004669/0.2742, allocations: 190 kB / 0.9974 GB, free: 8.18 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.2743, allocations: 0 / 0.9974 GB, free: 8.18 MB / 0.6198 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001347/0.2756, allocations: 0.5769 MB / 0.998 GB, free: 7.602 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001947/0.2758, allocations: 301.9 kB / 0.9983 GB, free: 7.199 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.2759, allocations: 8 kB / 0.9983 GB, free: 7.191 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.948e-05/0.2759, allocations: 12 kB / 0.9983 GB, free: 7.18 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006209/0.2766, allocations: 107.8 kB / 0.9984 GB, free: 7.074 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.351e-05/0.2766, allocations: 15.94 kB / 0.9984 GB, free: 7.059 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005477/0.2772, allocations: 83.11 kB / 0.9985 GB, free: 6.977 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.081e-05/0.2772, allocations: 32 kB / 0.9985 GB, free: 6.945 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.2773, allocations: 4 kB / 0.9986 GB, free: 6.941 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001175/0.2784, allocations: 0.524 MB / 0.9991 GB, free: 6.422 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.2785, allocations: 8 kB / 0.9991 GB, free: 6.414 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.2785, allocations: 12.91 kB / 0.9991 GB, free: 6.402 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005709/0.2791, allocations: 99.77 kB / 0.9992 GB, free: 6.305 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.794e-05/0.2791, allocations: 16 kB / 0.9992 GB, free: 6.289 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005238/0.2797, allocations: 67.36 kB / 0.9993 GB, free: 6.223 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.48e-05/0.2797, allocations: 39.98 kB / 0.9993 GB, free: 6.184 MB / 0.6198 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.0004643/0.2802, allocations: 316.8 kB / 0.9996 GB, free: 5.863 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.679e-05/0.2803, allocations: 47.39 kB / 0.9996 GB, free: 5.816 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009354/0.2813, allocations: 401 kB / 1 GB, free: 5.414 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.2813, allocations: 11.94 kB / 1 GB, free: 5.402 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.2813, allocations: 0 / 1 GB, free: 5.402 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.2813, allocations: 0 / 1 GB, free: 5.402 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002255/0.2836, allocations: 1.218 MB / 1.001 GB, free: 4.105 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.2837, allocations: 0 / 1.001 GB, free: 4.105 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000396/0.2841, allocations: 47.91 kB / 1.001 GB, free: 4.059 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-05/0.2841, allocations: 4 kB / 1.001 GB, free: 4.055 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.915e-05/0.2841, allocations: 15.94 kB / 1.001 GB, free: 4.039 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.547e-06/0.2841, allocations: 7.984 kB / 1.001 GB, free: 4.031 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.2842, allocations: 0 / 1.001 GB, free: 4.031 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.2854, allocations: 0.6439 MB / 1.002 GB, free: 3.359 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.2857, allocations: 156.5 kB / 1.002 GB, free: 3.188 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.162e-05/0.2858, allocations: 12 kB / 1.002 GB, free: 3.176 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003211/0.2862, allocations: 11.98 kB / 1.002 GB, free: 3.164 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.2863, allocations: 52.42 kB / 1.002 GB, free: 3.113 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.941e-05/0.2864, allocations: 16 kB / 1.002 GB, free: 3.098 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003532/0.2868, allocations: 255.2 kB / 1.002 GB, free: 2.848 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2868, allocations: 0 / 1.002 GB, free: 2.848 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001257/0.288, allocations: 274.9 kB / 1.003 GB, free: 2.578 MB / 0.6198 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.0002275/0.2883, allocations: 134.1 kB / 1.003 GB, free: 2.438 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001771/0.2901, allocations: 0.7106 MB / 1.003 GB, free: 1.73 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.2901, allocations: 0 / 1.003 GB, free: 1.73 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004731/0.2906, allocations: 186.4 kB / 1.004 GB, free: 1.547 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.2916, allocations: 99.28 kB / 1.004 GB, free: 1.453 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002389/0.294, allocations: 1.205 MB / 1.005 GB, free: 216 kB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006679/0.2948, allocations: 0.9151 MB / 1.006 GB, free: 15.27 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.000768/0.2955, allocations: 112.7 kB / 1.006 GB, free: 15.16 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.2958, allocations: 43.42 kB / 1.006 GB, free: 15.11 MB / 0.6355 GB Notification: Performance of SimCode: time 1.323e-06/0.2958, allocations: 4 kB / 1.006 GB, free: 15.11 MB / 0.6355 GB Notification: Performance of Templates: time 0.0196/0.3154, allocations: 5.408 MB / 1.011 GB, free: 9.754 MB / 0.6355 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)