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-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.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.001465/0.001466, allocations: 115.5 kB / 17.13 MB, free: 6.035 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.001444/0.001444, allocations: 189.1 kB / 18.06 MB, free: 5.113 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.464/1.464, allocations: 222.9 MB / 241.8 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04646/0.04646, allocations: 8.097 MB / 300 MB, free: 6.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 75.88 kB / 415.2 MB, free: 21.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09339/0.09459, allocations: 51.51 MB / 466.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003488/0.0981, allocations: 2.383 MB / 469.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007554/0.09887, allocations: 0.506 MB / 469.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.394e-05/0.09898, allocations: 4 kB / 469.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003579/0.09935, allocations: 91.44 kB / 469.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001838/0.09955, allocations: 87.45 kB / 469.8 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.09977, allocations: 83.78 kB / 469.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002724/0.1001, allocations: 283 kB / 470.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.1003, allocations: 107.3 kB / 470.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.1004, allocations: 115.6 kB / 470.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.1006, allocations: 139.4 kB / 470.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.636e-05/0.1007, allocations: 32 kB / 470.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.1008, allocations: 79.92 kB / 470.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.101, allocations: 111.7 kB / 470.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001365/0.1011, allocations: 151.2 kB / 470.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004023/0.1015, allocations: 402.7 kB / 471.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1016, allocations: 0 / 471.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1016, allocations: 0 / 471.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.1016, allocations: 0 / 471.3 MB, free: 13.53 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.001876/0.1035, allocations: 0.7988 MB / 472.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.1035, allocations: 11.89 kB / 472.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.041e-05/0.1036, allocations: 36.56 kB / 472.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000417/0.104, allocations: 347.5 kB / 472.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.104, allocations: 20.64 kB / 472.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.073e-05/0.1041, allocations: 16.38 kB / 472.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005103/0.1046, allocations: 291 kB / 472.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.1046, allocations: 192 / 472.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.1047, allocations: 7.938 kB / 472.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.812e-06/0.1047, allocations: 4 kB / 472.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003858/0.1051, allocations: 196.1 kB / 473 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001268/0.1063, allocations: 0.8453 MB / 473.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006187/0.107, allocations: 303.6 kB / 474.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003341/0.1073, allocations: 144.8 kB / 474.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.959e-05/0.1074, allocations: 4 kB / 474.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.1074, allocations: 34.56 kB / 474.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.323e-06/0.1074, allocations: 0 / 474.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007327/0.1082, allocations: 293.3 kB / 474.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.1083, allocations: 213.6 kB / 474.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004129/0.1087, allocations: 362.7 kB / 475.1 MB, free: 9.363 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.1087, allocations: 25.7 kB / 475.2 MB, free: 9.332 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.1088, allocations: 172.1 kB / 475.3 MB, free: 9.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.903e-05/0.1089, allocations: 43.36 kB / 475.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.456e-05/0.109, allocations: 37.7 kB / 475.4 MB, free: 9.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.1091, allocations: 342.8 kB / 475.8 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/0.1093, allocations: 75.95 kB / 475.8 MB, free: 8.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.1096, allocations: 155 kB / 476 MB, free: 8.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007916/0.1104, allocations: 242.3 kB / 476.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1104, allocations: 0 / 476.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000477/0.1109, allocations: 209.3 kB / 476.4 MB, free: 8.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.1109, allocations: 4 kB / 476.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.1109, allocations: 0 / 476.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.1109, allocations: 4 kB / 476.4 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.1111, allocations: 39.91 kB / 476.5 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.1111, allocations: 0 / 476.5 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005509/0.1117, allocations: 91.8 kB / 476.6 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.1117, allocations: 8.125 kB / 476.6 MB, free: 7.879 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.0002375/0.112, allocations: 161.7 kB / 476.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.247e-05/0.112, allocations: 27.72 kB / 476.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005878/0.1126, allocations: 243.3 kB / 477 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1126, allocations: 0 / 477 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1126, allocations: 0 / 477 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1127, allocations: 4 kB / 477 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009431/0.1136, allocations: 0.6589 MB / 477.6 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1136, allocations: 0 / 477.6 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.1138, allocations: 23.98 kB / 477.7 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.1138, allocations: 4 kB / 477.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.1138, allocations: 11.95 kB / 477.7 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.1138, allocations: 3.938 kB / 477.7 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1138, allocations: 0 / 477.7 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007288/0.1146, allocations: 439.7 kB / 478.1 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.212e-05/0.1147, allocations: 108.8 kB / 478.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/0.1147, allocations: 4 kB / 478.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005588/0.1153, allocations: 87.88 kB / 478.3 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002475/0.1155, allocations: 123.8 kB / 478.4 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.1156, allocations: 8 kB / 478.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002741/0.1158, allocations: 273.9 kB / 478.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1159, allocations: 0 / 478.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000332/0.1162, allocations: 71.84 kB / 478.8 MB, free: 5.539 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.0005717/0.1168, allocations: 262.9 kB / 479 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005194/0.1173, allocations: 199.8 kB / 479.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1173, allocations: 4.125 kB / 479.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002871/0.1176, allocations: 135.8 kB / 479.4 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.0003374/0.118, allocations: 32.48 kB / 479.4 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.1198, allocations: 0.6868 MB / 480.1 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.1201, allocations: 0.7635 MB / 480.9 MB, free: 3.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.1202, allocations: 35.44 kB / 480.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of SimCode: time 2.925e-06/0.1202, allocations: 0 / 480.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of Templates: time 0.006774/0.127, allocations: 4.322 MB / 485.2 MB, free: 15.13 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)