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.001206/0.001207, allocations: 177.8 kB / 8.044 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.393/1.393, allocations: 221.5 MB / 230 MB, free: 3.18 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.0009306/0.0009308, allocations: 96.36 kB / 280.9 MB, free: 1.164 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04825/0.04825, allocations: 8.106 MB / 339.8 MB, free: 6.234 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 2.164e-05/2.171e-05, allocations: 4 kB / 398.5 MB, free: 67.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09944/0.09948, allocations: 52.51 MB / 451 MB, free: 15.15 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3809/0.4804, allocations: 81.48 MB / 0.52 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00017/0.4806, allocations: 58.66 kB / 0.52 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02562/0.5063, allocations: 10.49 MB / 0.5303 GB, free: 3.641 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.5063, allocations: 3.938 kB / 0.5303 GB, free: 3.637 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.258e-05/0.5063, allocations: 12 kB / 0.5303 GB, free: 3.625 MB / 346.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.001611/0.5079, allocations: 0.9162 MB / 0.5312 GB, free: 2.715 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.508, allocations: 15.98 kB / 0.5312 GB, free: 2.699 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002209/0.5082, allocations: 98.77 kB / 0.5313 GB, free: 2.602 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.5093, allocations: 0.7119 MB / 0.532 GB, free: 1.926 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.664e-05/0.5094, allocations: 67.77 kB / 0.5321 GB, free: 1.844 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.511e-05/0.5095, allocations: 11.95 kB / 0.5321 GB, free: 1.832 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002503/0.5097, allocations: 125.7 kB / 0.5322 GB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003503/0.5101, allocations: 241.3 kB / 0.5324 GB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.5101, allocations: 0 / 0.5324 GB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.5101, allocations: 4 kB / 0.5324 GB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.5101, allocations: 4 kB / 0.5324 GB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00215/0.5123, allocations: 1.397 MB / 0.5338 GB, free: 364 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003023/0.5126, allocations: 229.7 kB / 0.534 GB, free: 156 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.5128, allocations: 107.5 kB / 0.5341 GB, free: 76 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.5129, allocations: 5.406 kB / 0.5341 GB, free: 72 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.5129, allocations: 30.56 kB / 0.5342 GB, free: 32 kB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.5129, allocations: 0 / 0.5342 GB, free: 32 kB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004088/0.5133, allocations: 198.7 kB / 0.5343 GB, free: 15.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.616e-05/0.5134, allocations: 239.3 kB / 0.5346 GB, free: 15.57 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.001779/0.5152, allocations: 1.368 MB / 0.5359 GB, free: 14.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.5152, allocations: 29.7 kB / 0.5359 GB, free: 14.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002871/0.5155, allocations: 419.4 kB / 0.5363 GB, free: 14.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.879e-05/0.5156, allocations: 42.83 kB / 0.5364 GB, free: 14.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.949e-06/0.5156, allocations: 0 / 0.5364 GB, free: 14.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.5157, allocations: 317.4 kB / 0.5367 GB, free: 13.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.936e-05/0.5158, allocations: 46.17 kB / 0.5367 GB, free: 13.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.5159, allocations: 130 kB / 0.5368 GB, free: 13.71 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.516, allocations: 54.34 kB / 0.5369 GB, free: 13.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.5161, allocations: 0 / 0.5369 GB, free: 13.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003653/0.5164, allocations: 239.1 kB / 0.5371 GB, free: 13.47 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.5165, allocations: 9.562 kB / 0.5371 GB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.5165, allocations: 0 / 0.5371 GB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.5165, allocations: 4 kB / 0.5371 GB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007583/0.5173, allocations: 116.1 kB / 0.5372 GB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.5173, allocations: 8 kB / 0.5373 GB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002816/0.5176, allocations: 43.72 kB / 0.5373 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.5176, allocations: 11.5 kB / 0.5373 GB, free: 13.29 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 (21): * Single equations (assignments): 21 * 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.000146/0.5177, allocations: 108.9 kB / 0.5374 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.5179, allocations: 90.95 kB / 0.5375 GB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003646/0.5182, allocations: 234.9 kB / 0.5377 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.5183, allocations: 7.984 kB / 0.5377 GB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.5183, allocations: 3.938 kB / 0.5377 GB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.5183, allocations: 3.984 kB / 0.5377 GB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.5195, allocations: 0.9417 MB / 0.5387 GB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.5195, allocations: 0 / 0.5387 GB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007177/0.5202, allocations: 115.2 kB / 0.5388 GB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.5203, allocations: 4 kB / 0.5388 GB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.5203, allocations: 0 / 0.5388 GB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.5203, allocations: 0 / 0.5388 GB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.5203, allocations: 4 kB / 0.5388 GB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004589/0.5208, allocations: 380.3 kB / 0.5391 GB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002916/0.5211, allocations: 251.2 kB / 0.5394 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.468e-05/0.5212, allocations: 0 / 0.5394 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002765/0.5214, allocations: 36.03 kB / 0.5394 GB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.916e-05/0.5215, allocations: 18.53 kB / 0.5394 GB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.5215, allocations: 14.5 kB / 0.5394 GB, free: 11.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001302/0.5229, allocations: 1.058 MB / 0.5405 GB, free: 10.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5229, allocations: 0 / 0.5405 GB, free: 10.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004442/0.5233, allocations: 115.8 kB / 0.5406 GB, free: 10.42 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (16): * Single equations (assignments): 16 * 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.0005631/0.5239, allocations: 242.5 kB / 0.5408 GB, free: 10.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002299/0.5241, allocations: 111.6 kB / 0.5409 GB, free: 10.15 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5241, allocations: 384 / 0.5409 GB, free: 10.15 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.901e-05/0.5242, allocations: 69.67 kB / 0.541 GB, free: 10.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003996/0.5247, allocations: 62.23 kB / 0.5411 GB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.5275, allocations: 1.308 MB / 0.5423 GB, free: 8.863 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008261/0.5283, allocations: 1.024 MB / 0.5433 GB, free: 7.855 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003627/0.5287, allocations: 138.4 kB / 0.5435 GB, free: 7.719 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.5289, allocations: 50.19 kB / 0.5435 GB, free: 7.672 MB / 362.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5289, allocations: 0 / 0.5435 GB, free: 7.672 MB / 362.7 MB Notification: Performance of Templates: time 0.01262/0.5415, allocations: 5.828 MB / 0.5492 GB, free: 1.855 MB / 362.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)