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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 179.9 kB / 15.8 MB, free: 6.34 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.389/1.389, allocations: 223.2 MB / 239.7 MB, free: 1.781 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.0008715/0.0008714, allocations: 96 kB / 290.9 MB, free: 13.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05732/0.05732, allocations: 8.101 MB / 350.1 MB, free: 2.738 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003251/0.0003251, allocations: 11.45 kB / 413.1 MB, free: 89.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1031, allocations: 52.52 MB / 465.6 MB, free: 42.1 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3157/0.4189, allocations: 86.21 MB / 0.5389 GB, free: 16.6 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001456/0.4191, allocations: 59.73 kB / 0.5389 GB, free: 16.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03169/0.4508, allocations: 12.94 MB / 0.5516 GB, free: 31.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.4508, allocations: 7.938 kB / 0.5516 GB, free: 31.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.056e-05/0.4509, allocations: 15.62 kB / 0.5516 GB, free: 31.39 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.002018/0.4529, allocations: 1.002 MB / 0.5526 GB, free: 30.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.4529, allocations: 13.22 kB / 0.5526 GB, free: 30.83 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.453, allocations: 55.91 kB / 0.5527 GB, free: 30.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000895/0.4539, allocations: 0.524 MB / 0.5532 GB, free: 30.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.162e-05/0.454, allocations: 19.19 kB / 0.5532 GB, free: 30.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.638e-05/0.4541, allocations: 23.53 kB / 0.5532 GB, free: 30.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006708/0.4547, allocations: 393.9 kB / 0.5536 GB, free: 30.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.4548, allocations: 0 / 0.5536 GB, free: 30.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.956e-05/0.4548, allocations: 18.86 kB / 0.5536 GB, free: 30.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.4548, allocations: 6.875 kB / 0.5536 GB, free: 30.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004552/0.4553, allocations: 260.3 kB / 0.5539 GB, free: 30.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001955/0.4572, allocations: 1.541 MB / 0.5554 GB, free: 29.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004677/0.4577, allocations: 295.8 kB / 0.5556 GB, free: 29.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.898e-05/0.4578, allocations: 6.125 kB / 0.5556 GB, free: 29.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.4578, allocations: 37.16 kB / 0.5557 GB, free: 29.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.333e-06/0.4578, allocations: 0 / 0.5557 GB, free: 29.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006813/0.4585, allocations: 310.7 kB / 0.556 GB, free: 29.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/0.4586, allocations: 212.4 kB / 0.5562 GB, free: 29.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006195/0.4592, allocations: 0.5199 MB / 0.5567 GB, free: 29.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.4592, allocations: 31.14 kB / 0.5567 GB, free: 29.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.4594, allocations: 265.7 kB / 0.557 GB, free: 28.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.408e-05/0.4594, allocations: 44.36 kB / 0.557 GB, free: 28.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.414e-05/0.4594, allocations: 3.688 kB / 0.557 GB, free: 28.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.43e-05/0.4595, allocations: 359 kB / 0.5574 GB, free: 28.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.4597, allocations: 97.56 kB / 0.5575 GB, free: 28.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002703/0.46, allocations: 227 kB / 0.5577 GB, free: 28.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.4602, allocations: 78.92 kB / 0.5577 GB, free: 28.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4602, allocations: 0 / 0.5577 GB, free: 28.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005314/0.4607, allocations: 306.5 kB / 0.558 GB, free: 28.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.4607, allocations: 6.5 kB / 0.558 GB, free: 28.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.4608, allocations: 1.75 kB / 0.558 GB, free: 28.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.4608, allocations: 4.562 kB / 0.5581 GB, free: 28.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.461, allocations: 56.19 kB / 0.5581 GB, free: 28.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.461, allocations: 6.234 kB / 0.5581 GB, free: 28.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005637/0.4616, allocations: 125.7 kB / 0.5582 GB, free: 28.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.187e-05/0.4616, allocations: 16.67 kB / 0.5582 GB, free: 28.35 MB / 378.7 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.on1,pulseSeries.on2,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002/0.4618, allocations: 186.4 kB / 0.5584 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-05/0.4619, allocations: 48.77 kB / 0.5585 GB, free: 28.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000567/0.4625, allocations: 266.1 kB / 0.5587 GB, free: 28.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.4625, allocations: 5.172 kB / 0.5587 GB, free: 28.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4625, allocations: 1.562 kB / 0.5587 GB, free: 28.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4625, allocations: 128 / 0.5587 GB, free: 28.15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.4636, allocations: 0.7691 MB / 0.5595 GB, free: 27.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.4636, allocations: 0 / 0.5595 GB, free: 27.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001479/0.4638, allocations: 31.75 kB / 0.5595 GB, free: 27.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.4638, allocations: 0 / 0.5595 GB, free: 27.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/0.4638, allocations: 6.219 kB / 0.5595 GB, free: 27.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.4638, allocations: 0 / 0.5595 GB, free: 27.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4638, allocations: 1.812 kB / 0.5595 GB, free: 27.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007496/0.4646, allocations: 481.9 kB / 0.56 GB, free: 27.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002235/0.4648, allocations: 201.1 kB / 0.5602 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.409e-05/0.4649, allocations: 6.656 kB / 0.5602 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000619/0.4655, allocations: 136.1 kB / 0.5603 GB, free: 27.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002539/0.4658, allocations: 127 kB / 0.5604 GB, free: 27.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.4658, allocations: 6.312 kB / 0.5604 GB, free: 27.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004807/0.4663, allocations: 422.5 kB / 0.5608 GB, free: 27.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4663, allocations: 4 kB / 0.5608 GB, free: 27.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005087/0.4668, allocations: 117.6 kB / 0.561 GB, free: 27.37 MB / 378.7 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 (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.0009035/0.4677, allocations: 391.8 kB / 0.5613 GB, free: 27.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005404/0.4683, allocations: 237.6 kB / 0.5616 GB, free: 27.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.4683, allocations: 1.219 kB / 0.5616 GB, free: 27.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002661/0.4686, allocations: 151.5 kB / 0.5617 GB, free: 27.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004767/0.4691, allocations: 90.92 kB / 0.5618 GB, free: 27.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.4706, allocations: 0.9799 MB / 0.5627 GB, free: 26.69 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.471, allocations: 0.8326 MB / 0.5636 GB, free: 25.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002547/0.4713, allocations: 72.41 kB / 0.5636 GB, free: 25.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.4714, allocations: 35.62 kB / 0.5637 GB, free: 25.96 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4714, allocations: 0 / 0.5637 GB, free: 25.96 MB / 378.7 MB Notification: Performance of Templates: time 0.01148/0.4829, allocations: 7.141 MB / 0.5706 GB, free: 23.45 MB / 378.7 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)