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.001137/0.001137, allocations: 104.7 kB / 16.98 MB, free: 6.137 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.00115/0.00115, allocations: 191.5 kB / 17.91 MB, free: 5.234 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.364/1.364, allocations: 222.9 MB / 241.6 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04737/0.04737, allocations: 8.1 MB / 299.9 MB, free: 6.723 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001446, allocations: 67.89 kB / 362.4 MB, free: 8.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2214, allocations: 51.51 MB / 413.9 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.005189/0.2267, allocations: 4.78 MB / 418.7 MB, free: 20.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00254/0.2292, allocations: 1.623 MB / 420.3 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007206/0.23, allocations: 16 kB / 420.3 MB, free: 19.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001286/0.2313, allocations: 0.761 MB / 421.1 MB, free: 18.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001243/0.2326, allocations: 0.6458 MB / 421.8 MB, free: 17.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001955/0.2346, allocations: 1.151 MB / 422.9 MB, free: 16.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.2359, allocations: 1.25 MB / 424.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000574/0.2365, allocations: 406.2 kB / 424.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007225/0.2372, allocations: 0.5842 MB / 425.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001034/0.2383, allocations: 0.9076 MB / 426 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002728/0.2386, allocations: 128 kB / 426.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007588/0.2393, allocations: 359.8 kB / 426.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005692/0.2399, allocations: 0.97 MB / 427.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.2409, allocations: 1.196 MB / 428.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002573/0.2435, allocations: 3.31 MB / 432 MB, free: 7.453 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.2435, allocations: 0 / 432 MB, free: 7.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.2436, allocations: 0 / 432 MB, free: 7.453 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000101/0.2437, allocations: 0 / 432 MB, free: 7.453 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.006944/0.2506, allocations: 3.399 MB / 435.4 MB, free: 3.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.2507, allocations: 16.02 kB / 435.4 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000386/0.2511, allocations: 289.3 kB / 435.7 MB, free: 3.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002544/0.2536, allocations: 2.183 MB / 437.9 MB, free: 1.438 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/0.2538, allocations: 224.1 kB / 438.1 MB, free: 1.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.775e-05/0.2539, allocations: 60.38 kB / 438.2 MB, free: 1.121 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.2554, allocations: 1.014 MB / 439.2 MB, free: 36 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.2554, allocations: 3.984 kB / 439.2 MB, free: 32 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.697e-05/0.2555, allocations: 28 kB / 439.2 MB, free: 4 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.153e-05/0.2555, allocations: 16.05 kB / 439.2 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.257, allocations: 0.6961 MB / 439.9 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008019/0.2651, allocations: 4.831 MB / 444.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002458/0.2676, allocations: 1.375 MB / 446.1 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.2687, allocations: 0.5204 MB / 446.6 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001849/0.2689, allocations: 93.66 kB / 446.7 MB, free: 8.191 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.927e-05/0.2689, allocations: 55.05 kB / 446.8 MB, free: 8.129 MB / 318.1 MB Notification: Performance of pre-optimization done (n=64): time 3.145e-06/0.2689, allocations: 4 kB / 446.8 MB, free: 8.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.005283/0.2742, allocations: 1.649 MB / 448.4 MB, free: 6.445 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002757/0.2745, allocations: 0.5974 MB / 449 MB, free: 5.707 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007615/0.2821, allocations: 4.877 MB / 453.9 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001844/0.2824, allocations: 41.7 kB / 454 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00119/0.2836, allocations: 1.131 MB / 455.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003014/0.2839, allocations: 216.8 kB / 455.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002502/0.2842, allocations: 122.2 kB / 455.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2843, allocations: 329.9 kB / 455.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007813/0.2851, allocations: 325.1 kB / 456.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009543/0.2861, allocations: 0.5505 MB / 456.6 MB, free: 14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006136/0.2922, allocations: 1.677 MB / 458.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.514e-05/0.2923, allocations: 4 kB / 458.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003695/0.296, allocations: 1.244 MB / 459.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.2961, allocations: 4 kB / 459.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.2961, allocations: 4 kB / 459.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.2973, allocations: 256.6 kB / 459.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007255/0.298, allocations: 163.8 kB / 459.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003726/0.3018, allocations: 2.71 MB / 462.7 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.3032, allocations: 107.5 kB / 462.8 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.825e-05/0.3032, allocations: 20 kB / 462.8 MB, free: 7.645 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.001455/0.3047, allocations: 0.9359 MB / 463.7 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006744/0.3054, allocations: 264.6 kB / 464 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003249/0.3087, allocations: 1.275 MB / 465.3 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.3087, allocations: 4 kB / 465.3 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.3087, allocations: 4.109 kB / 465.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.3087, allocations: 7.922 kB / 465.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007182/0.3159, allocations: 3.377 MB / 468.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.3159, allocations: 0 / 468.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006696/0.3166, allocations: 139.8 kB / 468.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001199/0.3178, allocations: 256.7 kB / 469 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.054e-05/0.3179, allocations: 15.98 kB / 469 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003588/0.3215, allocations: 2.672 MB / 471.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.3216, allocations: 112 / 471.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00439/0.326, allocations: 1.69 MB / 473.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001379/0.3274, allocations: 0.5366 MB / 473.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006688/0.3281, allocations: 19.94 kB / 474 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.3293, allocations: 80.05 kB / 474 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000256/0.3296, allocations: 84.39 kB / 474.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.935e-05/0.3296, allocations: 20 kB / 474.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.006746/0.3364, allocations: 3.519 MB / 477.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.3364, allocations: 0 / 477.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002067/0.3385, allocations: 355.5 kB / 478 MB, free: 8.105 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.0009357/0.3394, allocations: 283.5 kB / 478.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002997/0.3425, allocations: 1.01 MB / 479.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.3425, allocations: 240 / 479.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001482/0.344, allocations: 0.6232 MB / 479.9 MB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002424/0.3464, allocations: 212.7 kB / 480.1 MB, free: 6.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.3576, allocations: 5.387 MB / 485.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002308/0.36, allocations: 1.824 MB / 487.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007814/0.3608, allocations: 131.4 kB / 487.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3608, allocations: 4 kB / 487.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of Templates: time 0.2473/0.6081, allocations: 38.61 MB / 0.5138 GB, free: 89.57 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 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1)