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/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 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.001343/0.001343, allocations: 106.2 kB / 16.45 MB, free: 6.395 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.001132/0.001132, allocations: 186.1 kB / 17.38 MB, free: 5.676 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.584/1.584, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.07529/0.07529, allocations: 8.102 MB / 299.3 MB, free: 6.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 59.91 kB / 414.5 MB, free: 21.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1152, allocations: 51.53 MB / 466.1 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.005379/0.1206, allocations: 3.358 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00258/0.1232, allocations: 1.329 MB / 470.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003986/0.1236, allocations: 7.938 kB / 470.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006899/0.1244, allocations: 179 kB / 470.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006776/0.1251, allocations: 186.8 kB / 471.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000748/0.1258, allocations: 243.4 kB / 471.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008116/0.1266, allocations: 0.5338 MB / 471.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000317/0.127, allocations: 172.7 kB / 472 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000377/0.1274, allocations: 219.1 kB / 472.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000415/0.1278, allocations: 227 kB / 472.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.861e-05/0.1279, allocations: 44 kB / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002422/0.1281, allocations: 83.97 kB / 472.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002181/0.1283, allocations: 167.5 kB / 472.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002723/0.1286, allocations: 258.7 kB / 473 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007454/0.1294, allocations: 0.6541 MB / 473.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1294, allocations: 0 / 473.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1294, allocations: 0 / 473.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.1294, allocations: 0 / 473.7 MB, free: 10.44 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.002258/0.1317, allocations: 1.001 MB / 474.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.61e-05/0.1317, allocations: 12.03 kB / 474.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.1319, allocations: 60.22 kB / 474.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007773/0.1326, allocations: 494.4 kB / 475.2 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.402e-05/0.1327, allocations: 20.94 kB / 475.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.542e-05/0.1328, allocations: 28.12 kB / 475.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006755/0.1334, allocations: 389.6 kB / 475.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.1335, allocations: 3.938 kB / 475.7 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.552e-05/0.1335, allocations: 12 kB / 475.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.1335, allocations: 8 kB / 475.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000528/0.1341, allocations: 254.1 kB / 475.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002395/0.1365, allocations: 1.5 MB / 477.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005727/0.137, allocations: 275.6 kB / 477.7 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/0.1374, allocations: 112.9 kB / 477.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.1374, allocations: 3.938 kB / 477.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.1375, allocations: 42.5 kB / 477.9 MB, free: 6.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.733e-06/0.1375, allocations: 0 / 477.9 MB, free: 6.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.000773/0.1382, allocations: 309.2 kB / 478.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001904/0.1384, allocations: 209.6 kB / 478.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007255/0.1392, allocations: 0.576 MB / 478.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/0.1392, allocations: 29.7 kB / 479 MB, free: 4.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001934/0.1394, allocations: 255.7 kB / 479.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.945e-05/0.1395, allocations: 47.36 kB / 479.3 MB, free: 4.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.538e-05/0.1396, allocations: 49.7 kB / 479.3 MB, free: 4.461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.1397, allocations: 350.8 kB / 479.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/0.14, allocations: 99.92 kB / 479.8 MB, free: 4.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003277/0.1403, allocations: 214.5 kB / 480 MB, free: 3.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003859/0.1407, allocations: 201 kB / 480.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1407, allocations: 0 / 480.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006372/0.1414, allocations: 301 kB / 480.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.1414, allocations: 8 kB / 480.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1414, allocations: 4 kB / 480.5 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.1414, allocations: 7.938 kB / 480.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.1417, allocations: 43.91 kB / 480.5 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.1417, allocations: 4 kB / 480.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006469/0.1423, allocations: 103.8 kB / 480.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.1424, allocations: 12 kB / 480.6 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.0002216/0.1426, allocations: 189.7 kB / 480.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.226e-05/0.1427, allocations: 43.44 kB / 480.9 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006296/0.1433, allocations: 261.3 kB / 481.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.1433, allocations: 0 / 481.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.1433, allocations: 0 / 481.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1434, allocations: 0 / 481.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.1445, allocations: 0.768 MB / 481.9 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1445, allocations: 0 / 481.9 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.1447, allocations: 27.98 kB / 481.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1447, allocations: 4 kB / 481.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.1447, allocations: 0 / 481.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1447, allocations: 4 kB / 481.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1447, allocations: 4.031 kB / 481.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008966/0.1456, allocations: 471.5 kB / 482.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002019/0.1458, allocations: 144.6 kB / 482.5 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.283e-05/0.1459, allocations: 11.94 kB / 482.5 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006419/0.1466, allocations: 95.92 kB / 482.6 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000288/0.1469, allocations: 127.8 kB / 482.8 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.1469, allocations: 7.984 kB / 482.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005105/0.1474, allocations: 423.1 kB / 483.2 MB, free: 396 kB / 350.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.1474, allocations: 0 / 483.2 MB, free: 396 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004261/0.1478, allocations: 107.7 kB / 483.3 MB, free: 288 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.0009698/0.1488, allocations: 362 kB / 483.6 MB, free: 56 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005975/0.1494, allocations: 231.9 kB / 483.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.1494, allocations: 0 / 483.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002988/0.1497, allocations: 135.9 kB / 484 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.0006206/0.1504, allocations: 123.1 kB / 484.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001909/0.1523, allocations: 0.8184 MB / 484.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.1528, allocations: 0.8267 MB / 485.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002628/0.153, allocations: 67.25 kB / 485.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.1532, allocations: 43.44 kB / 485.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1532, allocations: 0 / 485.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of Templates: time 0.01605/0.1692, allocations: 8.142 MB / 494 MB, free: 5.695 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)