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.001404/0.001409, allocations: 177.9 kB / 8.043 MB, free: 1.016 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.553/1.553, allocations: 221.5 MB / 230 MB, free: 3.203 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.0008646/0.0008646, allocations: 97.39 kB / 280.9 MB, free: 1.176 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04399/0.04399, allocations: 8.103 MB / 339.8 MB, free: 6.246 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.406e-05/1.409e-05, allocations: 4 kB / 398.5 MB, free: 67.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08773/0.08776, allocations: 52.52 MB / 451 MB, free: 15.16 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3539/0.4417, allocations: 85.81 MB / 0.5242 GB, free: 8.219 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.442, allocations: 57.86 kB / 0.5243 GB, free: 8.191 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03612/0.4781, allocations: 12.76 MB / 0.5367 GB, free: 13.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4782, allocations: 0 / 0.5367 GB, free: 13.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.577e-05/0.4782, allocations: 15.98 kB / 0.5368 GB, free: 13.55 MB / 362.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.001782/0.48, allocations: 0.8729 MB / 0.5376 GB, free: 12.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.4801, allocations: 15.98 kB / 0.5376 GB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.4802, allocations: 55.34 kB / 0.5377 GB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009832/0.4812, allocations: 0.5216 MB / 0.5382 GB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.4813, allocations: 8 kB / 0.5382 GB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.891e-05/0.4813, allocations: 20 kB / 0.5382 GB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004115/0.4817, allocations: 217.5 kB / 0.5384 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005467/0.4823, allocations: 333.1 kB / 0.5387 GB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.4823, allocations: 0 / 0.5387 GB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.756e-05/0.4824, allocations: 4 kB / 0.5387 GB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.4824, allocations: 8 kB / 0.5387 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002377/0.4848, allocations: 1.477 MB / 0.5402 GB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002955/0.4851, allocations: 228 kB / 0.5404 GB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/0.4852, allocations: 90.8 kB / 0.5405 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.301e-05/0.4853, allocations: 0 / 0.5405 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.4853, allocations: 34.56 kB / 0.5405 GB, free: 10.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.573e-06/0.4853, allocations: 0 / 0.5405 GB, free: 10.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.003334/0.4887, allocations: 0.9293 MB / 0.5414 GB, free: 9.168 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.4888, allocations: 209 kB / 0.5416 GB, free: 8.918 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006044/0.4894, allocations: 488.8 kB / 0.5421 GB, free: 8.559 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.335e-05/0.4894, allocations: 33.64 kB / 0.5421 GB, free: 8.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.4896, allocations: 266.7 kB / 0.5424 GB, free: 8.332 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/0.4897, allocations: 36.95 kB / 0.5424 GB, free: 8.301 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.354e-05/0.4897, allocations: 4 kB / 0.5424 GB, free: 8.297 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.4898, allocations: 352.5 kB / 0.5428 GB, free: 7.961 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.49, allocations: 72.91 kB / 0.5428 GB, free: 7.914 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.4902, allocations: 188.8 kB / 0.543 GB, free: 7.711 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00293/0.4931, allocations: 0.8164 MB / 0.5438 GB, free: 6.926 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.4931, allocations: 0 / 0.5438 GB, free: 6.926 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.003279/0.4964, allocations: 0.9955 MB / 0.5448 GB, free: 5.977 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.4965, allocations: 8 kB / 0.5448 GB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.4965, allocations: 0 / 0.5448 GB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.4965, allocations: 4 kB / 0.5448 GB, free: 5.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.4967, allocations: 52.23 kB / 0.5448 GB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.4968, allocations: 7.984 kB / 0.5448 GB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006527/0.4974, allocations: 123.2 kB / 0.545 GB, free: 5.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.019e-05/0.4975, allocations: 8 kB / 0.545 GB, free: 5.781 MB / 362.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 () * 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.0001148/0.4976, allocations: 120.5 kB / 0.5451 GB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.258e-05/0.4977, allocations: 51.47 kB / 0.5451 GB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003291/0.501, allocations: 0.9717 MB / 0.5461 GB, free: 4.695 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.501, allocations: 4 kB / 0.5461 GB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.501, allocations: 0 / 0.5461 GB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.501, allocations: 96 / 0.5461 GB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004008/0.505, allocations: 1.433 MB / 0.5475 GB, free: 3.359 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.5051, allocations: 0 / 0.5475 GB, free: 3.359 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002005/0.5053, allocations: 31.97 kB / 0.5475 GB, free: 3.328 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.5053, allocations: 0 / 0.5475 GB, free: 3.328 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.5053, allocations: 4 kB / 0.5475 GB, free: 3.324 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.74e-06/0.5054, allocations: 0 / 0.5475 GB, free: 3.324 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.5054, allocations: 0 / 0.5475 GB, free: 3.324 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003595/0.509, allocations: 1.158 MB / 0.5487 GB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000265/0.5093, allocations: 192.6 kB / 0.5488 GB, free: 2.035 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.712e-05/0.5093, allocations: 4.062 kB / 0.5488 GB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006758/0.51, allocations: 129.2 kB / 0.549 GB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003085/0.5103, allocations: 129.7 kB / 0.5491 GB, free: 1.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.44e-05/0.5104, allocations: 8.938 kB / 0.5491 GB, free: 1.781 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005877/0.511, allocations: 388.4 kB / 0.5495 GB, free: 1.512 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.511, allocations: 0 / 0.5495 GB, free: 1.512 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004942/0.5115, allocations: 99.75 kB / 0.5496 GB, free: 1.414 MB / 362.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 () * 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.0008556/0.5123, allocations: 354.3 kB / 0.5499 GB, free: 1.141 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004161/0.5128, allocations: 187.1 kB / 0.5501 GB, free: 1.004 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5128, allocations: 0 / 0.5501 GB, free: 1.004 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002012/0.513, allocations: 116.2 kB / 0.5502 GB, free: 0.9219 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005098/0.5135, allocations: 92.03 kB / 0.5503 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001444/0.515, allocations: 0.603 MB / 0.5509 GB, free: 284 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004771/0.5154, allocations: 0.8368 MB / 0.5517 GB, free: 15.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000262/0.5157, allocations: 63.25 kB / 0.5517 GB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.5158, allocations: 35.42 kB / 0.5518 GB, free: 15.33 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5158, allocations: 0 / 0.5518 GB, free: 15.33 MB / 378.7 MB Notification: Performance of Templates: time 0.01087/0.5267, allocations: 5.675 MB / 0.5573 GB, free: 9.707 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)