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.001039/0.001039, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.205/1.205, allocations: 221.4 MB / 235.1 MB, free: 14.43 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.0009162/0.0009162, allocations: 94.47 kB / 286.1 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04171/0.04171, allocations: 8.106 MB / 345.1 MB, free: 1.926 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.835e-05/2.842e-05, allocations: 4 kB / 405.5 MB, free: 61.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07618/0.07623, allocations: 52.51 MB / 458 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3005/0.3768, allocations: 86.41 MB / 0.5316 GB, free: 15.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.3771, allocations: 60.72 kB / 0.5317 GB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03603/0.4131, allocations: 12.93 MB / 0.5443 GB, free: 4.512 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4132, allocations: 4 kB / 0.5443 GB, free: 4.508 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.295e-05/0.4132, allocations: 8 kB / 0.5443 GB, free: 4.5 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.001635/0.4148, allocations: 0.8732 MB / 0.5452 GB, free: 3.617 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.4149, allocations: 8.031 kB / 0.5452 GB, free: 3.609 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.415, allocations: 55.34 kB / 0.5452 GB, free: 3.555 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009136/0.4159, allocations: 0.5195 MB / 0.5457 GB, free: 3.082 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.656e-05/0.416, allocations: 19.12 kB / 0.5458 GB, free: 3.074 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.205e-05/0.416, allocations: 25.5 kB / 0.5458 GB, free: 3.055 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000545/0.4166, allocations: 372.5 kB / 0.5461 GB, free: 2.754 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.4166, allocations: 0 / 0.5461 GB, free: 2.754 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.035e-05/0.4167, allocations: 18.39 kB / 0.5462 GB, free: 2.746 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.4167, allocations: 11.94 kB / 0.5462 GB, free: 2.734 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003743/0.4171, allocations: 227.9 kB / 0.5464 GB, free: 2.586 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.4192, allocations: 1.541 MB / 0.5479 GB, free: 1.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002781/0.4195, allocations: 236.1 kB / 0.5481 GB, free: 1.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.4196, allocations: 90.17 kB / 0.5482 GB, free: 0.9531 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.624e-05/0.4197, allocations: 8.031 kB / 0.5482 GB, free: 0.9453 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/0.4197, allocations: 37.31 kB / 0.5483 GB, free: 0.9023 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.953e-06/0.4197, allocations: 4 kB / 0.5483 GB, free: 0.8984 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003594/0.4201, allocations: 189.8 kB / 0.5484 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.648e-05/0.4202, allocations: 205.6 kB / 0.5486 GB, free: 500 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005676/0.4207, allocations: 0.5132 MB / 0.5491 GB, free: 104 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.548e-05/0.4208, allocations: 25.7 kB / 0.5492 GB, free: 72 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001659/0.4209, allocations: 271.4 kB / 0.5494 GB, free: 15.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.751e-05/0.421, allocations: 37.27 kB / 0.5495 GB, free: 15.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.361e-05/0.421, allocations: 3.188 kB / 0.5495 GB, free: 15.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.4211, allocations: 357.3 kB / 0.5498 GB, free: 15.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.4213, allocations: 77.77 kB / 0.5499 GB, free: 15.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.4215, allocations: 203.6 kB / 0.5501 GB, free: 15.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001024/0.4216, allocations: 59.17 kB / 0.5501 GB, free: 15.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4216, allocations: 0 / 0.5501 GB, free: 15.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003845/0.422, allocations: 258.3 kB / 0.5504 GB, free: 14.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.422, allocations: 8 kB / 0.5504 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.422, allocations: 4.297 kB / 0.5504 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.422, allocations: 8 kB / 0.5504 GB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002024/0.4223, allocations: 47.92 kB / 0.5504 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.4223, allocations: 7.938 kB / 0.5504 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006017/0.4229, allocations: 134.3 kB / 0.5506 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.96e-05/0.4229, allocations: 12 kB / 0.5506 GB, free: 14.78 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 () * 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 8.996e-05/0.423, allocations: 121.1 kB / 0.5507 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.257e-05/0.4231, allocations: 51.39 kB / 0.5507 GB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004409/0.4236, allocations: 221.4 kB / 0.551 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.4236, allocations: 4 kB / 0.551 GB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4236, allocations: 0 / 0.551 GB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.4236, allocations: 3.938 kB / 0.551 GB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008916/0.4245, allocations: 0.7309 MB / 0.5517 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4245, allocations: 0 / 0.5517 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.4247, allocations: 31.92 kB / 0.5517 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.4247, allocations: 0 / 0.5517 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.4247, allocations: 7.625 kB / 0.5517 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4247, allocations: 0 / 0.5517 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4247, allocations: 4.156 kB / 0.5517 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005011/0.4252, allocations: 420.4 kB / 0.5521 GB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002117/0.4254, allocations: 196.7 kB / 0.5523 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.996e-05/0.4255, allocations: 3.5 kB / 0.5523 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006602/0.4262, allocations: 143.3 kB / 0.5524 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002506/0.4264, allocations: 130.5 kB / 0.5526 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.147e-05/0.4265, allocations: 4 kB / 0.5526 GB, free: 12.94 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004403/0.4269, allocations: 431.1 kB / 0.553 GB, free: 12.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4269, allocations: 0 / 0.553 GB, free: 12.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00041/0.4273, allocations: 110.8 kB / 0.5531 GB, free: 12.53 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 () * 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.0007629/0.4281, allocations: 355.2 kB / 0.5534 GB, free: 12.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003404/0.4285, allocations: 197.1 kB / 0.5536 GB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.4285, allocations: 0 / 0.5536 GB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.4287, allocations: 125.5 kB / 0.5537 GB, free: 12.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.4291, allocations: 94.08 kB / 0.5538 GB, free: 11.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.4304, allocations: 0.6206 MB / 0.5544 GB, free: 11.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.4307, allocations: 0.8296 MB / 0.5552 GB, free: 10.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002411/0.431, allocations: 79.23 kB / 0.5553 GB, free: 10.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.4311, allocations: 31.44 kB / 0.5553 GB, free: 10.44 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4311, allocations: 0 / 0.5553 GB, free: 10.44 MB / 378.7 MB Notification: Performance of Templates: time 0.0115/0.4426, allocations: 7.233 MB / 0.5624 GB, free: 3.262 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)