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.00092/0.0009202, allocations: 172.2 kB / 16.8 MB, free: 4.898 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.507/1.507, allocations: 223.3 MB / 240.8 MB, free: 9.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008451/0.0008451, allocations: 93.11 kB / 292 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04422/0.04422, allocations: 8.094 MB / 351.2 MB, free: 15.35 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003573, allocations: 12 kB / 414.4 MB, free: 57.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0822/0.08258, allocations: 52.5 MB / 466.9 MB, free: 4.723 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2972/0.3798, allocations: 86.28 MB / 0.5402 GB, free: 15.28 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/0.3801, allocations: 61.78 kB / 0.5403 GB, free: 15.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03369/0.4138, allocations: 12.95 MB / 0.5529 GB, free: 4.152 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.4138, allocations: 4 kB / 0.5529 GB, free: 4.148 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.315e-05/0.4139, allocations: 8 kB / 0.5529 GB, free: 4.141 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.001874/0.4157, allocations: 1.001 MB / 0.5539 GB, free: 3.129 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.4158, allocations: 8.031 kB / 0.5539 GB, free: 3.121 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.4159, allocations: 56.28 kB / 0.554 GB, free: 3.066 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008859/0.4168, allocations: 0.5428 MB / 0.5545 GB, free: 2.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.46e-05/0.4168, allocations: 19.69 kB / 0.5545 GB, free: 2.562 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.856e-05/0.4169, allocations: 27.44 kB / 0.5545 GB, free: 2.543 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006179/0.4175, allocations: 392.1 kB / 0.5549 GB, free: 2.227 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.4175, allocations: 192 / 0.5549 GB, free: 2.227 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.617e-05/0.4176, allocations: 18.94 kB / 0.5549 GB, free: 2.219 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.4176, allocations: 8 kB / 0.5549 GB, free: 2.211 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004756/0.4181, allocations: 260.6 kB / 0.5552 GB, free: 2.031 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.4201, allocations: 1.537 MB / 0.5567 GB, free: 0.6797 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004899/0.4206, allocations: 304.8 kB / 0.557 GB, free: 412 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002078/0.4208, allocations: 106.2 kB / 0.5571 GB, free: 328 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.541e-05/0.4209, allocations: 4 kB / 0.5571 GB, free: 324 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.4209, allocations: 37.94 kB / 0.5571 GB, free: 280 kB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.202e-06/0.4209, allocations: 0 / 0.5571 GB, free: 280 kB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006982/0.4216, allocations: 321.4 kB / 0.5574 GB, free: 8 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.4217, allocations: 209.6 kB / 0.5576 GB, free: 15.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006574/0.4224, allocations: 0.5787 MB / 0.5582 GB, free: 15.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.4225, allocations: 29.7 kB / 0.5582 GB, free: 15.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.4226, allocations: 267.7 kB / 0.5585 GB, free: 15.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.764e-05/0.4227, allocations: 35.45 kB / 0.5585 GB, free: 14.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.438e-05/0.4227, allocations: 8 kB / 0.5585 GB, free: 14.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.4228, allocations: 350.8 kB / 0.5588 GB, free: 14.63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002179/0.4231, allocations: 103.9 kB / 0.5589 GB, free: 14.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002811/0.4234, allocations: 217.8 kB / 0.5592 GB, free: 14.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003492/0.4237, allocations: 211.8 kB / 0.5594 GB, free: 14.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4237, allocations: 0 / 0.5594 GB, free: 14.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005572/0.4243, allocations: 300.8 kB / 0.5596 GB, free: 13.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.4243, allocations: 4 kB / 0.5596 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.4243, allocations: 4 kB / 0.5596 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.4243, allocations: 4.312 kB / 0.5597 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.4245, allocations: 47.97 kB / 0.5597 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.4246, allocations: 7.938 kB / 0.5597 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005105/0.4251, allocations: 139.7 kB / 0.5598 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.118e-05/0.4251, allocations: 12.12 kB / 0.5599 GB, free: 13.51 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.0001866/0.4253, allocations: 185.7 kB / 0.56 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.212e-05/0.4254, allocations: 47.44 kB / 0.5601 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006156/0.426, allocations: 265.3 kB / 0.5603 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.426, allocations: 0 / 0.5603 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.426, allocations: 0 / 0.5603 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.426, allocations: 7.922 kB / 0.5603 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.4271, allocations: 0.7612 MB / 0.5611 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4271, allocations: 0 / 0.5611 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/0.4273, allocations: 35.91 kB / 0.5611 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.4273, allocations: 7.922 kB / 0.5611 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.4273, allocations: 12.03 kB / 0.5611 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.4274, allocations: 96 / 0.5611 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4274, allocations: 3.938 kB / 0.5611 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007788/0.4282, allocations: 467.6 kB / 0.5616 GB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.4284, allocations: 199.5 kB / 0.5618 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.118e-05/0.4285, allocations: 4 kB / 0.5618 GB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005798/0.429, allocations: 135.9 kB / 0.5619 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000267/0.4293, allocations: 127.7 kB / 0.562 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.4293, allocations: 7.984 kB / 0.562 GB, free: 11.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005074/0.4299, allocations: 427.1 kB / 0.5624 GB, free: 10.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4299, allocations: 0 / 0.5624 GB, free: 10.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004111/0.4303, allocations: 115.7 kB / 0.5626 GB, free: 10.63 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.0008256/0.4311, allocations: 394.3 kB / 0.5629 GB, free: 10.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005075/0.4316, allocations: 235.8 kB / 0.5632 GB, free: 10.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4316, allocations: 0 / 0.5632 GB, free: 10.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002814/0.4319, allocations: 152.5 kB / 0.5633 GB, free: 9.992 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005768/0.4325, allocations: 102.4 kB / 0.5634 GB, free: 9.891 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.434, allocations: 0.9796 MB / 0.5644 GB, free: 8.883 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.4344, allocations: 0.8233 MB / 0.5652 GB, free: 8.035 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002448/0.4347, allocations: 71.23 kB / 0.5652 GB, free: 7.965 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.4348, allocations: 35.44 kB / 0.5653 GB, free: 7.93 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4348, allocations: 0 / 0.5653 GB, free: 7.93 MB / 378.7 MB Notification: Performance of Templates: time 0.01121/0.446, allocations: 7.239 MB / 0.5723 GB, free: 0.7656 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)