Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.783/1.783, allocations: 288.3 MB / 303.2 MB, free: 8.188 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.002311/0.002311, allocations: 185 kB / 371.8 MB, free: 10.29 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.615/1.615, allocations: 205.4 MB / 0.6306 GB, free: 10.03 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.0009999/0.0009999, allocations: 105.5 kB / 0.7439 GB, free: 5.938 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003857, allocations: 10.72 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2466, allocations: 115.3 MB / 0.9794 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.004498/0.2512, allocations: 3.649 MB / 0.983 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002968/0.2542, allocations: 1.914 MB / 0.9848 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000395/0.2546, allocations: 15.94 kB / 0.9849 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002317/0.2549, allocations: 83.36 kB / 0.9849 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004417/0.2553, allocations: 159.4 kB / 0.9851 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008565/0.2562, allocations: 332.5 kB / 0.9854 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0005669/0.2567, allocations: 0.539 MB / 0.9859 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007402/0.2575, allocations: 0.7761 MB / 0.9867 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001993/0.2577, allocations: 247 kB / 0.9869 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003477/0.2581, allocations: 262.8 kB / 0.9872 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.495e-05/0.2581, allocations: 32 kB / 0.9872 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001989/0.2583, allocations: 91.83 kB / 0.9873 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.2585, allocations: 155.5 kB / 0.9874 GB, free: 19.42 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.2586, allocations: 137.3 kB / 0.9876 GB, free: 19.28 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0005204/0.2592, allocations: 0.6393 MB / 0.9882 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2592, allocations: 0 / 0.9882 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.053e-06/0.2592, allocations: 0 / 0.9882 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.161e-05/0.2592, allocations: 8 kB / 0.9882 GB, free: 18.63 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.001264/0.2605, allocations: 0.8024 MB / 0.989 GB, free: 17.79 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.2605, allocations: 12.02 kB / 0.989 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004679/0.261, allocations: 119 kB / 0.9891 GB, free: 17.66 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005505/0.2616, allocations: 427.7 kB / 0.9895 GB, free: 17.2 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.763e-05/0.2616, allocations: 66 kB / 0.9896 GB, free: 17.14 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.41e-05/0.2617, allocations: 79.98 kB / 0.9897 GB, free: 17.06 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.2628, allocations: 0.8613 MB / 0.9905 GB, free: 16.13 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.2628, allocations: 7.875 kB / 0.9905 GB, free: 16.12 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.557e-05/0.2629, allocations: 32 kB / 0.9905 GB, free: 16.09 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-05/0.263, allocations: 49.94 kB / 0.9906 GB, free: 16.04 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008109/0.2638, allocations: 0.5659 MB / 0.9911 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003039/0.2669, allocations: 3.704 MB / 0.9948 GB, free: 11.55 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004913/0.2674, allocations: 328 kB / 0.9951 GB, free: 11.23 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.2674, allocations: 4.375 kB / 0.9951 GB, free: 11.22 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003276/0.2677, allocations: 221.3 kB / 0.9953 GB, free: 11 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=47): time 2.084e-06/0.2678, allocations: 0 / 0.9953 GB, free: 11 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47): time 0.000724/0.2685, allocations: 458.5 kB / 0.9957 GB, free: 10.54 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.2685, allocations: 55.84 kB / 0.9958 GB, free: 10.48 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003145/0.2688, allocations: 425 kB / 0.9962 GB, free: 10.05 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.2689, allocations: 49.69 kB / 0.9962 GB, free: 9.996 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.2691, allocations: 339.5 kB / 0.9966 GB, free: 9.66 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.465e-05/0.2691, allocations: 134.2 kB / 0.9967 GB, free: 9.527 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.253e-05/0.2692, allocations: 16 kB / 0.9967 GB, free: 9.512 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.514e-05/0.2693, allocations: 358.8 kB / 0.997 GB, free: 9.152 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002261/0.2695, allocations: 157.9 kB / 0.9972 GB, free: 8.996 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.2698, allocations: 387.6 kB / 0.9976 GB, free: 8.523 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.2701, allocations: 186.1 kB / 0.9977 GB, free: 8.34 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.2701, allocations: 8 kB / 0.9977 GB, free: 8.332 MB / 0.6198 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0007597/0.2709, allocations: 0.5881 MB / 0.9983 GB, free: 7.738 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005283/0.2714, allocations: 2.705 MB / 1.001 GB, free: 4.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.2714, allocations: 4 kB / 1.001 GB, free: 4.816 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.2714, allocations: 15.94 kB / 1.001 GB, free: 4.801 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000315/0.2718, allocations: 103.8 kB / 1.001 GB, free: 4.699 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.2718, allocations: 19.92 kB / 1.001 GB, free: 4.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002909/0.2721, allocations: 83.11 kB / 1.001 GB, free: 4.598 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.203e-05/0.2721, allocations: 35.95 kB / 1.001 GB, free: 4.562 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 8.396e-06/0.2722, allocations: 5.719 kB / 1.001 GB, free: 4.559 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006393/0.2728, allocations: 0.5171 MB / 1.002 GB, free: 4.043 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2728, allocations: 8 kB / 1.002 GB, free: 4.035 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.2728, allocations: 12 kB / 1.002 GB, free: 4.023 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002814/0.2731, allocations: 107.8 kB / 1.002 GB, free: 3.918 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.2731, allocations: 19.92 kB / 1.002 GB, free: 3.898 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002607/0.2734, allocations: 75.36 kB / 1.002 GB, free: 3.824 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.768e-05/0.2735, allocations: 31.98 kB / 1.002 GB, free: 3.793 MB / 0.6198 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.0002625/0.2737, allocations: 316.8 kB / 1.002 GB, free: 3.473 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.881e-05/0.2738, allocations: 55.39 kB / 1.002 GB, free: 3.418 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005859/0.2744, allocations: 405.3 kB / 1.003 GB, free: 3.016 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.2744, allocations: 4 kB / 1.003 GB, free: 3.012 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.2744, allocations: 0 / 1.003 GB, free: 3.012 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.2744, allocations: 3.984 kB / 1.003 GB, free: 3.008 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/0.2756, allocations: 1.063 MB / 1.004 GB, free: 1.879 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2756, allocations: 0 / 1.004 GB, free: 1.879 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002038/0.2758, allocations: 51.84 kB / 1.004 GB, free: 1.828 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.2758, allocations: 4 kB / 1.004 GB, free: 1.824 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.2759, allocations: 12 kB / 1.004 GB, free: 1.812 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.2759, allocations: 0 / 1.004 GB, free: 1.812 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2759, allocations: 4 kB / 1.004 GB, free: 1.809 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006862/0.2766, allocations: 0.6564 MB / 1.004 GB, free: 1.121 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.2767, allocations: 160.4 kB / 1.005 GB, free: 0.9453 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.628e-05/0.2768, allocations: 15.98 kB / 1.005 GB, free: 0.9297 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.277, allocations: 8 kB / 1.005 GB, free: 0.9219 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.394e-05/0.2771, allocations: 60.25 kB / 1.005 GB, free: 0.8633 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.813e-05/0.2771, allocations: 24 kB / 1.005 GB, free: 0.8398 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001921/0.2773, allocations: 251.2 kB / 1.005 GB, free: 0.5938 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.11e-07/0.2773, allocations: 0 / 1.005 GB, free: 0.5938 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006914/0.278, allocations: 278.8 kB / 1.005 GB, free: 328 kB / 0.6198 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.0001643/0.2782, allocations: 135.5 kB / 1.005 GB, free: 180 kB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001071/0.2792, allocations: 0.7147 MB / 1.006 GB, free: 15.46 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2793, allocations: 320 / 1.006 GB, free: 15.46 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002786/0.2795, allocations: 186.4 kB / 1.006 GB, free: 15.28 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000472/0.28, allocations: 94.17 kB / 1.006 GB, free: 15.19 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.2818, allocations: 1.185 MB / 1.007 GB, free: 13.98 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/0.2823, allocations: 0.9228 MB / 1.008 GB, free: 13.03 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0004214/0.2827, allocations: 108.7 kB / 1.008 GB, free: 12.92 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.2828, allocations: 51.42 kB / 1.009 GB, free: 12.87 MB / 0.6355 GB Notification: Performance of SimCode: time 2.6e-07/0.2828, allocations: 0 / 1.009 GB, free: 12.87 MB / 0.6355 GB Notification: Performance of Templates: time 0.01145/0.2943, allocations: 5.332 MB / 1.014 GB, free: 7.59 MB / 0.6355 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)