Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 240.3 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009677/0.0009677, allocations: 102.5 kB / 290.6 MB, free: 10.89 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.06704/0.06704, allocations: 8.086 MB / 348.8 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 51.33 kB / 411.1 MB, free: 57.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.125, allocations: 51.51 MB / 462.6 MB, free: 6.027 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.005477/0.1306, allocations: 3.394 MB / 466 MB, free: 2.613 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002784/0.1334, allocations: 1.306 MB / 467.3 MB, free: 1.301 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002953/0.1337, allocations: 7.938 kB / 467.3 MB, free: 1.293 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007099/0.1345, allocations: 155.3 kB / 467.5 MB, free: 1.141 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004896/0.135, allocations: 159.1 kB / 467.6 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006947/0.1357, allocations: 228.2 kB / 467.8 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006472/0.1364, allocations: 0.5298 MB / 468.4 MB, free: 240 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002945/0.1367, allocations: 144.7 kB / 468.5 MB, free: 88 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002802/0.137, allocations: 187.3 kB / 468.7 MB, free: 15.9 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003759/0.1374, allocations: 219 kB / 468.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.771e-05/0.1375, allocations: 24 kB / 468.9 MB, free: 15.66 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002158/0.1377, allocations: 63.86 kB / 469 MB, free: 15.6 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002654/0.138, allocations: 151.5 kB / 469.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003064/0.1383, allocations: 238.6 kB / 469.4 MB, free: 15.22 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009175/0.1392, allocations: 0.6229 MB / 470 MB, free: 14.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1392, allocations: 0 / 470 MB, free: 14.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1393, allocations: 0 / 470 MB, free: 14.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.1393, allocations: 0 / 470 MB, free: 14.59 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.002997/0.1423, allocations: 1.008 MB / 471 MB, free: 13.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.1423, allocations: 8.031 kB / 471 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.1425, allocations: 56.28 kB / 471.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009402/0.1435, allocations: 498.3 kB / 471.6 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002864/0.1438, allocations: 57.08 kB / 471.6 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.174e-05/0.1438, allocations: 31.94 kB / 471.6 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009768/0.1448, allocations: 405.5 kB / 472 MB, free: 12.44 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.1449, allocations: 4 kB / 472 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.929e-05/0.1449, allocations: 12 kB / 472.1 MB, free: 12.42 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.1449, allocations: 4 kB / 472.1 MB, free: 12.42 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007675/0.1457, allocations: 262 kB / 472.3 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003073/0.1488, allocations: 1.527 MB / 473.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000922/0.1497, allocations: 323.4 kB / 474.2 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003835/0.1501, allocations: 112.8 kB / 474.3 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.761e-05/0.1502, allocations: 7.984 kB / 474.3 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/0.1503, allocations: 42.56 kB / 474.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.705e-06/0.1503, allocations: 0 / 474.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.001337/0.1516, allocations: 336.9 kB / 474.7 MB, free: 9.684 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001648/0.1518, allocations: 209.6 kB / 474.9 MB, free: 9.43 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/0.1529, allocations: 0.5798 MB / 475.4 MB, free: 8.836 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.153, allocations: 29.7 kB / 475.5 MB, free: 8.801 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000288/0.1533, allocations: 259.7 kB / 475.7 MB, free: 8.543 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.857e-05/0.1534, allocations: 43.39 kB / 475.8 MB, free: 8.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/0.1536, allocations: 53.61 kB / 475.8 MB, free: 8.441 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002327/0.1538, allocations: 358.8 kB / 476.2 MB, free: 8.082 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003767/0.1542, allocations: 107.8 kB / 476.3 MB, free: 7.977 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004834/0.1547, allocations: 232.1 kB / 476.5 MB, free: 7.703 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006462/0.1554, allocations: 228 kB / 476.7 MB, free: 7.449 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1554, allocations: 0 / 476.7 MB, free: 7.449 MB / 314.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0009777/0.1564, allocations: 316.8 kB / 477 MB, free: 7.133 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.1564, allocations: 8 kB / 477 MB, free: 7.125 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.1564, allocations: 3.938 kB / 477 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.1564, allocations: 4 kB / 477 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.1568, allocations: 52.28 kB / 477.1 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.1568, allocations: 7.938 kB / 477.1 MB, free: 7.059 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008345/0.1576, allocations: 107.6 kB / 477.2 MB, free: 6.953 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/0.1577, allocations: 12 kB / 477.2 MB, free: 6.941 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002872/0.158, allocations: 185.7 kB / 477.4 MB, free: 6.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.1581, allocations: 39.53 kB / 477.4 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009961/0.1591, allocations: 289.1 kB / 477.7 MB, free: 6.422 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1591, allocations: 4 kB / 477.7 MB, free: 6.418 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1592, allocations: 0 / 477.7 MB, free: 6.418 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1592, allocations: 0 / 477.7 MB, free: 6.418 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/0.1609, allocations: 0.7799 MB / 478.5 MB, free: 5.578 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1609, allocations: 0 / 478.5 MB, free: 5.578 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002432/0.1612, allocations: 39.89 kB / 478.5 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.1612, allocations: 0 / 478.5 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.1612, allocations: 8.219 kB / 478.6 MB, free: 5.531 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.1613, allocations: 7.938 kB / 478.6 MB, free: 5.523 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.1613, allocations: 0 / 478.6 MB, free: 5.523 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01374/0.175, allocations: 3.446 MB / 482 MB, free: 1.914 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002799/0.1753, allocations: 160.5 kB / 482.2 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.913e-05/0.1754, allocations: 4 kB / 482.2 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009419/0.1764, allocations: 111.9 kB / 482.3 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003742/0.1768, allocations: 123.7 kB / 482.4 MB, free: 1.504 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/0.1768, allocations: 8 kB / 482.4 MB, free: 1.496 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000698/0.1775, allocations: 431.1 kB / 482.8 MB, free: 1.078 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1775, allocations: 0 / 482.8 MB, free: 1.078 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008655/0.1784, allocations: 135.8 kB / 483 MB, free: 0.9453 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001087/0.1795, allocations: 360.7 kB / 483.3 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008944/0.1804, allocations: 248.1 kB / 483.6 MB, free: 484 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1804, allocations: 4.188 kB / 483.6 MB, free: 480 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004784/0.1809, allocations: 155.8 kB / 483.7 MB, free: 324 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008853/0.1818, allocations: 94.62 kB / 483.8 MB, free: 228 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2088/0.3907, allocations: 1.109 MB / 484.9 MB, free: 28.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.391, allocations: 0.829 MB / 485.7 MB, free: 27.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003989/0.3914, allocations: 68.08 kB / 485.8 MB, free: 27.73 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.3916, allocations: 39.3 kB / 485.8 MB, free: 27.72 MB / 314.7 MB Notification: Performance of SimCode: time 1.142e-06/0.3916, allocations: 0 / 485.8 MB, free: 27.72 MB / 314.7 MB Notification: Performance of Templates: time 0.01329/0.4049, allocations: 7.157 MB / 493 MB, free: 26.72 MB / 314.7 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)