Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.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.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") translateModel(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001493/0.001493, 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.001782/0.001782, 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.345/1.345, allocations: 222.9 MB / 241.7 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.04594/0.04594, allocations: 8.084 MB / 300 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 67.89 kB / 363.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.2221, allocations: 51.53 MB / 414.7 MB, free: 25.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.004944/0.2271, allocations: 4.779 MB / 419.5 MB, free: 20.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.229, allocations: 1.635 MB / 421.1 MB, free: 18.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002354/0.2292, allocations: 12 kB / 421.1 MB, free: 18.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009464/0.2302, allocations: 0.7531 MB / 421.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006954/0.2309, allocations: 0.6497 MB / 422.5 MB, free: 17.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001554/0.2325, allocations: 1.152 MB / 423.7 MB, free: 16.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008791/0.2334, allocations: 1.254 MB / 424.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004037/0.2338, allocations: 414.2 kB / 425.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003591/0.2341, allocations: 0.5842 MB / 425.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006943/0.2348, allocations: 0.9115 MB / 426.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001283/0.235, allocations: 128 kB / 427 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004976/0.2355, allocations: 351.8 kB / 427.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004868/0.236, allocations: 0.97 MB / 428.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006907/0.2367, allocations: 1.204 MB / 429.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001876/0.2386, allocations: 3.345 MB / 432.8 MB, free: 7.227 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.2386, allocations: 4 kB / 432.8 MB, free: 7.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2386, allocations: 0 / 432.8 MB, free: 7.223 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.696e-05/0.2386, allocations: 0 / 432.8 MB, free: 7.223 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.006016/0.2446, allocations: 3.395 MB / 436.2 MB, free: 3.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.2447, allocations: 11.89 kB / 436.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003139/0.245, allocations: 289.3 kB / 436.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002529/0.2476, allocations: 2.183 MB / 438.7 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001564/0.2477, allocations: 220.1 kB / 438.9 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.355e-05/0.2478, allocations: 64.38 kB / 439 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.2493, allocations: 1.01 MB / 440 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.2494, allocations: 0 / 440 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.522e-05/0.2494, allocations: 28 kB / 440 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.2495, allocations: 16 kB / 440 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001471/0.2509, allocations: 0.6884 MB / 440.7 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007917/0.2589, allocations: 4.823 MB / 445.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0024/0.2613, allocations: 1.378 MB / 446.9 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009959/0.2623, allocations: 0.5107 MB / 447.4 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001682/0.2625, allocations: 97.66 kB / 447.5 MB, free: 7.988 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/0.2626, allocations: 47.06 kB / 447.6 MB, free: 7.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=64): time 2.736e-06/0.2626, allocations: 0 / 447.6 MB, free: 7.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.004667/0.2672, allocations: 1.665 MB / 449.2 MB, free: 6.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000247/0.2675, allocations: 0.5896 MB / 449.8 MB, free: 5.508 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005988/0.2735, allocations: 4.881 MB / 454.7 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.2736, allocations: 41.7 kB / 454.7 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009765/0.2746, allocations: 1.135 MB / 455.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000182/0.2748, allocations: 212.8 kB / 456.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.275, allocations: 126.2 kB / 456.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.2751, allocations: 337.9 kB / 456.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006824/0.2758, allocations: 309.2 kB / 456.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008891/0.2767, allocations: 0.5584 MB / 457.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005362/0.2821, allocations: 1.669 MB / 459.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.2821, allocations: 0 / 459.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003171/0.2853, allocations: 1.236 MB / 460.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.2853, allocations: 15.92 kB / 460.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2854, allocations: 0 / 460.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/0.2865, allocations: 252.6 kB / 460.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006831/0.2872, allocations: 171.8 kB / 460.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003523/0.2907, allocations: 2.707 MB / 463.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.2918, allocations: 99.53 kB / 463.5 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.103e-05/0.2919, allocations: 27.98 kB / 463.6 MB, free: 7.445 MB / 334.1 MB Warning: Assuming fixed start value for the following 3 variables: bat1.battery.integrator.q:VARIABLE(flow=false start = bat1.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(flow=false start = bat2.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat3.battery.integrator.q:VARIABLE(flow=false start = bat3.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: 8 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * 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 {(6,6)} Notification: Performance of prepare postOptimizeDAE: time 0.001246/0.2931, allocations: 0.942 MB / 464.5 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000347/0.2935, allocations: 260.6 kB / 464.8 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002809/0.2963, allocations: 1.26 MB / 466 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.2963, allocations: 8 kB / 466 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.2963, allocations: 4 kB / 466 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.2963, allocations: 3.984 kB / 466 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005436/0.3018, allocations: 3.381 MB / 469.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3018, allocations: 0 / 469.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006206/0.3024, allocations: 143.9 kB / 469.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001049/0.3035, allocations: 252.6 kB / 469.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.041e-05/0.3035, allocations: 12 kB / 469.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003126/0.3067, allocations: 2.672 MB / 472.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3067, allocations: 0 / 472.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003436/0.3101, allocations: 1.695 MB / 474.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/0.3113, allocations: 0.5249 MB / 474.7 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002254/0.3115, allocations: 16 kB / 474.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007652/0.3123, allocations: 83.91 kB / 474.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.3125, allocations: 80.47 kB / 474.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.465e-05/0.3126, allocations: 19.98 kB / 474.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.004488/0.317, allocations: 3.511 MB / 478.4 MB, free: 8.289 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3171, allocations: 0 / 478.4 MB, free: 8.289 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001028/0.3181, allocations: 359.5 kB / 478.8 MB, free: 7.938 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (bat1.battery.integrator.q,bat2.battery.integrator.q,bat3.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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 {(6,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000676/0.3188, allocations: 293.3 kB / 479.1 MB, free: 7.723 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002155/0.3209, allocations: 0.9749 MB / 480 MB, free: 6.734 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.321, allocations: 240 / 480 MB, free: 6.734 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.3222, allocations: 0.631 MB / 480.7 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.3234, allocations: 210.4 kB / 480.9 MB, free: 5.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008447/0.3319, allocations: 5.154 MB / 486 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001594/0.3335, allocations: 1.828 MB / 487.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008929/0.3344, allocations: 364.1 kB / 488.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003741/0.3348, allocations: 127.4 kB / 488.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3348, allocations: 0 / 488.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of Templates: time 0.04297/0.3778, allocations: 23.69 MB / 0.5 GB, free: 6.699 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1)