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.001384/0.001384, allocations: 99.28 kB / 16.02 MB, free: 6.336 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.001599/0.001599, allocations: 194.4 kB / 16.95 MB, free: 6.152 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.388/1.388, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05715/0.05715, allocations: 8.109 MB / 298.9 MB, free: 6.684 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 63.88 kB / 361.2 MB, free: 8.285 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.25, allocations: 51.51 MB / 412.7 MB, free: 25.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.004402/0.2544, allocations: 4.686 MB / 417.4 MB, free: 21.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001898/0.2563, allocations: 1.413 MB / 418.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002288/0.2566, allocations: 12 kB / 418.9 MB, free: 19.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000752/0.2574, allocations: 476.5 kB / 419.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005906/0.258, allocations: 382.3 kB / 419.7 MB, free: 18.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001412/0.2594, allocations: 1.004 MB / 420.7 MB, free: 17.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006618/0.2601, allocations: 0.8443 MB / 421.5 MB, free: 16.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003255/0.2604, allocations: 310.8 kB / 421.8 MB, free: 16.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002405/0.2607, allocations: 378.8 kB / 422.2 MB, free: 16.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004523/0.2611, allocations: 0.5919 MB / 422.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.752e-05/0.2612, allocations: 80 kB / 422.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004134/0.2616, allocations: 307.8 kB / 423.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002155/0.2619, allocations: 426.8 kB / 423.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003098/0.2622, allocations: 0.6098 MB / 424.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009813/0.2632, allocations: 1.651 MB / 425.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2632, allocations: 0 / 425.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2632, allocations: 0 / 425.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.2632, allocations: 0 / 425.9 MB, free: 12.6 MB / 302.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.004486/0.2677, allocations: 2.118 MB / 428 MB, free: 10.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.2677, allocations: 8.031 kB / 428 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/0.2679, allocations: 147.2 kB / 428.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009541/0.2689, allocations: 0.9861 MB / 429.1 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.269, allocations: 194.4 kB / 429.3 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.171e-05/0.2691, allocations: 60.38 kB / 429.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.2703, allocations: 0.8518 MB / 430.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.2703, allocations: 3.938 kB / 430.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.329e-05/0.2704, allocations: 24 kB / 430.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.2704, allocations: 15.98 kB / 430.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009925/0.2714, allocations: 0.7352 MB / 431 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004054/0.2754, allocations: 4.061 MB / 435.1 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.2771, allocations: 1.283 MB / 436.3 MB, free: 1.594 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007158/0.2778, allocations: 0.5496 MB / 436.9 MB, free: 1.047 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.395e-05/0.2779, allocations: 24.97 kB / 436.9 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.2779, allocations: 55.44 kB / 437 MB, free: 0.957 MB / 302.1 MB Notification: Performance of pre-optimization done (n=85): time 2.865e-06/0.2779, allocations: 0 / 437 MB, free: 0.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01084/0.2888, allocations: 3.122 MB / 440.1 MB, free: 13.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/0.289, allocations: 240.3 kB / 440.3 MB, free: 13.51 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002689/0.2917, allocations: 1.809 MB / 442.1 MB, free: 11.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.2918, allocations: 45.7 kB / 442.2 MB, free: 11.64 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004899/0.2923, allocations: 0.49 MB / 442.7 MB, free: 11.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003709/0.2927, allocations: 287.8 kB / 442.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003368/0.2931, allocations: 142.7 kB / 443.1 MB, free: 10.71 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002472/0.2933, allocations: 337.9 kB / 443.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009265/0.2943, allocations: 425.8 kB / 443.8 MB, free: 9.961 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.2953, allocations: 0.5383 MB / 444.4 MB, free: 9.391 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009051/0.3044, allocations: 2.611 MB / 447 MB, free: 6.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3044, allocations: 0 / 447 MB, free: 6.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.00456/0.309, allocations: 1.71 MB / 448.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.239e-05/0.309, allocations: 6.5 kB / 448.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3091, allocations: 0 / 448.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002986/0.312, allocations: 0.8245 MB / 449.5 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004853/0.3126, allocations: 119.8 kB / 449.6 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002415/0.315, allocations: 1.479 MB / 451.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008482/0.3158, allocations: 83.33 kB / 451.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.441e-05/0.3159, allocations: 28 kB / 451.2 MB, free: 2.488 MB / 318.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.0007682/0.3167, allocations: 453.6 kB / 451.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/0.3169, allocations: 122.5 kB / 451.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004007/0.3209, allocations: 1.764 MB / 453.6 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/0.321, allocations: 12 kB / 453.6 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.321, allocations: 0 / 453.6 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.321, allocations: 3.984 kB / 453.6 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006088/0.3271, allocations: 3.386 MB / 457 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.3271, allocations: 0 / 457 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003895/0.3275, allocations: 107.8 kB / 457.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002662/0.3302, allocations: 0.789 MB / 457.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.34e-05/0.3303, allocations: 19.98 kB / 457.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002478/0.3328, allocations: 1.462 MB / 459.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3328, allocations: 3.938 kB / 459.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005097/0.3379, allocations: 2.335 MB / 461.7 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005161/0.3384, allocations: 279.5 kB / 461.9 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002701/0.3387, allocations: 20 kB / 462 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007146/0.3394, allocations: 43.97 kB / 462 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.3396, allocations: 72.89 kB / 462.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.885e-05/0.3397, allocations: 20 kB / 462.1 MB, free: 7.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001984/0.3417, allocations: 1.306 MB / 463.4 MB, free: 6.141 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3417, allocations: 0 / 463.4 MB, free: 6.141 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008555/0.3425, allocations: 251.7 kB / 463.6 MB, free: 5.895 MB / 334.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.0007362/0.3433, allocations: 297.8 kB / 463.9 MB, free: 5.672 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004028/0.3473, allocations: 1.394 MB / 465.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3474, allocations: 0 / 465.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002686/0.35, allocations: 0.8524 MB / 466.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.3511, allocations: 115.8 kB / 466.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005042/0.3562, allocations: 2.957 MB / 469.3 MB, free: 344 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009503/0.3571, allocations: 1.173 MB / 470.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005286/0.3577, allocations: 171.2 kB / 470.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002611/0.358, allocations: 71.42 kB / 470.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of SimCode: time 9.42e-07/0.358, allocations: 4 kB / 470.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of Templates: time 0.0313/0.3893, allocations: 16.34 MB / 487 MB, free: 14.59 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)