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.0008423/0.0008424, allocations: 89.88 kB / 16.71 MB, free: 6.145 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.0008879/0.0008879, allocations: 178.1 kB / 17.62 MB, free: 5.855 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.315/1.315, allocations: 223.3 MB / 241.7 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04364/0.04364, allocations: 8.105 MB / 300.9 MB, free: 6.691 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002964/0.0002965, allocations: 8 kB / 364.2 MB, free: 7.379 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1907, allocations: 52.51 MB / 416.7 MB, free: 24.87 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.003379/0.1941, allocations: 4.27 MB / 420.9 MB, free: 20.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.1959, allocations: 1.413 MB / 422.3 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002344/0.1962, allocations: 8 kB / 422.4 MB, free: 19.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007079/0.1969, allocations: 476.5 kB / 422.8 MB, free: 18.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000599/0.1975, allocations: 390.3 kB / 423.2 MB, free: 18.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.1989, allocations: 1.001 MB / 424.2 MB, free: 17.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006318/0.1996, allocations: 0.8169 MB / 425 MB, free: 16.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003086/0.1999, allocations: 263.7 kB / 425.3 MB, free: 16.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000225/0.2001, allocations: 326.7 kB / 425.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004724/0.2006, allocations: 0.5294 MB / 426.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.709e-05/0.2007, allocations: 36 kB / 426.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004231/0.2011, allocations: 251.8 kB / 426.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002173/0.2014, allocations: 386.7 kB / 426.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003199/0.2017, allocations: 0.5608 MB / 427.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007973/0.2025, allocations: 1.29 MB / 428.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2025, allocations: 0 / 428.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2025, allocations: 4 kB / 428.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.2025, allocations: 0 / 428.6 MB, free: 12.84 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.004509/0.207, allocations: 1.899 MB / 430.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.2071, allocations: 15.91 kB / 430.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002113/0.2073, allocations: 151.2 kB / 430.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.2083, allocations: 0.9783 MB / 431.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.2084, allocations: 198.3 kB / 431.9 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.141e-05/0.2085, allocations: 60.38 kB / 431.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.2098, allocations: 0.8635 MB / 432.8 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.2098, allocations: 3.938 kB / 432.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.567e-05/0.2099, allocations: 28 kB / 432.8 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.2099, allocations: 12 kB / 432.8 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.211, allocations: 0.7314 MB / 433.6 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004372/0.2153, allocations: 4.1 MB / 437.7 MB, free: 3.352 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001786/0.2172, allocations: 1.302 MB / 439 MB, free: 1.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007918/0.218, allocations: 0.5665 MB / 439.5 MB, free: 1.418 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.669e-05/0.2181, allocations: 20.97 kB / 439.6 MB, free: 1.395 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/0.2181, allocations: 51.5 kB / 439.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of pre-optimization done (n=85): time 2.495e-06/0.2181, allocations: 0 / 439.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01124/0.2293, allocations: 3.232 MB / 442.8 MB, free: 14.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.2295, allocations: 240.3 kB / 443.1 MB, free: 13.78 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002285/0.2318, allocations: 1.809 MB / 444.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.2319, allocations: 45.7 kB / 444.9 MB, free: 11.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004116/0.2323, allocations: 493.8 kB / 445.4 MB, free: 11.42 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002411/0.2326, allocations: 279.8 kB / 445.7 MB, free: 11.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.2327, allocations: 81.61 kB / 445.8 MB, free: 11.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2328, allocations: 341.9 kB / 446.1 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007896/0.2336, allocations: 429.8 kB / 446.5 MB, free: 10.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008666/0.2345, allocations: 0.5501 MB / 447.1 MB, free: 9.715 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009569/0.2441, allocations: 2.669 MB / 449.7 MB, free: 7.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.2441, allocations: 0 / 449.7 MB, free: 7.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004394/0.2485, allocations: 1.745 MB / 451.5 MB, free: 5.281 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.2486, allocations: 8 kB / 451.5 MB, free: 5.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.2486, allocations: 0 / 451.5 MB, free: 5.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00306/0.2516, allocations: 0.8245 MB / 452.3 MB, free: 4.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005007/0.2522, allocations: 123.8 kB / 452.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002624/0.2548, allocations: 1.483 MB / 453.9 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000785/0.2556, allocations: 99.33 kB / 454 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.257e-05/0.2557, allocations: 23.98 kB / 454 MB, free: 2.695 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.0007141/0.2564, allocations: 451.6 kB / 454.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002366/0.2566, allocations: 122.5 kB / 454.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004458/0.2611, allocations: 1.795 MB / 456.4 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.2611, allocations: 12 kB / 456.4 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.2611, allocations: 3.984 kB / 456.4 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.2612, allocations: 3.984 kB / 456.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00657/0.2677, allocations: 3.437 MB / 459.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.2678, allocations: 32 / 459.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004165/0.2682, allocations: 103.9 kB / 460 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002962/0.2712, allocations: 0.789 MB / 460.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.262e-05/0.2713, allocations: 19.94 kB / 460.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002559/0.2738, allocations: 1.467 MB / 462.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2738, allocations: 4 kB / 462.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005425/0.2793, allocations: 2.382 MB / 464.6 MB, free: 7.977 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004469/0.2797, allocations: 287.4 kB / 464.9 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.2799, allocations: 16 kB / 464.9 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005845/0.2805, allocations: 59.95 kB / 465 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.2806, allocations: 64.91 kB / 465 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.944e-05/0.2807, allocations: 31.98 kB / 465.1 MB, free: 7.508 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001818/0.2825, allocations: 1.302 MB / 466.4 MB, free: 6.199 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.864e-06/0.2825, allocations: 0 / 466.4 MB, free: 6.199 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00068/0.2832, allocations: 251.6 kB / 466.6 MB, free: 5.953 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.0007051/0.2839, allocations: 292.9 kB / 466.9 MB, free: 5.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003861/0.2878, allocations: 1.382 MB / 468.3 MB, free: 4.359 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2878, allocations: 0 / 468.3 MB, free: 4.359 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002778/0.2906, allocations: 0.8679 MB / 469.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008277/0.2915, allocations: 112.5 kB / 469.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005041/0.2965, allocations: 3.067 MB / 472.3 MB, free: 288 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007945/0.2973, allocations: 1.173 MB / 473.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002551/0.2976, allocations: 79.42 kB / 473.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2976, allocations: 3.938 kB / 473.6 MB, free: 15 MB / 350.1 MB Notification: Performance of Templates: time 0.02531/0.3229, allocations: 19.57 MB / 493.2 MB, free: 11.42 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)