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.001734/0.001734, allocations: 115.5 kB / 17.13 MB, free: 6.039 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.002201/0.002201, allocations: 198.2 kB / 18.06 MB, free: 5.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.386/2.386, allocations: 222.9 MB / 241.8 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1052/0.1052, allocations: 8.102 MB / 300 MB, free: 6.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 63.91 kB / 415.2 MB, free: 21.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1336, allocations: 51.52 MB / 466.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.009203/0.1429, allocations: 4.688 MB / 471.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004427/0.1474, allocations: 1.436 MB / 472.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007926/0.1482, allocations: 8 kB / 472.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.1501, allocations: 0.498 MB / 473.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001765/0.1519, allocations: 421.8 kB / 473.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003405/0.1553, allocations: 1.082 MB / 474.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003075/0.1584, allocations: 0.8482 MB / 475.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009938/0.1595, allocations: 310.8 kB / 476 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001218/0.1607, allocations: 386.7 kB / 476.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001456/0.1622, allocations: 0.5724 MB / 476.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002436/0.1624, allocations: 80 kB / 477 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001415/0.1639, allocations: 307.8 kB / 477.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005757/0.1645, allocations: 426.8 kB / 477.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009726/0.1655, allocations: 0.606 MB / 478.3 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003813/0.1693, allocations: 1.671 MB / 480 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.1693, allocations: 0 / 480 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1694, allocations: 4 kB / 480 MB, free: 4.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.153e-05/0.1694, allocations: 0 / 480 MB, free: 4.785 MB / 350.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.01062/0.18, allocations: 2.111 MB / 482.1 MB, free: 2.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.48e-05/0.1801, allocations: 11.89 kB / 482.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004983/0.1807, allocations: 147.2 kB / 482.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002548/0.1832, allocations: 0.9823 MB / 483.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002536/0.1835, allocations: 194.4 kB / 483.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001664/0.1837, allocations: 64.38 kB / 483.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002619/0.1863, allocations: 0.8557 MB / 484.3 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.689e-05/0.1864, allocations: 3.938 kB / 484.3 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.997e-05/0.1865, allocations: 20 kB / 484.4 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.1865, allocations: 16 kB / 484.4 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001416/0.1879, allocations: 0.7274 MB / 485.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006862/0.1948, allocations: 4.046 MB / 489.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002257/0.1971, allocations: 1.298 MB / 490.5 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009929/0.1981, allocations: 0.5465 MB / 491 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001225/0.1982, allocations: 16.98 kB / 491 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.011e-05/0.1983, allocations: 51.48 kB / 491.1 MB, free: 9.172 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 3.737e-06/0.1983, allocations: 3.938 kB / 491.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01365/0.212, allocations: 3.138 MB / 494.2 MB, free: 6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002033/0.2122, allocations: 244.3 kB / 494.4 MB, free: 5.707 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004447/0.2167, allocations: 1.805 MB / 496.3 MB, free: 3.887 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002489/0.217, allocations: 41.7 kB / 496.3 MB, free: 3.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00049/0.2175, allocations: 497.8 kB / 496.8 MB, free: 3.352 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000357/0.2178, allocations: 287.6 kB / 497.1 MB, free: 3.066 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003604/0.2182, allocations: 150.6 kB / 497.2 MB, free: 2.914 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.2184, allocations: 345.9 kB / 497.5 MB, free: 2.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008995/0.2193, allocations: 417.8 kB / 498 MB, free: 2.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009553/0.2203, allocations: 0.5462 MB / 498.5 MB, free: 1.586 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01334/0.2336, allocations: 2.592 MB / 0.4893 GB, free: 14.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/0.2337, allocations: 0 / 0.4893 GB, free: 14.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.007697/0.2414, allocations: 1.706 MB / 0.491 GB, free: 13.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.565e-05/0.2415, allocations: 8 kB / 0.491 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/0.2416, allocations: 0 / 0.491 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004858/0.2464, allocations: 0.8242 MB / 0.4918 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009209/0.2474, allocations: 119.8 kB / 0.4919 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004405/0.2519, allocations: 1.471 MB / 0.4934 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/0.2534, allocations: 83.39 kB / 0.4935 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001914/0.2536, allocations: 31.98 kB / 0.4935 GB, free: 10.69 MB / 382.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.001529/0.2551, allocations: 449.6 kB / 0.4939 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007057/0.2559, allocations: 118.5 kB / 0.494 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007466/0.2633, allocations: 1.76 MB / 0.4957 GB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.232e-05/0.2634, allocations: 8 kB / 0.4958 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.2635, allocations: 4 kB / 0.4958 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-05/0.2635, allocations: 7.969 kB / 0.4958 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01219/0.2757, allocations: 3.377 MB / 0.4991 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/0.2758, allocations: 0 / 0.4991 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007675/0.2766, allocations: 111.9 kB / 0.4992 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004355/0.281, allocations: 0.7809 MB / 0.4999 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000164/0.2812, allocations: 27.98 kB / 0.5 GB, free: 3.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004006/0.2852, allocations: 1.454 MB / 0.5014 GB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/0.2852, allocations: 4 kB / 0.5014 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008302/0.2935, allocations: 2.333 MB / 0.5037 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.4968/0.7904, allocations: 277.9 kB / 0.5039 GB, free: 46.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007833/0.7913, allocations: 17.53 kB / 0.5039 GB, free: 46.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.7926, allocations: 50.05 kB / 0.504 GB, free: 46.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004318/0.7931, allocations: 66.19 kB / 0.5041 GB, free: 46.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/0.7932, allocations: 27.34 kB / 0.5041 GB, free: 46.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00502/0.7982, allocations: 1.298 MB / 0.5053 GB, free: 46.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.42e-07/0.7983, allocations: 0 / 0.5053 GB, free: 46.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002673/0.801, allocations: 250.2 kB / 0.5056 GB, free: 46.62 MB / 382.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.001248/0.8023, allocations: 289.7 kB / 0.5059 GB, free: 46.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006289/0.8086, allocations: 1.362 MB / 0.5072 GB, free: 46.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/0.8087, allocations: 1.125 kB / 0.5072 GB, free: 46.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004126/0.8128, allocations: 0.8568 MB / 0.508 GB, free: 46.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/0.8144, allocations: 109.7 kB / 0.5081 GB, free: 46.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008221/0.8227, allocations: 2.644 MB / 0.5107 GB, free: 44.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/0.8242, allocations: 1.176 MB / 0.5119 GB, free: 44.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006604/0.8248, allocations: 78.39 kB / 0.5119 GB, free: 44.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.442e-06/0.8249, allocations: 0 / 0.5119 GB, free: 44.2 MB / 382.1 MB Notification: Performance of Templates: time 0.05439/0.8793, allocations: 20 MB / 0.5315 GB, free: 32.44 MB / 382.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)