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.003583/0.003583, allocations: 93.52 kB / 15.91 MB, free: 6.281 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.0008977/0.0008977, allocations: 202.3 kB / 16.84 MB, free: 6.195 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.196/1.196, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1476/0.1476, allocations: 8.075 MB / 298.7 MB, free: 2.062 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001063, allocations: 68.09 kB / 361 MB, free: 13.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08879/0.08987, allocations: 51.51 MB / 412.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.005671/0.09558, allocations: 4.793 MB / 417.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002621/0.09823, allocations: 1.604 MB / 418.9 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005128/0.09877, allocations: 12 kB / 419 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001227/0.1, allocations: 0.7209 MB / 419.7 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001052/0.1011, allocations: 0.6113 MB / 420.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001916/0.103, allocations: 1.098 MB / 421.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001389/0.1044, allocations: 1.199 MB / 422.6 MB, free: 56 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005404/0.105, allocations: 353.9 kB / 422.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000679/0.1057, allocations: 0.5061 MB / 423.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.1067, allocations: 0.8881 MB / 424.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001369/0.1068, allocations: 72 kB / 424.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005335/0.1074, allocations: 295.8 kB / 424.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005713/0.108, allocations: 0.9193 MB / 425.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007756/0.1087, allocations: 1.098 MB / 426.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00217/0.1109, allocations: 3.236 MB / 429.9 MB, free: 8.664 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1109, allocations: 4 kB / 429.9 MB, free: 8.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.1109, allocations: 0 / 429.9 MB, free: 8.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.105e-05/0.111, allocations: 0 / 429.9 MB, free: 8.66 MB / 366.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.005855/0.1168, allocations: 3.399 MB / 433.3 MB, free: 5.188 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.1169, allocations: 12.03 kB / 433.4 MB, free: 5.176 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003615/0.1173, allocations: 293.2 kB / 433.6 MB, free: 4.887 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002516/0.1198, allocations: 2.179 MB / 435.8 MB, free: 2.648 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001609/0.1199, allocations: 224.1 kB / 436 MB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.9e-05/0.1201, allocations: 64.38 kB / 436.1 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.1217, allocations: 1 MB / 437.1 MB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.1217, allocations: 0 / 437.1 MB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.954e-05/0.1218, allocations: 36 kB / 437.1 MB, free: 1.219 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.1218, allocations: 19.98 kB / 437.2 MB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.1231, allocations: 0.6923 MB / 437.8 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1613/0.2844, allocations: 4.83 MB / 442.7 MB, free: 54.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/0.2862, allocations: 1.367 MB / 444 MB, free: 53.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008425/0.2871, allocations: 0.5297 MB / 444.6 MB, free: 53.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001296/0.2872, allocations: 88.41 kB / 444.7 MB, free: 53.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.2872, allocations: 48.73 kB / 444.7 MB, free: 53.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.204e-06/0.2872, allocations: 0 / 444.7 MB, free: 53.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.003729/0.291, allocations: 1.663 MB / 446.4 MB, free: 52.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.2911, allocations: 0.5903 MB / 447 MB, free: 51.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004427/0.2955, allocations: 4.885 MB / 451.8 MB, free: 50.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.85e-05/0.2956, allocations: 43.39 kB / 451.9 MB, free: 50.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006982/0.2963, allocations: 1.138 MB / 453 MB, free: 49.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.2964, allocations: 209.6 kB / 453.2 MB, free: 49.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.2966, allocations: 123.3 kB / 453.4 MB, free: 49.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.007e-05/0.2967, allocations: 326.8 kB / 453.7 MB, free: 48.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006117/0.2973, allocations: 318.5 kB / 454 MB, free: 48.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000701/0.298, allocations: 0.5514 MB / 454.5 MB, free: 48.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004864/0.3029, allocations: 1.67 MB / 456.2 MB, free: 47.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.3029, allocations: 2.875 kB / 456.2 MB, free: 47.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002706/0.3056, allocations: 1.242 MB / 457.4 MB, free: 47.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.3056, allocations: 6.188 kB / 457.5 MB, free: 47.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.3057, allocations: 10.45 kB / 457.5 MB, free: 47.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.3067, allocations: 253.2 kB / 457.7 MB, free: 47.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006156/0.3073, allocations: 163.5 kB / 457.9 MB, free: 47.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002711/0.31, allocations: 2.486 MB / 460.4 MB, free: 45.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.3111, allocations: 110.9 kB / 460.5 MB, free: 45.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.188e-05/0.3112, allocations: 26.3 kB / 460.5 MB, free: 45.43 MB / 366.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.001186/0.3124, allocations: 0.9388 MB / 461.4 MB, free: 45.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005038/0.3129, allocations: 256.5 kB / 461.7 MB, free: 44.9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002641/0.3156, allocations: 1.271 MB / 463 MB, free: 44.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3156, allocations: 9.844 kB / 463 MB, free: 44.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3156, allocations: 0 / 463 MB, free: 44.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.3156, allocations: 6.094 kB / 463 MB, free: 44.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005521/0.3211, allocations: 3.372 MB / 466.3 MB, free: 42.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.3211, allocations: 3.25 kB / 466.3 MB, free: 42.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000566/0.3217, allocations: 143.9 kB / 466.5 MB, free: 42.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009925/0.3227, allocations: 257.6 kB / 466.7 MB, free: 42.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.447e-05/0.3228, allocations: 21.88 kB / 466.8 MB, free: 42.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002515/0.3253, allocations: 2.444 MB / 469.2 MB, free: 40.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3253, allocations: 3.75 kB / 469.2 MB, free: 40.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003304/0.3286, allocations: 1.689 MB / 470.9 MB, free: 40.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/0.3297, allocations: 0.533 MB / 471.4 MB, free: 39.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005754/0.3303, allocations: 21.03 kB / 471.4 MB, free: 39.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/0.3315, allocations: 82.94 kB / 471.5 MB, free: 39.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/0.3317, allocations: 82.45 kB / 471.6 MB, free: 39.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.765e-05/0.3318, allocations: 16.03 kB / 471.6 MB, free: 39.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.006275/0.3381, allocations: 3.52 MB / 475.1 MB, free: 38.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.3381, allocations: 0 / 475.1 MB, free: 38.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001689/0.3398, allocations: 348.3 kB / 475.5 MB, free: 38.61 MB / 366.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.0007681/0.3406, allocations: 301.5 kB / 475.8 MB, free: 38.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002218/0.3428, allocations: 0.9695 MB / 476.7 MB, free: 38.06 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/0.3428, allocations: 2.359 kB / 476.7 MB, free: 38.06 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.3441, allocations: 0.6177 MB / 477.4 MB, free: 37.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.346, allocations: 207.1 kB / 477.6 MB, free: 37.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009383/0.3554, allocations: 5.853 MB / 483.4 MB, free: 34.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001991/0.3574, allocations: 1.818 MB / 485.2 MB, free: 33.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001071/0.3585, allocations: 359.4 kB / 485.6 MB, free: 33.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006089/0.3591, allocations: 127.6 kB / 485.7 MB, free: 33.85 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3591, allocations: 0 / 485.7 MB, free: 33.85 MB / 366.1 MB Notification: Performance of Templates: time 0.03912/0.3983, allocations: 24.78 MB / 0.4985 GB, free: 18.11 MB / 366.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)