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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 114.7 kB / 17.12 MB, free: 5.965 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.0009808/0.0009812, allocations: 200 kB / 18.06 MB, free: 5.039 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.371/1.371, 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.04965/0.04965, allocations: 8.1 MB / 300 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 59.91 kB / 415.2 MB, free: 21.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1101, allocations: 51.52 MB / 466.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.005324/0.1155, allocations: 3.358 MB / 470.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002385/0.1179, allocations: 1.333 MB / 471.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003794/0.1183, allocations: 11.94 kB / 471.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007118/0.1191, allocations: 171 kB / 471.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007024/0.1198, allocations: 186.8 kB / 471.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007342/0.1205, allocations: 243.2 kB / 472 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007512/0.1213, allocations: 0.5338 MB / 472.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/0.1216, allocations: 176.6 kB / 472.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002353/0.1218, allocations: 215.2 kB / 472.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003132/0.1222, allocations: 219 kB / 473.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.278e-05/0.1222, allocations: 44 kB / 473.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000176/0.1224, allocations: 87.97 kB / 473.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000218/0.1226, allocations: 167.5 kB / 473.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.1229, allocations: 262.6 kB / 473.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006941/0.1236, allocations: 0.6503 MB / 474.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1236, allocations: 0 / 474.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1236, allocations: 0 / 474.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.1236, allocations: 0 / 474.3 MB, free: 10.45 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.002198/0.1258, allocations: 1.005 MB / 475.3 MB, free: 9.398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.1259, allocations: 15.89 kB / 475.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.126, allocations: 56.28 kB / 475.4 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007808/0.1268, allocations: 498.4 kB / 475.9 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.1268, allocations: 16.94 kB / 475.9 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.484e-05/0.1269, allocations: 32.12 kB / 476 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006667/0.1275, allocations: 389.5 kB / 476.3 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.1276, allocations: 4 kB / 476.3 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.501e-05/0.1276, allocations: 12 kB / 476.3 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.1276, allocations: 12 kB / 476.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000487/0.1281, allocations: 254.1 kB / 476.6 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0022/0.1303, allocations: 1.488 MB / 478.1 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005333/0.1309, allocations: 275.6 kB / 478.4 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002378/0.1311, allocations: 112.8 kB / 478.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.781e-05/0.1312, allocations: 4 kB / 478.5 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.1312, allocations: 42.59 kB / 478.5 MB, free: 6.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 4.098e-06/0.1312, allocations: 3.938 kB / 478.5 MB, free: 6.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007442/0.132, allocations: 309.2 kB / 478.8 MB, free: 5.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.1321, allocations: 209.6 kB / 479 MB, free: 5.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006811/0.1328, allocations: 0.5721 MB / 479.6 MB, free: 4.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.1328, allocations: 33.7 kB / 479.6 MB, free: 4.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.133, allocations: 259.7 kB / 479.9 MB, free: 4.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.603e-05/0.1331, allocations: 47.34 kB / 479.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.282e-05/0.1332, allocations: 49.7 kB / 480 MB, free: 4.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.1333, allocations: 354.8 kB / 480.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002303/0.1335, allocations: 104 kB / 480.4 MB, free: 4.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002974/0.1339, allocations: 210.5 kB / 480.6 MB, free: 3.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.1342, allocations: 200.9 kB / 480.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1342, allocations: 0 / 480.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005665/0.1348, allocations: 305 kB / 481.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.1348, allocations: 8 kB / 481.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.1348, allocations: 0 / 481.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.1349, allocations: 7.938 kB / 481.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.1351, allocations: 51.91 kB / 481.2 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.1351, allocations: 4 kB / 481.2 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005709/0.1357, allocations: 99.81 kB / 481.3 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.683e-05/0.1357, allocations: 8 kB / 481.3 MB, free: 3.043 MB / 350.1 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.0002006/0.1359, allocations: 189.7 kB / 481.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.96e-05/0.136, allocations: 47.44 kB / 481.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006144/0.1366, allocations: 257.2 kB / 481.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.1366, allocations: 3.938 kB / 481.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1367, allocations: 0 / 481.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1367, allocations: 0 / 481.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.1378, allocations: 0.7642 MB / 482.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1378, allocations: 0 / 482.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001454/0.1379, allocations: 23.98 kB / 482.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.138, allocations: 4 kB / 482.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.138, allocations: 0 / 482.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.138, allocations: 0 / 482.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.138, allocations: 4.031 kB / 482.6 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007601/0.1388, allocations: 471.7 kB / 483 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002037/0.139, allocations: 152.6 kB / 483.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.75e-05/0.139, allocations: 4 kB / 483.2 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006299/0.1397, allocations: 99.98 kB / 483.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002651/0.1399, allocations: 127.7 kB / 483.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.292e-05/0.14, allocations: 11.98 kB / 483.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004806/0.1405, allocations: 423.1 kB / 483.8 MB, free: 396 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1405, allocations: 0 / 483.8 MB, free: 396 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004065/0.1409, allocations: 99.75 kB / 483.9 MB, free: 296 kB / 350.1 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.0007881/0.1417, allocations: 378.5 kB / 484.3 MB, free: 48 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005616/0.1422, allocations: 231.9 kB / 484.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1423, allocations: 0 / 484.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000289/0.1426, allocations: 135.8 kB / 484.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005862/0.1432, allocations: 113.7 kB / 484.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.1448, allocations: 0.8553 MB / 485.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.1452, allocations: 0.8306 MB / 486.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/0.1454, allocations: 43.44 kB / 486.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1454, allocations: 3.938 kB / 486.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of Templates: time 0.009353/0.1548, allocations: 6.917 MB / 493.4 MB, free: 6.898 MB / 366.1 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)