Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 110.1 kB / 16.45 MB, free: 6.441 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.002092/0.002092, allocations: 186.4 kB / 17.39 MB, free: 5.688 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.471/1.471, 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.05835/0.05835, allocations: 8.1 MB / 299.3 MB, free: 6.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.91 kB / 414.5 MB, free: 21.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1134, allocations: 51.51 MB / 466 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.004305/0.1178, allocations: 2.395 MB / 468.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.1191, allocations: 0.5021 MB / 468.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002511/0.1194, allocations: 4 kB / 468.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005512/0.12, allocations: 95.44 kB / 469 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004016/0.1204, allocations: 87.41 kB / 469.1 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003939/0.1208, allocations: 87.77 kB / 469.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005063/0.1213, allocations: 283 kB / 469.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000292/0.1216, allocations: 103.3 kB / 469.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002598/0.1219, allocations: 123.6 kB / 469.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003332/0.1223, allocations: 143.4 kB / 469.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.934e-05/0.1224, allocations: 32 kB / 469.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002434/0.1226, allocations: 75.98 kB / 469.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002259/0.1228, allocations: 103.7 kB / 470.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002828/0.1231, allocations: 159.2 kB / 470.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000644/0.1238, allocations: 402.8 kB / 470.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1238, allocations: 0 / 470.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1238, allocations: 0 / 470.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.1238, allocations: 0 / 470.6 MB, free: 13.52 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002494/0.1263, allocations: 0.7949 MB / 471.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.1264, allocations: 12.02 kB / 471.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.1265, allocations: 32.56 kB / 471.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005896/0.1271, allocations: 351.4 kB / 471.8 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.395e-05/0.1272, allocations: 16.7 kB / 471.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.183e-05/0.1272, allocations: 16.38 kB / 471.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007619/0.128, allocations: 283 kB / 472.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.128, allocations: 192 / 472.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.739e-05/0.1281, allocations: 7.938 kB / 472.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.1281, allocations: 8 kB / 472.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000546/0.1287, allocations: 196.1 kB / 472.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001918/0.1306, allocations: 0.8453 MB / 473.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007749/0.1314, allocations: 299.6 kB / 473.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004493/0.1318, allocations: 144.8 kB / 473.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.085e-05/0.1319, allocations: 4 kB / 473.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.148e-05/0.132, allocations: 34.62 kB / 473.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.034e-06/0.132, allocations: 0 / 473.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007964/0.1328, allocations: 285.3 kB / 473.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.1329, allocations: 217.6 kB / 474.1 MB, free: 9.734 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004931/0.1334, allocations: 362.7 kB / 474.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.1335, allocations: 25.7 kB / 474.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.1336, allocations: 172.1 kB / 474.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.437e-05/0.1337, allocations: 47.34 kB / 474.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.1338, allocations: 33.72 kB / 474.7 MB, free: 9.082 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.1339, allocations: 346.7 kB / 475.1 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.1342, allocations: 83.94 kB / 475.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002654/0.1344, allocations: 151.7 kB / 475.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008407/0.1353, allocations: 242.3 kB / 475.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1353, allocations: 0 / 475.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006566/0.136, allocations: 209.3 kB / 475.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.136, allocations: 4 kB / 475.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.136, allocations: 0 / 475.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.136, allocations: 4 kB / 475.7 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.1363, allocations: 31.92 kB / 475.8 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.1363, allocations: 0 / 475.8 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007029/0.137, allocations: 95.78 kB / 475.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.137, allocations: 12 kB / 475.9 MB, free: 7.875 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = 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: 3 * Number of states: 0 () * Number of discrete variables: 2 (pulseSeries.on2,pulseSeries.on1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0003707/0.1374, allocations: 149.8 kB / 476 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.643e-05/0.1375, allocations: 27.72 kB / 476.1 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008285/0.1384, allocations: 247.2 kB / 476.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.1384, allocations: 0 / 476.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1384, allocations: 4.062 kB / 476.3 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.128e-06/0.1384, allocations: 7.984 kB / 476.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001449/0.1399, allocations: 0.659 MB / 477 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1399, allocations: 0 / 477 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.1401, allocations: 27.92 kB / 477 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.1401, allocations: 4 kB / 477 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.1402, allocations: 4.031 kB / 477 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/0.1402, allocations: 3.938 kB / 477 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.1402, allocations: 4 kB / 477 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.1413, allocations: 436 kB / 477.4 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.1414, allocations: 112.8 kB / 477.5 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.58e-05/0.1415, allocations: 4 kB / 477.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007521/0.1423, allocations: 83.89 kB / 477.6 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003895/0.1427, allocations: 127.8 kB / 477.8 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.099e-05/0.1427, allocations: 8 kB / 477.8 MB, free: 5.875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004282/0.1432, allocations: 277.9 kB / 478 MB, free: 5.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1432, allocations: 0 / 478 MB, free: 5.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005493/0.1437, allocations: 67.84 kB / 478.1 MB, free: 5.535 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * 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.0008481/0.1446, allocations: 257.2 kB / 478.4 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007451/0.1454, allocations: 203.8 kB / 478.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.1454, allocations: 0 / 478.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004173/0.1458, allocations: 135.8 kB / 478.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005337/0.1463, allocations: 28.78 kB / 478.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.1487, allocations: 0.6616 MB / 479.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004798/0.1492, allocations: 0.7635 MB / 480.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000209/0.1494, allocations: 45.47 kB / 480.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.1496, allocations: 31.42 kB / 480.2 MB, free: 3.441 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1496, allocations: 0 / 480.2 MB, free: 3.441 MB / 350.1 MB Notification: Performance of Templates: time 0.01416/0.1638, allocations: 5.492 MB / 485.7 MB, free: 13.95 MB / 366.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)