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.001247/0.001247, allocations: 171.8 kB / 16.8 MB, free: 5.02 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.264/1.264, allocations: 223.3 MB / 240.8 MB, free: 11.7 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.0008348/0.0008347, allocations: 112.7 kB / 292 MB, free: 10.76 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03932/0.03932, allocations: 8.1 MB / 351.2 MB, free: 15.55 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003378/0.000338, allocations: 16 kB / 414.4 MB, free: 57.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08187/0.08222, allocations: 52.51 MB / 466.9 MB, free: 4.734 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2875/0.3698, allocations: 81.93 MB / 0.536 GB, free: 3.551 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001689/0.37, allocations: 55.95 kB / 0.536 GB, free: 3.527 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02532/0.3953, allocations: 10.67 MB / 0.5464 GB, free: 10.27 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3954, allocations: 0 / 0.5464 GB, free: 10.27 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.255e-05/0.3954, allocations: 12 kB / 0.5464 GB, free: 10.26 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.002022/0.3974, allocations: 1.137 MB / 0.5475 GB, free: 9.137 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3975, allocations: 12.03 kB / 0.5476 GB, free: 9.125 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001641/0.3976, allocations: 95.72 kB / 0.5477 GB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.3988, allocations: 0.7624 MB / 0.5484 GB, free: 8.305 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.3989, allocations: 75.22 kB / 0.5485 GB, free: 8.223 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.265e-05/0.399, allocations: 19.75 kB / 0.5485 GB, free: 8.211 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005705/0.3995, allocations: 309.2 kB / 0.5488 GB, free: 7.945 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.3996, allocations: 0 / 0.5488 GB, free: 7.945 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.3996, allocations: 10.94 kB / 0.5488 GB, free: 7.941 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.3996, allocations: 4 kB / 0.5488 GB, free: 7.938 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004026/0.4, allocations: 182.2 kB / 0.549 GB, free: 7.809 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002164/0.4022, allocations: 1.338 MB / 0.5503 GB, free: 6.695 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000655/0.4029, allocations: 332.1 kB / 0.5506 GB, free: 6.402 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003376/0.4032, allocations: 147.7 kB / 0.5507 GB, free: 6.285 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009961/0.4042, allocations: 0.6791 MB / 0.5514 GB, free: 5.664 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.4043, allocations: 34.12 kB / 0.5514 GB, free: 5.625 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.453e-06/0.4043, allocations: 4 kB / 0.5514 GB, free: 5.621 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0007448/0.405, allocations: 330.4 kB / 0.5517 GB, free: 5.332 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.4051, allocations: 235.3 kB / 0.552 GB, free: 5.047 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.001959/0.4071, allocations: 1.553 MB / 0.5535 GB, free: 3.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.4071, allocations: 25.7 kB / 0.5535 GB, free: 3.789 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002849/0.4074, allocations: 422.6 kB / 0.5539 GB, free: 3.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.474e-05/0.4075, allocations: 42.56 kB / 0.554 GB, free: 3.531 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.376e-06/0.4075, allocations: 2.938 kB / 0.554 GB, free: 3.531 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.095e-05/0.4076, allocations: 313.8 kB / 0.5543 GB, free: 3.223 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.4078, allocations: 68.8 kB / 0.5543 GB, free: 3.168 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002467/0.408, allocations: 170.1 kB / 0.5545 GB, free: 2.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.409, allocations: 343.9 kB / 0.5548 GB, free: 2.641 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4091, allocations: 4 kB / 0.5548 GB, free: 2.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000574/0.4096, allocations: 295.4 kB / 0.5551 GB, free: 2.344 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.4097, allocations: 7.938 kB / 0.5551 GB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.4097, allocations: 4 kB / 0.5551 GB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.4097, allocations: 4.188 kB / 0.5551 GB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006831/0.4104, allocations: 119.8 kB / 0.5552 GB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.4104, allocations: 7.984 kB / 0.5552 GB, free: 2.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002472/0.4107, allocations: 39.83 kB / 0.5553 GB, free: 2.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.4107, allocations: 4 kB / 0.5553 GB, free: 2.16 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(start = battery.SOC_start fixed = true ) "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 () * Number of clocked 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.0003881/0.4111, allocations: 357.6 kB / 0.5556 GB, free: 1.801 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.4112, allocations: 90.88 kB / 0.5557 GB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005767/0.4118, allocations: 289.6 kB / 0.556 GB, free: 1.418 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.4118, allocations: 0 / 0.556 GB, free: 1.418 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.4118, allocations: 0 / 0.556 GB, free: 1.418 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.4118, allocations: 7.938 kB / 0.556 GB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000596/0.4124, allocations: 0.6112 MB / 0.5566 GB, free: 0.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4124, allocations: 0 / 0.5566 GB, free: 0.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006385/0.4131, allocations: 107.9 kB / 0.5567 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.4131, allocations: 0 / 0.5567 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.4131, allocations: 3.984 kB / 0.5567 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.4131, allocations: 8 kB / 0.5567 GB, free: 0.6328 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4131, allocations: 0 / 0.5567 GB, free: 0.6328 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007343/0.4139, allocations: 442.6 kB / 0.5571 GB, free: 188 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003275/0.4142, allocations: 240 kB / 0.5574 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.3e-05/0.4143, allocations: 7.984 kB / 0.5574 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002645/0.4146, allocations: 36.05 kB / 0.5574 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.574e-05/0.4147, allocations: 19.95 kB / 0.5574 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.4147, allocations: 4 kB / 0.5574 GB, free: 15.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001338/0.416, allocations: 1.114 MB / 0.5585 GB, free: 14.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.416, allocations: 3.938 kB / 0.5585 GB, free: 14.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004182/0.4165, allocations: 123.8 kB / 0.5586 GB, free: 14.61 MB / 378.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 () * 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.0005736/0.417, allocations: 286.1 kB / 0.5589 GB, free: 14.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004687/0.4175, allocations: 179.9 kB / 0.5591 GB, free: 14.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4175, allocations: 0 / 0.5591 GB, free: 14.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.4177, allocations: 90.02 kB / 0.5592 GB, free: 14.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005526/0.4183, allocations: 71.42 kB / 0.5592 GB, free: 14.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002861/0.4212, allocations: 1.796 MB / 0.561 GB, free: 12.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005986/0.4218, allocations: 1.013 MB / 0.562 GB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002737/0.4221, allocations: 134.9 kB / 0.5621 GB, free: 11.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.4222, allocations: 47.42 kB / 0.5621 GB, free: 11.03 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4222, allocations: 0 / 0.5621 GB, free: 11.03 MB / 378.7 MB Notification: Performance of Templates: time 0.01248/0.4347, allocations: 7.268 MB / 0.5692 GB, free: 3.766 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)