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.001187/0.001187, allocations: 104.5 kB / 17.13 MB, free: 5.906 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.001193/0.001193, allocations: 198.1 kB / 18.07 MB, free: 4.988 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.327/1.327, allocations: 222.9 MB / 241.8 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04728/0.04728, allocations: 8.09 MB / 300 MB, free: 6.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002343/0.002343, allocations: 63.91 kB / 415.2 MB, free: 21.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.107, allocations: 51.51 MB / 466.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.006055/0.1131, allocations: 4.796 MB / 471.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002481/0.1156, allocations: 1.615 MB / 473.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002339/0.1159, allocations: 12 kB / 473.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001094/0.117, allocations: 0.7707 MB / 473.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008725/0.1179, allocations: 0.6498 MB / 474.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001981/0.1199, allocations: 1.156 MB / 475.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.1211, allocations: 1.266 MB / 477 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005128/0.1217, allocations: 410.2 kB / 477.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000543/0.1222, allocations: 0.5842 MB / 477.9 MB, free: 6.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009623/0.1232, allocations: 0.9038 MB / 478.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001708/0.1234, allocations: 128 kB / 479 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006124/0.124, allocations: 359.8 kB / 479.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006797/0.1247, allocations: 0.97 MB / 480.3 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008981/0.1256, allocations: 1.192 MB / 481.5 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002869/0.1284, allocations: 3.363 MB / 484.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1285, allocations: 0 / 484.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1285, allocations: 4 kB / 484.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.801e-05/0.1285, allocations: 0 / 484.8 MB, free: 15.9 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.006479/0.135, allocations: 3.503 MB / 488.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.1351, allocations: 15.89 kB / 488.4 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004513/0.1355, allocations: 306.9 kB / 488.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002746/0.1383, allocations: 2.205 MB / 490.9 MB, free: 9.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/0.1385, allocations: 224.1 kB / 491.1 MB, free: 9.492 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.1386, allocations: 60.38 kB / 491.1 MB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.1403, allocations: 1.008 MB / 492.2 MB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.1403, allocations: 0 / 492.2 MB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.458e-05/0.1404, allocations: 35.98 kB / 492.2 MB, free: 8.316 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.1404, allocations: 16 kB / 492.2 MB, free: 8.301 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.1418, allocations: 0.6806 MB / 492.9 MB, free: 7.617 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007102/0.1489, allocations: 4.828 MB / 497.7 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/0.1512, allocations: 1.365 MB / 499.1 MB, free: 1.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009969/0.1522, allocations: 0.5221 MB / 499.6 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001567/0.1523, allocations: 101.6 kB / 499.7 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.24e-05/0.1524, allocations: 47.06 kB / 499.7 MB, free: 472 kB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.284e-06/0.1524, allocations: 0 / 499.7 MB, free: 472 kB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.004511/0.1569, allocations: 1.67 MB / 0.4897 GB, free: 14.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002062/0.1571, allocations: 0.5935 MB / 0.4902 GB, free: 14.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005637/0.1628, allocations: 4.881 MB / 0.495 GB, free: 9.129 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.957e-05/0.1629, allocations: 37.7 kB / 0.495 GB, free: 9.086 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.164, allocations: 1.136 MB / 0.4962 GB, free: 7.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002158/0.1642, allocations: 229.9 kB / 0.4964 GB, free: 7.723 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002317/0.1645, allocations: 122.3 kB / 0.4965 GB, free: 7.598 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1646, allocations: 341.9 kB / 0.4968 GB, free: 7.258 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007127/0.1653, allocations: 309.2 kB / 0.4971 GB, free: 6.957 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008685/0.1662, allocations: 0.5584 MB / 0.4977 GB, free: 6.309 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00559/0.1718, allocations: 1.669 MB / 0.4993 GB, free: 4.617 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1718, allocations: 0 / 0.4993 GB, free: 4.617 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00332/0.1752, allocations: 1.254 MB / 0.5005 GB, free: 3.352 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.1752, allocations: 8 kB / 0.5005 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.1752, allocations: 0 / 0.5005 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/0.1764, allocations: 264.4 kB / 0.5008 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000691/0.1771, allocations: 159.8 kB / 0.5009 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003589/0.1807, allocations: 2.714 MB / 0.5036 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2008/0.3814, allocations: 106.5 kB / 0.5037 GB, free: 43.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001916/0.3817, allocations: 24.42 kB / 0.5037 GB, free: 43.04 MB / 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.001938/0.3836, allocations: 0.9328 MB / 0.5046 GB, free: 42.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005941/0.3842, allocations: 275.5 kB / 0.5049 GB, free: 42.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003167/0.3874, allocations: 1.261 MB / 0.5061 GB, free: 42.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.3874, allocations: 5.438 kB / 0.5061 GB, free: 42.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3874, allocations: 0.5625 kB / 0.5061 GB, free: 42.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009198/0.3884, allocations: 0.5396 MB / 0.5066 GB, free: 42.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002404/0.3886, allocations: 16.7 kB / 0.5067 GB, free: 42.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007654/0.3894, allocations: 88.45 kB / 0.5067 GB, free: 42.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/0.3896, allocations: 86.92 kB / 0.5068 GB, free: 42.69 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003317/0.3929, allocations: 1.205 MB / 0.508 GB, free: 42.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002562/0.3955, allocations: 1.499 MB / 0.5095 GB, free: 42.16 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006986/0.3962, allocations: 356.8 kB / 0.5098 GB, free: 42.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005266/0.4015, allocations: 3.515 MB / 0.5132 GB, free: 40.99 MB / 382.1 MB Notification: Performance of Backend: time 1.673e-06/0.4015, allocations: 0 / 0.5132 GB, free: 40.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003698/0.4052, allocations: 1.367 MB / 0.5146 GB, free: 40.52 MB / 382.1 MB Notification: Performance of SimCode: time 0.006324/0.4116, allocations: 5.228 MB / 0.5197 GB, free: 38 MB / 382.1 MB Notification: Performance of Templates: time 0.0376/0.4492, allocations: 25.89 MB / 0.545 GB, free: 16.45 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)