Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Components.myBattery.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.Components.myBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Components.myBattery") translateModel(PowerSysPro.Components.myBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Components.myBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009484/0.0009483, allocations: 181.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.179/1.179, 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.0008816/0.0008815, allocations: 91.77 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.03869/0.03869, allocations: 8.11 MB / 345.1 MB, free: 1.93 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 2.644e-05/2.647e-05, allocations: 0 / 405.5 MB, free: 61.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08262/0.08266, allocations: 52.51 MB / 458 MB, free: 9.469 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3215/0.4042, allocations: 82.08 MB / 0.5274 GB, free: 3.926 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001518/0.4044, allocations: 54.98 kB / 0.5275 GB, free: 3.902 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02615/0.4306, allocations: 10.66 MB / 0.5379 GB, free: 10.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4306, allocations: 0 / 0.5379 GB, free: 10.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2e-05/0.4307, allocations: 12 kB / 0.5379 GB, free: 10.64 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001398/0.4321, allocations: 0.9168 MB / 0.5388 GB, free: 9.723 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.4321, allocations: 8.031 kB / 0.5388 GB, free: 9.715 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/0.4323, allocations: 98.78 kB / 0.5389 GB, free: 9.617 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.4334, allocations: 0.7193 MB / 0.5396 GB, free: 8.934 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.252e-05/0.4335, allocations: 70.84 kB / 0.5396 GB, free: 8.855 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.287e-05/0.4335, allocations: 23.7 kB / 0.5397 GB, free: 8.836 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000413/0.4339, allocations: 268.8 kB / 0.5399 GB, free: 8.613 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.434, allocations: 0 / 0.5399 GB, free: 8.613 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.434, allocations: 7.5 kB / 0.5399 GB, free: 8.609 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.434, allocations: 7.938 kB / 0.5399 GB, free: 8.602 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000252/0.4343, allocations: 134.7 kB / 0.5401 GB, free: 8.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00206/0.4363, allocations: 1.338 MB / 0.5414 GB, free: 7.406 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.4367, allocations: 255 kB / 0.5416 GB, free: 7.188 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002409/0.437, allocations: 109.5 kB / 0.5417 GB, free: 7.109 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001117/0.4381, allocations: 0.6878 MB / 0.5424 GB, free: 6.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.4382, allocations: 37.83 kB / 0.5424 GB, free: 6.438 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.653e-06/0.4382, allocations: 0 / 0.5424 GB, free: 6.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.00038/0.4386, allocations: 202.2 kB / 0.5426 GB, free: 6.258 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.4387, allocations: 235.3 kB / 0.5428 GB, free: 5.973 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:54:7-55:59:writable] Warning: Parameter SOC_start has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:53:7-53:73:writable] Warning: Parameter Np has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:52:7-52:71:writable] Warning: Parameter Ns has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:425:9-425:73:writable] Warning: Parameter UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001896/0.4406, allocations: 1.421 MB / 0.5442 GB, free: 4.844 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/0.4406, allocations: 29.58 kB / 0.5443 GB, free: 4.812 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003419/0.441, allocations: 420 kB / 0.5447 GB, free: 4.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.899e-05/0.441, allocations: 46.61 kB / 0.5447 GB, free: 4.551 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.957e-06/0.441, allocations: 3.312 kB / 0.5447 GB, free: 4.551 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.4412, allocations: 309.7 kB / 0.545 GB, free: 4.246 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.802e-05/0.4413, allocations: 37.81 kB / 0.545 GB, free: 4.223 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.4414, allocations: 137.5 kB / 0.5452 GB, free: 4.066 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.4415, allocations: 55.75 kB / 0.5452 GB, free: 4.027 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.4415, allocations: 4 kB / 0.5452 GB, free: 4.023 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003846/0.4419, allocations: 235.4 kB / 0.5455 GB, free: 3.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.442, allocations: 7.953 kB / 0.5455 GB, free: 3.812 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.442, allocations: 7.875 kB / 0.5455 GB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.442, allocations: 8.188 kB / 0.5455 GB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007822/0.4428, allocations: 115.9 kB / 0.5456 GB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.4428, allocations: 7.984 kB / 0.5456 GB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.4431, allocations: 39.27 kB / 0.5456 GB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.4431, allocations: 4 kB / 0.5456 GB, free: 3.637 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(start = battery.SOC_start ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001453/0.4433, allocations: 136.1 kB / 0.5458 GB, free: 3.508 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.4434, allocations: 86.88 kB / 0.5458 GB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003663/0.4438, allocations: 232.9 kB / 0.5461 GB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.4438, allocations: 0 / 0.5461 GB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.4438, allocations: 0 / 0.5461 GB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.4438, allocations: 4 kB / 0.5461 GB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006207/0.4445, allocations: 0.5985 MB / 0.5467 GB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4445, allocations: 0 / 0.5467 GB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007098/0.4452, allocations: 115.8 kB / 0.5468 GB, free: 2.605 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.4452, allocations: 0 / 0.5468 GB, free: 2.605 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.4452, allocations: 7.75 kB / 0.5468 GB, free: 2.602 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.4452, allocations: 7.953 kB / 0.5468 GB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.4452, allocations: 0 / 0.5468 GB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004398/0.4457, allocations: 342.5 kB / 0.5471 GB, free: 2.293 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000403/0.4461, allocations: 250.7 kB / 0.5473 GB, free: 2.055 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.419e-05/0.4462, allocations: 0 / 0.5473 GB, free: 2.055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002836/0.4465, allocations: 43.91 kB / 0.5474 GB, free: 2.016 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.287e-05/0.4466, allocations: 19.92 kB / 0.5474 GB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.4466, allocations: 10.92 kB / 0.5474 GB, free: 1.988 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001305/0.4479, allocations: 1.1 MB / 0.5485 GB, free: 1.148 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4479, allocations: 0 / 0.5485 GB, free: 1.148 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004537/0.4484, allocations: 124.8 kB / 0.5486 GB, free: 1.035 MB / 362.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: 0 () * 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.000682/0.449, allocations: 259.8 kB / 0.5489 GB, free: 0.8438 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002543/0.4493, allocations: 116.9 kB / 0.549 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.4493, allocations: 4 kB / 0.549 GB, free: 0.7578 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.405e-05/0.4494, allocations: 56.48 kB / 0.549 GB, free: 0.7188 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.4498, allocations: 64.02 kB / 0.5491 GB, free: 0.6836 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002469/0.4523, allocations: 1.298 MB / 0.5504 GB, free: 15.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006765/0.453, allocations: 1.024 MB / 0.5514 GB, free: 14.49 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002945/0.4533, allocations: 138 kB / 0.5515 GB, free: 14.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001498/0.4535, allocations: 51.05 kB / 0.5515 GB, free: 14.31 MB / 378.7 MB Notification: Performance of SimCode: time 3.7e-07/0.4535, allocations: 0 / 0.5515 GB, free: 14.31 MB / 378.7 MB Notification: Performance of Templates: time 0.01409/0.4676, allocations: 7.308 MB / 0.5587 GB, free: 7.016 MB / 378.7 MB make -j1 -f PowerSysPro_PowerSysPro.Components.myBattery.makefile (rm -f PowerSysPro_PowerSysPro.Components.myBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Components.myBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Components.myBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Components.myBattery.sim & ./PowerSysPro_PowerSysPro.Components.myBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Components.myBattery.pipe 2>&1)