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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 180.9 kB / 15.8 MB, free: 6.336 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 223.2 MB / 239.7 MB, free: 1.797 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 101.8 kB / 290.9 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05801/0.05801, allocations: 8.106 MB / 350.1 MB, free: 2.719 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003317/0.0003317, allocations: 8.375 kB / 413.1 MB, free: 89.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1009, allocations: 52.53 MB / 465.6 MB, free: 42.09 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3653/0.4662, allocations: 81.13 MB / 0.5339 GB, free: 16.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002003/0.4665, allocations: 65.5 kB / 0.534 GB, free: 16.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02575/0.4923, allocations: 5.983 MB / 0.5398 GB, free: 32.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.428e-06/0.4923, allocations: 0.875 kB / 0.5398 GB, free: 32.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.829e-05/0.4923, allocations: 3.844 kB / 0.5398 GB, free: 32.08 MB / 378.7 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.002366/0.4947, allocations: 0.8006 MB / 0.5406 GB, free: 31.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.4948, allocations: 7.781 kB / 0.5406 GB, free: 31.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.4949, allocations: 31.22 kB / 0.5407 GB, free: 31.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008292/0.4958, allocations: 380.4 kB / 0.541 GB, free: 31.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.4958, allocations: 11.97 kB / 0.541 GB, free: 31.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.365e-05/0.4959, allocations: 23.19 kB / 0.5411 GB, free: 31.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007253/0.4966, allocations: 276.7 kB / 0.5413 GB, free: 31.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.4966, allocations: 4 kB / 0.5413 GB, free: 31.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.344e-05/0.4967, allocations: 15.66 kB / 0.5413 GB, free: 31.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.4967, allocations: 9.734 kB / 0.5414 GB, free: 31.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006406/0.4974, allocations: 192.1 kB / 0.5415 GB, free: 31.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.4992, allocations: 0.8606 MB / 0.5424 GB, free: 30.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008929/0.5002, allocations: 304 kB / 0.5427 GB, free: 30.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.577e-05/0.5002, allocations: 10.31 kB / 0.5427 GB, free: 30.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.5003, allocations: 38.38 kB / 0.5427 GB, free: 30.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 2.244e-06/0.5003, allocations: 0 / 0.5427 GB, free: 30.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009755/0.5013, allocations: 294.5 kB / 0.543 GB, free: 30.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.5013, allocations: 216.3 kB / 0.5432 GB, free: 30.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000489/0.5018, allocations: 334.7 kB / 0.5435 GB, free: 30.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.5019, allocations: 33.52 kB / 0.5436 GB, free: 30.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.502, allocations: 167 kB / 0.5437 GB, free: 30.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.502, allocations: 50.31 kB / 0.5438 GB, free: 30.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.863e-05/0.5021, allocations: 3.938 kB / 0.5438 GB, free: 30.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.518e-05/0.5022, allocations: 337.5 kB / 0.5441 GB, free: 29.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002962/0.5025, allocations: 87.36 kB / 0.5442 GB, free: 29.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003379/0.5028, allocations: 158.6 kB / 0.5443 GB, free: 29.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002231/0.5031, allocations: 60.94 kB / 0.5444 GB, free: 29.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.5031, allocations: 0 / 0.5444 GB, free: 29.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006271/0.5037, allocations: 223.4 kB / 0.5446 GB, free: 29.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.5037, allocations: 3.875 kB / 0.5446 GB, free: 29.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.5038, allocations: 3.844 kB / 0.5446 GB, free: 29.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.5038, allocations: 3.938 kB / 0.5446 GB, free: 29.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.504, allocations: 34.8 kB / 0.5446 GB, free: 29.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.504, allocations: 0 / 0.5446 GB, free: 29.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007443/0.5048, allocations: 123.9 kB / 0.5448 GB, free: 29.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.266e-05/0.5048, allocations: 11.41 kB / 0.5448 GB, free: 29.67 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(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: 2 * Number of states: 0 () * 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 initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002477/0.5051, allocations: 156.5 kB / 0.5449 GB, free: 29.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-05/0.5052, allocations: 24.94 kB / 0.5449 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008429/0.506, allocations: 248.3 kB / 0.5452 GB, free: 29.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.5061, allocations: 0 / 0.5452 GB, free: 29.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.5061, allocations: 0.5156 kB / 0.5452 GB, free: 29.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.5061, allocations: 4.781 kB / 0.5452 GB, free: 29.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.5074, allocations: 0.6644 MB / 0.5458 GB, free: 29.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.5074, allocations: 0 / 0.5458 GB, free: 29.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.5077, allocations: 33.47 kB / 0.5459 GB, free: 29.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.5077, allocations: 0 / 0.5459 GB, free: 29.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.631e-05/0.5077, allocations: 4 kB / 0.5459 GB, free: 29.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.5078, allocations: 4 kB / 0.5459 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/0.5078, allocations: 5.953 kB / 0.5459 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.5088, allocations: 444.8 kB / 0.5463 GB, free: 29.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.5089, allocations: 113.6 kB / 0.5464 GB, free: 28.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.048e-05/0.509, allocations: 3.688 kB / 0.5464 GB, free: 28.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008282/0.5098, allocations: 120.3 kB / 0.5465 GB, free: 28.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003701/0.5102, allocations: 125.1 kB / 0.5466 GB, free: 28.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/0.5103, allocations: 7.625 kB / 0.5467 GB, free: 28.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000427/0.5107, allocations: 272 kB / 0.5469 GB, free: 28.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5107, allocations: 4 kB / 0.5469 GB, free: 28.81 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005645/0.5113, allocations: 76.94 kB / 0.547 GB, free: 28.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008435/0.5122, allocations: 286.6 kB / 0.5473 GB, free: 28.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006778/0.5129, allocations: 198.7 kB / 0.5475 GB, free: 28.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.5129, allocations: 4.062 kB / 0.5475 GB, free: 28.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003967/0.5133, allocations: 131.5 kB / 0.5476 GB, free: 28.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.5136, allocations: 27.22 kB / 0.5476 GB, free: 28.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.5159, allocations: 0.7691 MB / 0.5484 GB, free: 28.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004169/0.5163, allocations: 0.7649 MB / 0.5491 GB, free: 27.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002342/0.5166, allocations: 38.14 kB / 0.5491 GB, free: 27.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001542/0.5168, allocations: 24.77 kB / 0.5492 GB, free: 27.6 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5168, allocations: 0 / 0.5492 GB, free: 27.6 MB / 378.7 MB Notification: Performance of Templates: time 0.01137/0.5282, allocations: 4.294 MB / 0.5534 GB, free: 27.31 MB / 378.7 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)