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.00157/0.00157, allocations: 110.3 kB / 17.14 MB, free: 5.918 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.001789/0.001789, allocations: 196.2 kB / 18.07 MB, free: 4.996 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.319/1.319, allocations: 222.9 MB / 241.8 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04617/0.04617, allocations: 8.109 MB / 300 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 63.91 kB / 415.2 MB, free: 21.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09254/0.09374, allocations: 51.52 MB / 466.7 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.007377/0.1012, allocations: 4.799 MB / 471.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003081/0.1043, allocations: 1.615 MB / 473.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002968/0.1046, allocations: 12 kB / 473.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001236/0.1058, allocations: 0.7668 MB / 473.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001036/0.1069, allocations: 0.6459 MB / 474.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002205/0.1092, allocations: 1.163 MB / 475.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.1104, allocations: 1.254 MB / 476.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005742/0.111, allocations: 406.2 kB / 477.3 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005357/0.1116, allocations: 0.5842 MB / 477.9 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009738/0.1126, allocations: 0.9116 MB / 478.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001895/0.1128, allocations: 128 kB / 479 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006306/0.1134, allocations: 355.8 kB / 479.3 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007059/0.1141, allocations: 0.97 MB / 480.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000953/0.1151, allocations: 1.2 MB / 481.5 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002878/0.118, allocations: 3.342 MB / 484.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.118, allocations: 0 / 484.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.118, allocations: 0 / 484.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.752e-05/0.118, allocations: 0 / 484.8 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.006974/0.125, allocations: 3.406 MB / 488.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.125, allocations: 11.89 kB / 488.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003902/0.1254, allocations: 293.3 kB / 488.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003197/0.1286, allocations: 2.183 MB / 490.7 MB, free: 9.926 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001931/0.1289, allocations: 220.1 kB / 490.9 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.129, allocations: 64.38 kB / 491 MB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00176/0.1307, allocations: 1 MB / 492 MB, free: 8.535 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.1308, allocations: 0 / 492 MB, free: 8.535 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.102e-05/0.1309, allocations: 31.98 kB / 492 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.448e-05/0.1309, allocations: 23.98 kB / 492 MB, free: 8.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.1323, allocations: 0.6884 MB / 492.7 MB, free: 7.789 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006967/0.1393, allocations: 4.808 MB / 497.5 MB, free: 2.832 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/0.1416, allocations: 1.367 MB / 498.9 MB, free: 1.348 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009941/0.1426, allocations: 0.5206 MB / 499.4 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001707/0.1428, allocations: 93.67 kB / 499.5 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.978e-05/0.1428, allocations: 51 kB / 499.6 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.615e-06/0.1428, allocations: 8 kB / 499.6 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.004766/0.1476, allocations: 1.653 MB / 0.4895 GB, free: 14.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002678/0.1479, allocations: 0.5896 MB / 0.4901 GB, free: 14.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006494/0.1544, allocations: 4.885 MB / 0.4948 GB, free: 9.336 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001408/0.1546, allocations: 45.7 kB / 0.4949 GB, free: 9.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/0.1556, allocations: 1.128 MB / 0.496 GB, free: 8.152 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002072/0.1558, allocations: 228.7 kB / 0.4962 GB, free: 7.926 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002163/0.1561, allocations: 118.3 kB / 0.4963 GB, free: 7.805 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1562, allocations: 333.8 kB / 0.4966 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007216/0.1569, allocations: 317.2 kB / 0.4969 GB, free: 7.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000902/0.1578, allocations: 0.5506 MB / 0.4975 GB, free: 6.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005691/0.1635, allocations: 1.677 MB / 0.4991 GB, free: 4.824 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.1636, allocations: 0 / 0.4991 GB, free: 4.824 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003397/0.167, allocations: 1.24 MB / 0.5003 GB, free: 3.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.167, allocations: 4 kB / 0.5003 GB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.167, allocations: 8 kB / 0.5003 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/0.1682, allocations: 252.5 kB / 0.5006 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007081/0.1689, allocations: 167.8 kB / 0.5007 GB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003618/0.1725, allocations: 2.698 MB / 0.5034 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00135/0.1739, allocations: 107.4 kB / 0.5035 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.188e-05/0.174, allocations: 24 kB / 0.5035 GB, free: 184 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.2186/0.3926, allocations: 0.9415 MB / 0.5044 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005866/0.3932, allocations: 259.5 kB / 0.5046 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002933/0.3961, allocations: 1.263 MB / 0.5059 GB, free: 43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.3962, allocations: 3.656 kB / 0.5059 GB, free: 43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3962, allocations: 0 / 0.5059 GB, free: 43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.3973, allocations: 0.5296 MB / 0.5064 GB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002296/0.3975, allocations: 15.97 kB / 0.5064 GB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007995/0.3983, allocations: 79.59 kB / 0.5065 GB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001961/0.3985, allocations: 94.75 kB / 0.5066 GB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00321/0.4018, allocations: 1.201 MB / 0.5078 GB, free: 42.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002461/0.4042, allocations: 1.485 MB / 0.5092 GB, free: 42.36 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007043/0.405, allocations: 357.5 kB / 0.5095 GB, free: 42.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00496/0.4099, allocations: 3.514 MB / 0.513 GB, free: 41.23 MB / 382.1 MB Notification: Performance of Backend: time 5.11e-07/0.4099, allocations: 0 / 0.513 GB, free: 41.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003263/0.4132, allocations: 1.358 MB / 0.5143 GB, free: 40.75 MB / 382.1 MB Notification: Performance of SimCode: time 0.006017/0.4192, allocations: 5.159 MB / 0.5193 GB, free: 38.3 MB / 382.1 MB Notification: Performance of Templates: time 0.03402/0.4533, allocations: 25.89 MB / 0.5446 GB, free: 16.82 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)