Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 117.3 kB / 17.14 MB, free: 5.91 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.001107/0.001107, allocations: 190.9 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.307/1.307, allocations: 222.9 MB / 241.8 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04734/0.04734, allocations: 8.099 MB / 300 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 75.88 kB / 415.2 MB, free: 21.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07809/0.07932, allocations: 51.51 MB / 466.7 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.004419/0.08377, allocations: 3.131 MB / 469.8 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.0857, allocations: 1.175 MB / 471 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.08594, allocations: 8 kB / 471 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008217/0.08678, allocations: 446.4 kB / 471.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000468/0.08726, allocations: 266.8 kB / 471.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001753/0.08903, allocations: 0.9957 MB / 472.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005492/0.08959, allocations: 0.5101 MB / 473.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.08984, allocations: 161.4 kB / 473.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/0.09006, allocations: 239.2 kB / 473.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004204/0.09049, allocations: 363 kB / 473.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.577e-05/0.09058, allocations: 48 kB / 474 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004342/0.09102, allocations: 275.8 kB / 474.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002699/0.0913, allocations: 347.1 kB / 474.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003592/0.09167, allocations: 461.3 kB / 475.1 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001256/0.09293, allocations: 1.32 MB / 476.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.09295, allocations: 0 / 476.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.09296, allocations: 0 / 476.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.09297, allocations: 3.938 kB / 476.4 MB, free: 8.422 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003435/0.09641, allocations: 1.549 MB / 477.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.09646, allocations: 15.88 kB / 477.9 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.09663, allocations: 111.5 kB / 478 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.09781, allocations: 0.868 MB / 478.9 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.09793, allocations: 84.52 kB / 479 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.926e-05/0.098, allocations: 28.38 kB / 479 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007946/0.0988, allocations: 453 kB / 479.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.09882, allocations: 0 / 479.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.297e-05/0.09887, allocations: 16 kB / 479.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.09889, allocations: 8 kB / 479.5 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006034/0.0995, allocations: 314.1 kB / 479.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003052/0.1026, allocations: 2.127 MB / 481.9 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.1036, allocations: 476.3 kB / 482.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004598/0.1041, allocations: 213.2 kB / 482.6 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001654/0.1043, allocations: 89.27 kB / 482.7 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/0.1043, allocations: 42.8 kB / 482.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.833e-06/0.1043, allocations: 0 / 482.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002371/0.1067, allocations: 0.8246 MB / 483.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.1068, allocations: 239.3 kB / 483.8 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001916/0.1087, allocations: 1.737 MB / 485.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.1088, allocations: 29.7 kB / 485.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003944/0.1092, allocations: 448.6 kB / 486 MB, free: 14.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.947e-05/0.1093, allocations: 98.53 kB / 486.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.1094, allocations: 69.44 kB / 486.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.1095, allocations: 322 kB / 486.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003201/0.1098, allocations: 147.9 kB / 486.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003901/0.1102, allocations: 246 kB / 486.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003588/0.1138, allocations: 0.9462 MB / 487.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1139, allocations: 0 / 487.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001337/0.1152, allocations: 0.6022 MB / 488.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1152, allocations: 8 kB / 488.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.1152, allocations: 4 kB / 488.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006713/0.1159, allocations: 144.6 kB / 488.6 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003134/0.1162, allocations: 79.89 kB / 488.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002526/0.1188, allocations: 2.032 MB / 490.7 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003875/0.1192, allocations: 47.66 kB / 490.7 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.942e-05/0.1192, allocations: 12 kB / 490.7 MB, free: 9.418 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.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: 4 * 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 (33): * Single equations (assignments): 32 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004725/0.1197, allocations: 414.5 kB / 491.1 MB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.1199, allocations: 94.78 kB / 491.2 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001418/0.1213, allocations: 0.5858 MB / 491.8 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1213, allocations: 0 / 491.8 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.1213, allocations: 3.938 kB / 491.8 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003988/0.1217, allocations: 239.8 kB / 492 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.644e-05/0.1218, allocations: 8 kB / 492.1 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003847/0.1222, allocations: 35.97 kB / 492.1 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.1223, allocations: 39.94 kB / 492.1 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001694/0.124, allocations: 0.5956 MB / 492.7 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001172/0.1252, allocations: 0.7532 MB / 493.5 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003133/0.1255, allocations: 151.9 kB / 493.6 MB, free: 6.449 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001636/0.1272, allocations: 1.26 MB / 494.9 MB, free: 5.18 MB / 366.1 MB Notification: Performance of Backend: time 6.81e-07/0.1272, allocations: 3.938 kB / 494.9 MB, free: 5.176 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002332/0.1295, allocations: 0.9083 MB / 495.8 MB, free: 4.391 MB / 366.1 MB Notification: Performance of SimCode: time 0.002647/0.1322, allocations: 2.179 MB / 498 MB, free: 2.152 MB / 366.1 MB Notification: Performance of Templates: time 0.02714/0.1593, allocations: 12.69 MB / 0.4987 GB, free: 5.484 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)