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.001122/0.001122, allocations: 103.2 kB / 16.45 MB, free: 6.445 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.001169/0.001169, allocations: 192.1 kB / 17.39 MB, free: 5.668 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.359/1.359, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04829/0.04829, allocations: 8.103 MB / 299.3 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 59.91 kB / 414.5 MB, free: 21.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1202, allocations: 51.51 MB / 466 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.006122/0.1264, allocations: 4.8 MB / 470.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002835/0.1293, allocations: 1.612 MB / 472.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002718/0.1296, allocations: 16 kB / 472.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.1307, allocations: 0.763 MB / 473.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000949/0.1317, allocations: 0.6458 MB / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002063/0.1338, allocations: 1.16 MB / 475 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00127/0.1351, allocations: 1.254 MB / 476.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005246/0.1356, allocations: 418.2 kB / 476.7 MB, free: 7.445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005434/0.1362, allocations: 0.5842 MB / 477.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009161/0.1371, allocations: 0.9077 MB / 478.1 MB, free: 5.949 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001526/0.1372, allocations: 128 kB / 478.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006348/0.1379, allocations: 355.8 kB / 478.6 MB, free: 5.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006742/0.1386, allocations: 0.9739 MB / 479.6 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009117/0.1395, allocations: 1.192 MB / 480.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002897/0.1424, allocations: 3.342 MB / 484.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1424, allocations: 0 / 484.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1424, allocations: 0 / 484.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.387e-05/0.1425, allocations: 0 / 484.1 MB, free: 15.95 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.007173/0.1497, allocations: 3.406 MB / 487.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.1497, allocations: 16.03 kB / 487.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003944/0.1501, allocations: 289.3 kB / 487.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00289/0.153, allocations: 2.183 MB / 490 MB, free: 9.926 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.1532, allocations: 220.1 kB / 490.2 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.1533, allocations: 64.38 kB / 490.3 MB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/0.1551, allocations: 1 MB / 491.3 MB, free: 8.535 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.1551, allocations: 3.984 kB / 491.3 MB, free: 8.531 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.498e-05/0.1552, allocations: 36 kB / 491.3 MB, free: 8.496 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.1552, allocations: 16 kB / 491.3 MB, free: 8.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.1566, allocations: 0.6806 MB / 492 MB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007067/0.1637, allocations: 4.808 MB / 496.8 MB, free: 2.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.1658, allocations: 1.374 MB / 498.2 MB, free: 1.348 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009379/0.1668, allocations: 0.5246 MB / 498.7 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001711/0.167, allocations: 89.67 kB / 498.8 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.936e-05/0.167, allocations: 55 kB / 498.9 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.625e-06/0.167, allocations: 0 / 498.9 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.004259/0.1713, allocations: 1.657 MB / 0.4888 GB, free: 14.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002801/0.1716, allocations: 0.5974 MB / 0.4894 GB, free: 14.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006001/0.1776, allocations: 4.877 MB / 0.4941 GB, free: 9.336 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001231/0.1777, allocations: 45.7 kB / 0.4942 GB, free: 9.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009936/0.1787, allocations: 1.131 MB / 0.4953 GB, free: 8.148 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002068/0.179, allocations: 216.8 kB / 0.4955 GB, free: 7.934 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.1792, allocations: 118.3 kB / 0.4956 GB, free: 7.812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.1793, allocations: 333.9 kB / 0.4959 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006834/0.18, allocations: 321.1 kB / 0.4962 GB, free: 7.168 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008446/0.1809, allocations: 0.5545 MB / 0.4968 GB, free: 6.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00521/0.1861, allocations: 1.673 MB / 0.4984 GB, free: 4.828 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1861, allocations: 0 / 0.4984 GB, free: 4.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003111/0.1892, allocations: 1.237 MB / 0.4996 GB, free: 3.578 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.1893, allocations: 8 kB / 0.4996 GB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.1893, allocations: 7.922 kB / 0.4996 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.1903, allocations: 260.5 kB / 0.4999 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006343/0.191, allocations: 167.8 kB / 0.5 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003479/0.1945, allocations: 2.691 MB / 0.5027 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001321/0.1958, allocations: 115.4 kB / 0.5028 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.952e-05/0.1959, allocations: 24 kB / 0.5028 GB, free: 176 kB / 382.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.2828/0.4787, allocations: 0.9463 MB / 0.5037 GB, free: 43.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001041/0.4797, allocations: 260.6 kB / 0.504 GB, free: 43.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003699/0.4834, allocations: 1.257 MB / 0.5052 GB, free: 43.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.4834, allocations: 9.906 kB / 0.5052 GB, free: 43.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.4835, allocations: 2.625 kB / 0.5052 GB, free: 43.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.4835, allocations: 2.766 kB / 0.5052 GB, free: 43.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006776/0.4903, allocations: 3.371 MB / 0.5085 GB, free: 42.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.4903, allocations: 5.016 kB / 0.5085 GB, free: 42.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000639/0.4909, allocations: 142.6 kB / 0.5087 GB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.4921, allocations: 258.7 kB / 0.5089 GB, free: 42.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.361e-05/0.4921, allocations: 13.38 kB / 0.5089 GB, free: 42.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003767/0.4959, allocations: 2.662 MB / 0.5115 GB, free: 40.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.4959, allocations: 2.188 kB / 0.5115 GB, free: 40.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004232/0.5002, allocations: 1.691 MB / 0.5132 GB, free: 40.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/0.5016, allocations: 0.524 MB / 0.5137 GB, free: 39.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002774/0.5019, allocations: 19.02 kB / 0.5137 GB, free: 39.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008818/0.5028, allocations: 84.25 kB / 0.5138 GB, free: 39.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002675/0.5031, allocations: 79.55 kB / 0.5139 GB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.185e-05/0.5031, allocations: 20.02 kB / 0.5139 GB, free: 39.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.006266/0.5094, allocations: 3.514 MB / 0.5173 GB, free: 38.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5094, allocations: 1.781 kB / 0.5173 GB, free: 38.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001858/0.5113, allocations: 362.1 kB / 0.5177 GB, free: 38.49 MB / 382.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.0007471/0.512, allocations: 281.8 kB / 0.5179 GB, free: 38.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002262/0.5143, allocations: 0.9804 MB / 0.5189 GB, free: 37.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.381e-06/0.5143, allocations: 240 / 0.5189 GB, free: 37.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001171/0.5155, allocations: 0.6295 MB / 0.5195 GB, free: 37.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.5168, allocations: 211.6 kB / 0.5197 GB, free: 37.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007846/0.5246, allocations: 5.171 MB / 0.5247 GB, free: 35.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.5259, allocations: 1.819 MB / 0.5265 GB, free: 34.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000868/0.5268, allocations: 369.3 kB / 0.5269 GB, free: 34.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003215/0.5271, allocations: 123.1 kB / 0.527 GB, free: 34.17 MB / 382.1 MB Notification: Performance of SimCode: time 1.663e-06/0.5272, allocations: 0 / 0.527 GB, free: 34.17 MB / 382.1 MB Notification: Performance of Templates: time 0.03363/0.5608, allocations: 24.21 MB / 0.5506 GB, free: 10.14 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)