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 1.788/1.788, allocations: 287.4 MB / 303.2 MB, free: 8.199 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.001422/0.001422, allocations: 180.6 kB / 371.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.634/1.634, allocations: 205.4 MB / 0.6304 GB, free: 10.55 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.0009642/0.0009642, allocations: 91.22 kB / 0.7438 GB, free: 6.539 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004133/0.0004133, allocations: 14.22 kB / 0.8667 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2447, allocations: 115.3 MB / 0.9793 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.00414/0.2489, allocations: 3.7 MB / 0.9829 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002793/0.2517, allocations: 1.918 MB / 0.9848 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003518/0.2521, allocations: 15.94 kB / 0.9848 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000269/0.2524, allocations: 83.23 kB / 0.9849 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004653/0.2528, allocations: 175 kB / 0.985 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008793/0.2537, allocations: 328.5 kB / 0.9853 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0007388/0.2545, allocations: 0.9166 MB / 0.9862 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008836/0.2554, allocations: 0.8842 MB / 0.9871 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002109/0.2556, allocations: 251 kB / 0.9873 GB, free: 19.87 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003328/0.2559, allocations: 314.5 kB / 0.9876 GB, free: 19.56 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.995e-05/0.256, allocations: 28 kB / 0.9877 GB, free: 19.53 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002048/0.2562, allocations: 99.89 kB / 0.9878 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001296/0.2563, allocations: 163.4 kB / 0.9879 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 9.514e-05/0.2564, allocations: 137.4 kB / 0.988 GB, free: 19.13 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004611/0.2569, allocations: 0.647 MB / 0.9887 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.2569, allocations: 0 / 0.9887 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.834e-06/0.2569, allocations: 0 / 0.9887 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.127e-06/0.2569, allocations: 4 kB / 0.9887 GB, free: 18.48 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.001252/0.2582, allocations: 0.7971 MB / 0.9895 GB, free: 17.64 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.2583, allocations: 8.031 kB / 0.9895 GB, free: 17.63 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004416/0.2587, allocations: 119.9 kB / 0.9896 GB, free: 17.51 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004835/0.2592, allocations: 428.8 kB / 0.99 GB, free: 17.06 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.751e-05/0.2593, allocations: 62.38 kB / 0.99 GB, free: 17 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.376e-05/0.2594, allocations: 76.38 kB / 0.9901 GB, free: 16.92 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.2605, allocations: 0.8809 MB / 0.991 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.2605, allocations: 3.938 kB / 0.991 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.948e-05/0.2606, allocations: 39.97 kB / 0.991 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.483e-05/0.2606, allocations: 45.98 kB / 0.9911 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008118/0.2614, allocations: 0.562 MB / 0.9916 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002985/0.2644, allocations: 3.72 MB / 0.9952 GB, free: 11.39 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004999/0.2649, allocations: 317.5 kB / 0.9955 GB, free: 11.07 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003307/0.2653, allocations: 213.2 kB / 0.9958 GB, free: 10.86 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.875e-05/0.2653, allocations: 8.375 kB / 0.9958 GB, free: 10.86 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003414/0.2657, allocations: 251.8 kB / 0.996 GB, free: 10.59 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=47): time 2.104e-06/0.2657, allocations: 4 kB / 0.996 GB, free: 10.59 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47): time 0.0006709/0.2664, allocations: 448.2 kB / 0.9964 GB, free: 10.14 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.118e-05/0.2664, allocations: 85.11 kB / 0.9965 GB, free: 10.04 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003118/0.2667, allocations: 421.1 kB / 0.9969 GB, free: 9.621 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.2668, allocations: 49.69 kB / 0.997 GB, free: 9.566 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.267, allocations: 335.5 kB / 0.9973 GB, free: 9.234 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.298e-05/0.267, allocations: 130.2 kB / 0.9974 GB, free: 9.105 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.985e-05/0.2671, allocations: 12 kB / 0.9974 GB, free: 9.094 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.2672, allocations: 362.9 kB / 0.9978 GB, free: 8.73 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002254/0.2674, allocations: 153.9 kB / 0.9979 GB, free: 8.582 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003167/0.2677, allocations: 400.4 kB / 0.9983 GB, free: 8.09 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000465/0.2682, allocations: 0.4961 MB / 0.9988 GB, free: 7.496 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.2682, allocations: 0 / 0.9988 GB, free: 7.496 MB / 0.6198 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0007107/0.2689, allocations: 0.5882 MB / 0.9993 GB, free: 6.898 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001169/0.2691, allocations: 298.2 kB / 0.9996 GB, free: 6.508 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.2691, allocations: 12 kB / 0.9996 GB, free: 6.496 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.2691, allocations: 12 kB / 0.9997 GB, free: 6.484 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.2694, allocations: 103.8 kB / 0.9998 GB, free: 6.383 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.83e-05/0.2694, allocations: 19.91 kB / 0.9998 GB, free: 6.363 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002839/0.2697, allocations: 83.17 kB / 0.9999 GB, free: 6.281 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.075e-05/0.2698, allocations: 28 kB / 0.9999 GB, free: 6.254 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.913e-06/0.2698, allocations: 6.031 kB / 0.9999 GB, free: 6.25 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006374/0.2704, allocations: 0.5247 MB / 1 GB, free: 5.723 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2705, allocations: 8 kB / 1 GB, free: 5.715 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.245e-06/0.2705, allocations: 12 kB / 1 GB, free: 5.703 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.2707, allocations: 103.8 kB / 1.001 GB, free: 5.602 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.2708, allocations: 12 kB / 1.001 GB, free: 5.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.271, allocations: 71.36 kB / 1.001 GB, free: 5.52 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.761e-05/0.2711, allocations: 28 kB / 1.001 GB, free: 5.492 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.0003009/0.2714, allocations: 332.9 kB / 1.001 GB, free: 5.156 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.936e-05/0.2714, allocations: 51.38 kB / 1.001 GB, free: 5.105 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005644/0.272, allocations: 389.1 kB / 1.001 GB, free: 4.715 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.272, allocations: 11.92 kB / 1.001 GB, free: 4.703 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.272, allocations: 3.938 kB / 1.001 GB, free: 4.699 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.2721, allocations: 152.3 kB / 1.002 GB, free: 4.531 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.603e-05/0.2722, allocations: 12 kB / 1.002 GB, free: 4.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.2724, allocations: 23.98 kB / 1.002 GB, free: 4.496 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.2725, allocations: 44.36 kB / 1.002 GB, free: 4.449 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006165/0.2731, allocations: 0.5184 MB / 1.002 GB, free: 3.926 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0007079/0.2738, allocations: 0.7585 MB / 1.003 GB, free: 3.152 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001996/0.274, allocations: 167.4 kB / 1.003 GB, free: 2.984 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001892/0.2742, allocations: 251.2 kB / 1.003 GB, free: 2.742 MB / 0.6198 GB Notification: Performance of Backend: time 1.6e-07/0.2742, allocations: 4.094 kB / 1.003 GB, free: 2.738 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001276/0.2755, allocations: 0.7021 MB / 1.004 GB, free: 2.039 MB / 0.6198 GB Notification: Performance of SimCode: time 0.00164/0.2772, allocations: 1.601 MB / 1.005 GB, free: 396 kB / 0.6198 GB Notification: Performance of Templates: time 0.01468/0.2919, allocations: 7.248 MB / 1.013 GB, free: 9.191 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)