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.001119/0.001119, allocations: 106 kB / 16.45 MB, free: 6.445 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.001268/0.001269, allocations: 188.3 kB / 17.38 MB, free: 5.668 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.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04696/0.04696, allocations: 8.101 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 55.91 kB / 414.5 MB, free: 21.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1106, allocations: 51.52 MB / 466.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.004657/0.1153, allocations: 3.357 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00213/0.1174, allocations: 1.321 MB / 470.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002433/0.1177, allocations: 11.94 kB / 470.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006719/0.1184, allocations: 179 kB / 470.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000455/0.1189, allocations: 182.8 kB / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005451/0.1194, allocations: 239.3 kB / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005743/0.12, allocations: 0.5454 MB / 471.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003063/0.1203, allocations: 168.8 kB / 472 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002195/0.1206, allocations: 211.1 kB / 472.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002806/0.1208, allocations: 231 kB / 472.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.849e-05/0.1209, allocations: 44 kB / 472.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.1211, allocations: 87.97 kB / 472.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002081/0.1213, allocations: 159.5 kB / 472.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002197/0.1215, allocations: 258.6 kB / 473 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006628/0.1222, allocations: 0.6575 MB / 473.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.235e-06/0.1222, allocations: 4 kB / 473.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1222, allocations: 0 / 473.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1223, allocations: 4 kB / 473.7 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.002087/0.1243, allocations: 1.012 MB / 474.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.1244, allocations: 8.031 kB / 474.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.1245, allocations: 60.56 kB / 474.8 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007356/0.1252, allocations: 0.4988 MB / 475.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.1253, allocations: 20.94 kB / 475.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.216e-05/0.1253, allocations: 28.12 kB / 475.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006547/0.126, allocations: 393.6 kB / 475.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.126, allocations: 3.938 kB / 475.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.75e-05/0.1261, allocations: 16 kB / 475.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.1261, allocations: 4 kB / 475.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004941/0.1266, allocations: 258 kB / 476 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.1287, allocations: 1.485 MB / 477.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005321/0.1292, allocations: 287.5 kB / 477.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000237/0.1295, allocations: 108.8 kB / 477.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.1295, allocations: 7.938 kB / 477.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.1296, allocations: 38.56 kB / 477.9 MB, free: 5.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.222e-06/0.1296, allocations: 0 / 477.9 MB, free: 5.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007477/0.1303, allocations: 313.4 kB / 478.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.1305, allocations: 209.6 kB / 478.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007096/0.1312, allocations: 0.5799 MB / 479 MB, free: 4.828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.139e-05/0.1312, allocations: 29.7 kB / 479 MB, free: 4.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000185/0.1314, allocations: 260.1 kB / 479.3 MB, free: 4.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.197e-05/0.1315, allocations: 51.56 kB / 479.3 MB, free: 4.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.1316, allocations: 49.7 kB / 479.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1317, allocations: 354.8 kB / 479.7 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000238/0.132, allocations: 99.94 kB / 479.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003159/0.1323, allocations: 212.1 kB / 480 MB, free: 3.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003794/0.1327, allocations: 204.9 kB / 480.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.1327, allocations: 0 / 480.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005803/0.1333, allocations: 293.4 kB / 480.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.1333, allocations: 12 kB / 480.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1333, allocations: 4 kB / 480.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.1334, allocations: 7.938 kB / 480.5 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.1336, allocations: 51.91 kB / 480.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.1336, allocations: 0 / 480.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005601/0.1342, allocations: 103.7 kB / 480.7 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.976e-05/0.1342, allocations: 12.12 kB / 480.7 MB, free: 3.008 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.0002079/0.1344, allocations: 189.7 kB / 480.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.01e-05/0.1345, allocations: 43.72 kB / 480.9 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006167/0.1351, allocations: 257.2 kB / 481.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.1351, allocations: 0 / 481.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1352, allocations: 0 / 481.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.1352, allocations: 7.984 kB / 481.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.1363, allocations: 0.7565 MB / 481.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1363, allocations: 0 / 481.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/0.1364, allocations: 27.98 kB / 481.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1365, allocations: 96 / 481.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.1365, allocations: 3.938 kB / 481.9 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1365, allocations: 4 kB / 482 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1365, allocations: 0 / 482 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007755/0.1373, allocations: 475.8 kB / 482.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001805/0.1375, allocations: 156.8 kB / 482.6 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.547e-05/0.1375, allocations: 12.05 kB / 482.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005994/0.1381, allocations: 91.88 kB / 482.7 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002619/0.1384, allocations: 127.8 kB / 482.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/0.1384, allocations: 8 kB / 482.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004902/0.1389, allocations: 423.1 kB / 483.2 MB, free: 360 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1389, allocations: 0 / 483.2 MB, free: 360 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004124/0.1394, allocations: 103.9 kB / 483.3 MB, free: 256 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.0008938/0.1403, allocations: 363.1 kB / 483.7 MB, free: 20 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005752/0.1408, allocations: 220.3 kB / 483.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.1409, allocations: 8.062 kB / 483.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002922/0.1412, allocations: 139.9 kB / 484 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000612/0.1418, allocations: 112 kB / 484.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.1434, allocations: 0.8329 MB / 485 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004093/0.1438, allocations: 0.8345 MB / 485.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002344/0.1441, allocations: 71.23 kB / 485.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.1442, allocations: 35.44 kB / 485.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1442, allocations: 0 / 485.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of Templates: time 0.01372/0.1579, allocations: 8.141 MB / 494.1 MB, free: 5.652 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)