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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.001232/0.001232, allocations: 104.6 kB / 16.03 MB, free: 6.277 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.001135/0.001135, allocations: 196 kB / 16.95 MB, free: 6.098 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.318/1.318, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05218/0.05218, allocations: 8.097 MB / 298.9 MB, free: 6.891 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002157, allocations: 67.91 kB / 361.2 MB, free: 8.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2663, allocations: 51.51 MB / 412.7 MB, free: 25.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.005607/0.2719, allocations: 4.799 MB / 417.5 MB, free: 21.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002677/0.2746, allocations: 1.58 MB / 419.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004486/0.2751, allocations: 12 kB / 419.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.2763, allocations: 0.7227 MB / 419.9 MB, free: 18.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008507/0.2772, allocations: 0.6035 MB / 420.5 MB, free: 18.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001795/0.2791, allocations: 1.07 MB / 421.5 MB, free: 17.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001272/0.2803, allocations: 1.254 MB / 422.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004461/0.2808, allocations: 406.2 kB / 423.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003935/0.2812, allocations: 0.5842 MB / 423.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006298/0.2818, allocations: 0.9467 MB / 424.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.282, allocations: 128 kB / 424.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000515/0.2825, allocations: 363.8 kB / 425.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004636/0.2829, allocations: 0.9818 MB / 426.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006736/0.2836, allocations: 1.2 MB / 427.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001968/0.2856, allocations: 3.303 MB / 430.7 MB, free: 7.914 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2856, allocations: 0 / 430.7 MB, free: 7.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2856, allocations: 0 / 430.7 MB, free: 7.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.769e-05/0.2857, allocations: 4 kB / 430.7 MB, free: 7.91 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.005381/0.2911, allocations: 3.403 MB / 434.1 MB, free: 4.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.2911, allocations: 16.02 kB / 434.1 MB, free: 4.418 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003072/0.2914, allocations: 289.3 kB / 434.4 MB, free: 4.133 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002071/0.2935, allocations: 2.187 MB / 436.6 MB, free: 1.887 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.2936, allocations: 224.1 kB / 436.8 MB, free: 1.629 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.949e-05/0.2937, allocations: 60.38 kB / 436.8 MB, free: 1.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.2952, allocations: 1 MB / 437.8 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.2952, allocations: 0 / 437.8 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.937e-05/0.2953, allocations: 35.94 kB / 437.9 MB, free: 472 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.2953, allocations: 16 kB / 437.9 MB, free: 456 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.2965, allocations: 0.6884 MB / 438.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006495/0.303, allocations: 4.835 MB / 443.4 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002232/0.3053, allocations: 1.383 MB / 444.8 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000982/0.3063, allocations: 0.5139 MB / 445.3 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001604/0.3065, allocations: 97.66 kB / 445.4 MB, free: 8.648 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/0.3065, allocations: 59.05 kB / 445.5 MB, free: 8.582 MB / 318.1 MB Notification: Performance of pre-optimization done (n=64): time 2.033e-06/0.3065, allocations: 0 / 445.5 MB, free: 8.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.004583/0.3111, allocations: 1.645 MB / 447.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002398/0.3114, allocations: 0.6012 MB / 447.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005703/0.3171, allocations: 4.877 MB / 452.6 MB, free: 1.277 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001449/0.3172, allocations: 41.7 kB / 452.6 MB, free: 1.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009323/0.3182, allocations: 1.131 MB / 453.8 MB, free: 92 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001866/0.3184, allocations: 216.8 kB / 454 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002154/0.3186, allocations: 122.2 kB / 454.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.3187, allocations: 341.8 kB / 454.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007344/0.3195, allocations: 317.2 kB / 454.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008601/0.3203, allocations: 0.5545 MB / 455.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005598/0.3259, allocations: 1.665 MB / 457 MB, free: 12.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.326, allocations: 4 kB / 457 MB, free: 12.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003485/0.3295, allocations: 1.24 MB / 458.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.874e-05/0.3295, allocations: 6.5 kB / 458.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.3295, allocations: 4 kB / 458.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.3307, allocations: 264.5 kB / 458.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007161/0.3314, allocations: 163.8 kB / 458.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003724/0.3352, allocations: 2.71 MB / 461.3 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/0.3371, allocations: 103.5 kB / 461.4 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.42e-05/0.3372, allocations: 20 kB / 461.5 MB, free: 8.109 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.002164/0.3394, allocations: 0.9393 MB / 462.4 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008308/0.3402, allocations: 260.6 kB / 462.7 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003655/0.3439, allocations: 1.271 MB / 463.9 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.3439, allocations: 8 kB / 463.9 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3439, allocations: 4 kB / 463.9 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.3439, allocations: 3.984 kB / 463.9 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007208/0.3511, allocations: 3.381 MB / 467.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.3512, allocations: 0 / 467.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006284/0.3519, allocations: 143.9 kB / 467.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001063/0.3529, allocations: 260.5 kB / 467.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.213e-05/0.353, allocations: 15.98 kB / 467.7 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003478/0.3565, allocations: 2.67 MB / 470.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3565, allocations: 0 / 470.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004614/0.3611, allocations: 1.698 MB / 472.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/0.3624, allocations: 0.5327 MB / 472.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002616/0.3627, allocations: 12 kB / 472.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000801/0.3635, allocations: 88.05 kB / 472.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.3637, allocations: 80.45 kB / 472.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.425e-05/0.3638, allocations: 16 kB / 472.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.004654/0.3684, allocations: 3.519 MB / 476.3 MB, free: 8.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3685, allocations: 0 / 476.3 MB, free: 8.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001233/0.3697, allocations: 355.5 kB / 476.7 MB, free: 8.574 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.0008002/0.3705, allocations: 291.3 kB / 477 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002637/0.3732, allocations: 0.9985 MB / 478 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/0.3732, allocations: 8.359 kB / 478 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.3744, allocations: 0.6228 MB / 478.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.3758, allocations: 210.3 kB / 478.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009251/0.3851, allocations: 5.846 MB / 484.7 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001422/0.3866, allocations: 1.824 MB / 486.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008815/0.3874, allocations: 364.1 kB / 486.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003563/0.3878, allocations: 123.4 kB / 487 MB, free: 14.27 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3878, allocations: 0 / 487 MB, free: 14.27 MB / 366.1 MB Notification: Performance of Templates: time 0.04816/0.436, allocations: 25.87 MB / 0.5008 GB, free: 4.445 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)