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.001598/0.001598, allocations: 104.7 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.001454/0.001454, allocations: 186.4 kB / 17.39 MB, free: 5.691 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.441/1.441, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05479/0.05479, allocations: 8.098 MB / 299.3 MB, free: 6.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 63.89 kB / 414.5 MB, free: 21.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1064, allocations: 51.51 MB / 466 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003966/0.1104, allocations: 2.394 MB / 468.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008072/0.1112, allocations: 0.4983 MB / 468.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.214e-05/0.1113, allocations: 4 kB / 468.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003531/0.1117, allocations: 91.42 kB / 469 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001965/0.1119, allocations: 91.45 kB / 469.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002378/0.1122, allocations: 83.78 kB / 469.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002837/0.1125, allocations: 275 kB / 469.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002299/0.1127, allocations: 115.3 kB / 469.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.1129, allocations: 119.5 kB / 469.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002393/0.1131, allocations: 143.4 kB / 469.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.267e-05/0.1131, allocations: 31.94 kB / 469.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.1133, allocations: 79.95 kB / 469.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002156/0.1135, allocations: 111.7 kB / 470.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.1137, allocations: 151.2 kB / 470.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004545/0.1142, allocations: 398.8 kB / 470.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.1142, allocations: 4 kB / 470.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1142, allocations: 0 / 470.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.1142, allocations: 0 / 470.6 MB, free: 13.57 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.001832/0.116, allocations: 0.7988 MB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.1161, allocations: 8.031 kB / 471.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.93e-05/0.1162, allocations: 32.56 kB / 471.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000487/0.1167, allocations: 351.4 kB / 471.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.1167, allocations: 12.7 kB / 471.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.178e-05/0.1168, allocations: 12.38 kB / 471.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004996/0.1173, allocations: 291 kB / 472.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1173, allocations: 192 / 472.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.1173, allocations: 11.94 kB / 472.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.1173, allocations: 4 kB / 472.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004113/0.1178, allocations: 200.1 kB / 472.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.1191, allocations: 0.8375 MB / 473.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006182/0.1197, allocations: 303.6 kB / 473.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003348/0.1201, allocations: 148.8 kB / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.203e-05/0.1201, allocations: 0 / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.1202, allocations: 34.56 kB / 473.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.072e-06/0.1202, allocations: 0 / 473.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007176/0.1209, allocations: 289.1 kB / 473.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.121, allocations: 209.6 kB / 474.1 MB, free: 9.789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004258/0.1215, allocations: 362.7 kB / 474.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.1215, allocations: 33.7 kB / 474.5 MB, free: 9.387 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.1216, allocations: 168.1 kB / 474.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.297e-05/0.1217, allocations: 47.34 kB / 474.7 MB, free: 9.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.73e-05/0.1218, allocations: 41.7 kB / 474.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1219, allocations: 334.8 kB / 475.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.1221, allocations: 84.02 kB / 475.1 MB, free: 8.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002512/0.1224, allocations: 155.3 kB / 475.3 MB, free: 8.531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007682/0.1231, allocations: 242.3 kB / 475.5 MB, free: 8.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.1232, allocations: 4 kB / 475.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004503/0.1236, allocations: 209.3 kB / 475.7 MB, free: 8.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.1236, allocations: 8 kB / 475.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1237, allocations: 0 / 475.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.1237, allocations: 0 / 475.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.1238, allocations: 39.91 kB / 475.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.1238, allocations: 0 / 475.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004351/0.1243, allocations: 91.8 kB / 475.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.1243, allocations: 7.984 kB / 475.9 MB, free: 7.926 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.0002819/0.1246, allocations: 161.8 kB / 476 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.044e-05/0.1247, allocations: 23.72 kB / 476.1 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005802/0.1253, allocations: 243.1 kB / 476.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1253, allocations: 0 / 476.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1253, allocations: 0 / 476.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.1253, allocations: 64 / 476.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009719/0.1263, allocations: 0.659 MB / 477 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1263, allocations: 0 / 477 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001494/0.1264, allocations: 35.91 kB / 477 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1265, allocations: 32 / 477 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/0.1265, allocations: 12 kB / 477 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.1265, allocations: 3.938 kB / 477 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1265, allocations: 0 / 477 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007369/0.1273, allocations: 436 kB / 477.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.672e-05/0.1274, allocations: 108.8 kB / 477.5 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.315e-05/0.1274, allocations: 4 kB / 477.5 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004758/0.1279, allocations: 91.88 kB / 477.6 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002664/0.1282, allocations: 119.8 kB / 477.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.1282, allocations: 8 kB / 477.8 MB, free: 5.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002896/0.1285, allocations: 277.9 kB / 478 MB, free: 5.656 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1285, allocations: 3.938 kB / 478 MB, free: 5.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003431/0.1288, allocations: 63.84 kB / 478.1 MB, free: 5.59 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.0005833/0.1294, allocations: 259.4 kB / 478.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00051/0.13, allocations: 199.8 kB / 478.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.13, allocations: 0 / 478.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.1303, allocations: 139.8 kB / 478.7 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.1306, allocations: 35.52 kB / 478.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/0.1324, allocations: 0.6539 MB / 479.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.1327, allocations: 0.7713 MB / 480.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001336/0.1329, allocations: 37.53 kB / 480.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.133, allocations: 27.44 kB / 480.2 MB, free: 3.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.133, allocations: 0 / 480.2 MB, free: 3.5 MB / 350.1 MB Notification: Performance of Templates: time 0.009543/0.1425, allocations: 5.501 MB / 485.7 MB, free: 14 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)