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-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001455/0.001455, allocations: 107.8 kB / 17.07 MB, free: 5.68 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.001668/0.001667, allocations: 194.9 kB / 18.01 MB, free: 5.02 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05118/0.05118, allocations: 8.096 MB / 300 MB, free: 6.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002446/0.002446, allocations: 63.91 kB / 363.2 MB, free: 7.395 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2203, allocations: 51.52 MB / 414.7 MB, free: 25.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.004462/0.2248, allocations: 4.676 MB / 419.4 MB, free: 20.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.2267, allocations: 1.448 MB / 420.8 MB, free: 19.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002064/0.2269, allocations: 12 kB / 420.8 MB, free: 19.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007014/0.2276, allocations: 0.492 MB / 421.3 MB, free: 18.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005436/0.2282, allocations: 425.8 kB / 421.7 MB, free: 18.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001443/0.2297, allocations: 1.073 MB / 422.8 MB, free: 17.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006632/0.2303, allocations: 0.8521 MB / 423.7 MB, free: 16.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000355/0.2307, allocations: 310.8 kB / 424 MB, free: 16.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.2309, allocations: 386.7 kB / 424.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005084/0.2315, allocations: 0.5685 MB / 424.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.076e-05/0.2316, allocations: 84 kB / 425 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004116/0.232, allocations: 311.8 kB / 425.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002234/0.2322, allocations: 426.8 kB / 425.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003377/0.2325, allocations: 0.606 MB / 426.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.2336, allocations: 1.671 MB / 428 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.2336, allocations: 0 / 428 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2336, allocations: 0 / 428 MB, free: 12.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.2336, allocations: 0 / 428 MB, free: 12.09 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.004405/0.238, allocations: 2.111 MB / 430.1 MB, free: 9.914 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.2381, allocations: 11.89 kB / 430.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/0.2383, allocations: 147.2 kB / 430.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.2394, allocations: 0.9938 MB / 431.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.2395, allocations: 198.3 kB / 431.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.08e-05/0.2396, allocations: 60.38 kB / 431.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.2407, allocations: 0.8479 MB / 432.4 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.2407, allocations: 3.938 kB / 432.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.805e-05/0.2408, allocations: 28 kB / 432.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.2408, allocations: 12 kB / 432.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009719/0.2418, allocations: 0.7197 MB / 433.1 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004137/0.2459, allocations: 4.05 MB / 437.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.2476, allocations: 1.294 MB / 438.5 MB, free: 1.094 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007077/0.2483, allocations: 0.5619 MB / 439 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-05/0.2484, allocations: 20.97 kB / 439 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.2484, allocations: 47.5 kB / 439.1 MB, free: 464 kB / 302.1 MB Notification: Performance of pre-optimization done (n=85): time 2.364e-06/0.2484, allocations: 0 / 439.1 MB, free: 464 kB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01054/0.259, allocations: 3.134 MB / 442.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.2591, allocations: 244.3 kB / 442.5 MB, free: 13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002149/0.2613, allocations: 1.813 MB / 444.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.248e-05/0.2614, allocations: 41.7 kB / 444.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000481/0.2618, allocations: 497.8 kB / 444.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.2621, allocations: 287.8 kB / 445.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.2623, allocations: 142.7 kB / 445.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2625, allocations: 337.9 kB / 445.5 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007285/0.2632, allocations: 429.8 kB / 446 MB, free: 9.445 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008107/0.264, allocations: 0.5307 MB / 446.5 MB, free: 8.883 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008506/0.2725, allocations: 2.596 MB / 449.1 MB, free: 6.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.2726, allocations: 0 / 449.1 MB, free: 6.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004161/0.2767, allocations: 1.718 MB / 450.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.2768, allocations: 4 kB / 450.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.2768, allocations: 0 / 450.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002886/0.2797, allocations: 0.8203 MB / 451.6 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004355/0.2801, allocations: 119.8 kB / 451.8 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002461/0.2826, allocations: 1.471 MB / 453.2 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007215/0.2833, allocations: 87.33 kB / 453.3 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-05/0.2834, allocations: 27.94 kB / 453.3 MB, free: 1.992 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.0006566/0.2841, allocations: 441.6 kB / 453.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.2843, allocations: 122.5 kB / 453.9 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003991/0.2883, allocations: 1.768 MB / 455.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.2883, allocations: 8 kB / 455.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.2883, allocations: 0 / 455.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.2883, allocations: 3.984 kB / 455.7 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006749/0.2951, allocations: 3.384 MB / 459.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.2951, allocations: 0 / 459.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003988/0.2955, allocations: 107.8 kB / 459.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002737/0.2983, allocations: 0.7771 MB / 459.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.434e-05/0.2983, allocations: 27.98 kB / 460 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002537/0.3009, allocations: 1.455 MB / 461.4 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3009, allocations: 3.938 kB / 461.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004986/0.3059, allocations: 2.333 MB / 463.8 MB, free: 7.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005344/0.3064, allocations: 279.4 kB / 464 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.3066, allocations: 16 kB / 464 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005405/0.3071, allocations: 55.95 kB / 464.1 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.3073, allocations: 64.91 kB / 464.2 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.918e-05/0.3074, allocations: 28 kB / 464.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001625/0.309, allocations: 1.302 MB / 465.5 MB, free: 5.668 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.943e-06/0.309, allocations: 0 / 465.5 MB, free: 5.668 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006702/0.3097, allocations: 255.6 kB / 465.7 MB, free: 5.418 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.0006739/0.3104, allocations: 294.2 kB / 466 MB, free: 5.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003556/0.314, allocations: 1.367 MB / 467.4 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.314, allocations: 0 / 467.4 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002561/0.3165, allocations: 0.8524 MB / 468.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006919/0.3172, allocations: 111.5 kB / 468.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004301/0.3216, allocations: 2.566 MB / 470.9 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007496/0.3223, allocations: 1.177 MB / 472.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003549/0.3227, allocations: 171.2 kB / 472.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001928/0.3229, allocations: 71.42 kB / 472.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3229, allocations: 0 / 472.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of Templates: time 0.02543/0.3483, allocations: 16.57 MB / 488.9 MB, free: 14.29 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 -s gbode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)