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.0009511/0.0009508, allocations: 102.8 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 181.7 kB / 16.97 MB, free: 6.879 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.596/1.596, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1831/0.1831, allocations: 8.091 MB / 300.2 MB, free: 2.867 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.0003863, allocations: 12 kB / 363.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1267, allocations: 52.52 MB / 416 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.006549/0.1333, allocations: 4.365 MB / 420.4 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003652/0.137, allocations: 1.581 MB / 422 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001192/0.1382, allocations: 12 kB / 422 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001925/0.1402, allocations: 0.7248 MB / 422.7 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001972/0.1422, allocations: 0.6034 MB / 423.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2708/0.413, allocations: 1.071 MB / 424.4 MB, free: 0 / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002204/0.4152, allocations: 1.196 MB / 425.6 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000573/0.4158, allocations: 352.4 kB / 425.9 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005762/0.4164, allocations: 488.1 kB / 426.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009007/0.4173, allocations: 0.8483 MB / 427.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.4174, allocations: 55.78 kB / 427.3 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007628/0.4182, allocations: 279 kB / 427.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005746/0.4188, allocations: 0.9052 MB / 428.5 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007441/0.4196, allocations: 1.088 MB / 429.6 MB, free: 34.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002544/0.4221, allocations: 3.154 MB / 432.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4221, allocations: 5.938 kB / 432.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4221, allocations: 0 / 432.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.766e-05/0.4222, allocations: 0 / 432.7 MB, free: 34.41 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.006483/0.4287, allocations: 2.956 MB / 435.7 MB, free: 32.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.4287, allocations: 9.781 kB / 435.7 MB, free: 32.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003965/0.4291, allocations: 293.2 kB / 436 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002566/0.4317, allocations: 2.179 MB / 438.1 MB, free: 32.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001982/0.4319, allocations: 228.2 kB / 438.4 MB, free: 31.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.432, allocations: 64.19 kB / 438.4 MB, free: 31.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001825/0.4339, allocations: 1.024 MB / 439.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.4339, allocations: 0 / 439.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.318e-05/0.434, allocations: 35.34 kB / 439.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.434, allocations: 15.12 kB / 439.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.4353, allocations: 0.7179 MB / 440.2 MB, free: 31.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006829/0.4421, allocations: 4.907 MB / 445.1 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002091/0.4443, allocations: 1.42 MB / 446.5 MB, free: 28.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009418/0.4452, allocations: 0.5424 MB / 447.1 MB, free: 28.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001442/0.4454, allocations: 101 kB / 447.2 MB, free: 28.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.445e-05/0.4454, allocations: 52.5 kB / 447.2 MB, free: 28.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 3.146e-06/0.4454, allocations: 0 / 447.2 MB, free: 28.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.004482/0.4499, allocations: 1.721 MB / 449 MB, free: 27.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001754/0.4501, allocations: 0.5943 MB / 449.6 MB, free: 27.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00641/0.4565, allocations: 4.878 MB / 454.4 MB, free: 25.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001438/0.4567, allocations: 43.64 kB / 454.5 MB, free: 25.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000911/0.4576, allocations: 1.129 MB / 455.6 MB, free: 24.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.4578, allocations: 221.2 kB / 455.8 MB, free: 24.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.381e-05/0.4579, allocations: 61.52 kB / 455.9 MB, free: 24.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.831e-05/0.458, allocations: 335 kB / 456.2 MB, free: 24.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007598/0.4588, allocations: 341.1 kB / 456.5 MB, free: 24.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008386/0.4596, allocations: 0.5708 MB / 457.1 MB, free: 23.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005517/0.4652, allocations: 1.762 MB / 458.9 MB, free: 23.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.4652, allocations: 1.375 kB / 458.9 MB, free: 23.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003775/0.469, allocations: 1.281 MB / 460.2 MB, free: 22.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.469, allocations: 9.844 kB / 460.2 MB, free: 22.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.469, allocations: 2.25 kB / 460.2 MB, free: 22.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.4702, allocations: 260 kB / 460.4 MB, free: 22.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007087/0.4709, allocations: 186.3 kB / 460.6 MB, free: 22.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003609/0.4745, allocations: 2.48 MB / 463.1 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002139/0.4767, allocations: 132 kB / 463.2 MB, free: 20.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-05/0.4768, allocations: 27.8 kB / 463.2 MB, free: 20.66 MB / 350.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.002121/0.4789, allocations: 0.9402 MB / 464.2 MB, free: 20.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008666/0.4798, allocations: 261.5 kB / 464.4 MB, free: 20.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004495/0.4843, allocations: 1.307 MB / 465.7 MB, free: 19.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.568e-05/0.4843, allocations: 6.438 kB / 465.7 MB, free: 19.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.4844, allocations: 0 / 465.7 MB, free: 19.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-05/0.4844, allocations: 4.484 kB / 465.8 MB, free: 19.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01219/0.4966, allocations: 3.431 MB / 469.2 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.978e-06/0.4966, allocations: 1.125 kB / 469.2 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.4977, allocations: 157.4 kB / 469.3 MB, free: 18.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002022/0.4998, allocations: 254.3 kB / 469.6 MB, free: 18.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/0.5, allocations: 20.84 kB / 469.6 MB, free: 18.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004644/0.5046, allocations: 2.44 MB / 472 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.5047, allocations: 1.344 kB / 472 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007513/0.5122, allocations: 1.754 MB / 473.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002491/0.5147, allocations: 0.5293 MB / 474.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001223/0.516, allocations: 19.31 kB / 474.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00252/0.5186, allocations: 115 kB / 474.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004481/0.5191, allocations: 85.92 kB / 474.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001131/0.5192, allocations: 18.97 kB / 474.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.01313/0.5324, allocations: 3.516 MB / 478.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.22e-07/0.5324, allocations: 0 / 478.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003079/0.5355, allocations: 349.5 kB / 478.4 MB, free: 13.81 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.001211/0.5367, allocations: 290.1 kB / 478.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004212/0.541, allocations: 1.015 MB / 479.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/0.541, allocations: 3.297 kB / 479.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0024/0.5434, allocations: 0.6295 MB / 480.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004392/0.5478, allocations: 211.2 kB / 480.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01806/0.5659, allocations: 5.887 MB / 486.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003526/0.5695, allocations: 1.823 MB / 488.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002171/0.5717, allocations: 363.6 kB / 488.6 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009065/0.5727, allocations: 116.9 kB / 488.7 MB, free: 6.969 MB / 350.1 MB Notification: Performance of SimCode: time 1.513e-06/0.5727, allocations: 3.938 kB / 488.7 MB, free: 6.965 MB / 350.1 MB Notification: Performance of Templates: time 0.04858/0.6213, allocations: 24.15 MB / 0.5009 GB, free: 4 kB / 366.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: