Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004707/0.004707, allocations: 88.75 kB / 15.91 MB, free: 6.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009765/0.0009766, allocations: 197.7 kB / 16.83 MB, free: 6.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.236/1.236, allocations: 222.9 MB / 240.5 MB, free: 4.484 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1569/0.1569, allocations: 8.09 MB / 298.7 MB, free: 2.082 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 59.91 kB / 361 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08672/0.08778, allocations: 51.52 MB / 412.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.005463/0.09329, allocations: 4.689 MB / 417.2 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.09551, allocations: 1.425 MB / 418.7 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003817/0.09591, allocations: 12 kB / 418.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008567/0.09678, allocations: 470.8 kB / 419.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006967/0.0975, allocations: 386.2 kB / 419.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00159/0.0991, allocations: 1.031 MB / 420.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006624/0.09977, allocations: 0.8132 MB / 421.4 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003279/0.1001, allocations: 263.7 kB / 421.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002692/0.1004, allocations: 346.7 kB / 422 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005057/0.1009, allocations: 0.5646 MB / 422.5 MB, free: 168 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.564e-05/0.101, allocations: 52 kB / 422.6 MB, free: 116 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004345/0.1014, allocations: 275.8 kB / 422.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002666/0.1017, allocations: 398.7 kB / 423.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003989/0.1021, allocations: 0.563 MB / 423.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001145/0.1033, allocations: 1.624 MB / 425.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.1033, allocations: 0 / 425.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1033, allocations: 0 / 425.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.916e-06/0.1033, allocations: 7.938 kB / 425.4 MB, free: 13.25 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004655/0.108, allocations: 2.115 MB / 427.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.108, allocations: 8.031 kB / 427.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001991/0.1082, allocations: 147.2 kB / 427.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.1093, allocations: 0.9784 MB / 428.7 MB, free: 9.895 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.1095, allocations: 194.4 kB / 428.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.36e-05/0.1096, allocations: 60.38 kB / 428.9 MB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.1108, allocations: 0.8518 MB / 429.8 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1109, allocations: 3.938 kB / 429.8 MB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.359e-05/0.1109, allocations: 28 kB / 429.8 MB, free: 8.703 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.111, allocations: 12 kB / 429.8 MB, free: 8.691 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/0.1121, allocations: 0.7274 MB / 430.5 MB, free: 7.965 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004606/0.1167, allocations: 4.073 MB / 434.6 MB, free: 3.602 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001843/0.1185, allocations: 1.294 MB / 435.9 MB, free: 2.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000825/0.1194, allocations: 0.5432 MB / 436.4 MB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.509e-05/0.1195, allocations: 28.95 kB / 436.5 MB, free: 1.676 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.1195, allocations: 47.5 kB / 436.5 MB, free: 1.621 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 1.854e-06/0.1195, allocations: 0 / 436.5 MB, free: 1.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.1524/0.272, allocations: 3.13 MB / 439.7 MB, free: 56.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.272, allocations: 245.5 kB / 439.9 MB, free: 56.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001707/0.2738, allocations: 1.804 MB / 441.7 MB, free: 55.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.501e-05/0.2738, allocations: 45.83 kB / 441.7 MB, free: 55.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.2741, allocations: 495.2 kB / 442.2 MB, free: 55.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.2743, allocations: 284.3 kB / 442.5 MB, free: 55.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002103/0.2745, allocations: 151.7 kB / 442.6 MB, free: 55.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.957e-05/0.2745, allocations: 337.2 kB / 443 MB, free: 55.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006087/0.2752, allocations: 421.6 kB / 443.4 MB, free: 55.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006747/0.2758, allocations: 0.5415 MB / 443.9 MB, free: 55.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007746/0.2836, allocations: 2.588 MB / 446.5 MB, free: 54.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2836, allocations: 0 / 446.5 MB, free: 54.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.003566/0.2872, allocations: 1.719 MB / 448.2 MB, free: 53.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.2872, allocations: 8.625 kB / 448.2 MB, free: 53.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.2872, allocations: 4 kB / 448.3 MB, free: 53.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002561/0.2898, allocations: 0.8149 MB / 449.1 MB, free: 53.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003891/0.2902, allocations: 115.5 kB / 449.2 MB, free: 53.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002021/0.2922, allocations: 1.474 MB / 450.7 MB, free: 52.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005616/0.2928, allocations: 86.56 kB / 450.7 MB, free: 52.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.578e-05/0.2929, allocations: 30.62 kB / 450.8 MB, free: 52.4 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.battery.SOC_start fixed = true ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0005484/0.2934, allocations: 452.7 kB / 451.2 MB, free: 52.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.2936, allocations: 119.8 kB / 451.3 MB, free: 52.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003496/0.2971, allocations: 1.762 MB / 453.1 MB, free: 51.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.2971, allocations: 9.938 kB / 453.1 MB, free: 51.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.2971, allocations: 7.094 kB / 453.1 MB, free: 51.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.2971, allocations: 10.94 kB / 453.1 MB, free: 51.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004894/0.302, allocations: 3.384 MB / 456.5 MB, free: 49.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3021, allocations: 3.188 kB / 456.5 MB, free: 49.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003263/0.3024, allocations: 100.1 kB / 456.6 MB, free: 49.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002387/0.3048, allocations: 0.7791 MB / 457.4 MB, free: 49.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.77e-05/0.3048, allocations: 15.22 kB / 457.4 MB, free: 49.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001928/0.3068, allocations: 1.467 MB / 458.9 MB, free: 48.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3068, allocations: 7.969 kB / 458.9 MB, free: 48.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004071/0.3109, allocations: 2.334 MB / 461.2 MB, free: 47.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002938/0.3112, allocations: 271.5 kB / 461.5 MB, free: 47.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.3113, allocations: 18.09 kB / 461.5 MB, free: 47.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005025/0.3118, allocations: 48.7 kB / 461.5 MB, free: 47.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.312, allocations: 67.84 kB / 461.6 MB, free: 47.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.452e-05/0.312, allocations: 31.91 kB / 461.6 MB, free: 47.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001254/0.3133, allocations: 1.297 MB / 462.9 MB, free: 46.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3133, allocations: 3.125 kB / 462.9 MB, free: 46.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005911/0.3139, allocations: 246.5 kB / 463.2 MB, free: 46.89 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005933/0.3145, allocations: 295 kB / 463.5 MB, free: 46.76 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0031/0.3176, allocations: 1.348 MB / 464.8 MB, free: 46.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3176, allocations: 0 / 464.8 MB, free: 46.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002254/0.3199, allocations: 0.8391 MB / 465.6 MB, free: 46.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006179/0.3205, allocations: 111.1 kB / 465.8 MB, free: 46.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003539/0.3241, allocations: 2.968 MB / 468.7 MB, free: 44.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005129/0.3246, allocations: 1.176 MB / 469.9 MB, free: 43.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003177/0.3249, allocations: 169.7 kB / 470.1 MB, free: 43.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/0.3251, allocations: 74.78 kB / 470.1 MB, free: 43.69 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3251, allocations: 1.094 kB / 470.1 MB, free: 43.69 MB / 366.1 MB Notification: Performance of Templates: time 0.02119/0.3463, allocations: 15.48 MB / 485.6 MB, free: 42.09 MB / 366.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)