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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009303/0.0009303, allocations: 89.77 kB / 16.71 MB, free: 6.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008858/0.000886, allocations: 179 kB / 17.62 MB, free: 6.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 223.3 MB / 241.7 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04354/0.04354, allocations: 8.096 MB / 300.9 MB, free: 6.676 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003559/0.000356, allocations: 8 kB / 364.1 MB, free: 7.371 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1975/0.1979, allocations: 52.5 MB / 416.7 MB, free: 24.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.002048/0.2, allocations: 2.151 MB / 418.8 MB, free: 22.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.201, allocations: 0.8837 MB / 419.7 MB, free: 21.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.019e-05/0.2011, allocations: 4 kB / 419.7 MB, free: 21.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005249/0.2017, allocations: 371 kB / 420.1 MB, free: 21.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.2019, allocations: 187.4 kB / 420.2 MB, free: 21.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006144/0.2026, allocations: 390.2 kB / 420.6 MB, free: 20.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.2028, allocations: 350.8 kB / 421 MB, free: 20.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.203, allocations: 97.56 kB / 421.1 MB, free: 20.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.2031, allocations: 147.5 kB / 421.2 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002738/0.2034, allocations: 279.2 kB / 421.5 MB, free: 20.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.421e-05/0.2034, allocations: 16 kB / 421.5 MB, free: 20 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002242/0.2037, allocations: 143.9 kB / 421.6 MB, free: 19.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001664/0.2039, allocations: 299.1 kB / 421.9 MB, free: 19.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.204, allocations: 347.4 kB / 422.3 MB, free: 19.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004586/0.2045, allocations: 0.7249 MB / 423 MB, free: 18.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2045, allocations: 0 / 423 MB, free: 18.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2045, allocations: 0 / 423 MB, free: 18.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.2045, allocations: 4 kB / 423 MB, free: 18.49 MB / 302.1 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.001595/0.2061, allocations: 1.124 MB / 424.1 MB, free: 17.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.2062, allocations: 11.97 kB / 424.1 MB, free: 17.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.2063, allocations: 95.72 kB / 424.2 MB, free: 17.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006907/0.207, allocations: 0.7307 MB / 424.9 MB, free: 16.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.983e-05/0.2071, allocations: 76.33 kB / 425 MB, free: 16.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-05/0.2071, allocations: 20.38 kB / 425 MB, free: 16.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004954/0.2076, allocations: 304 kB / 425.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.2077, allocations: 3.938 kB / 425.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.825e-05/0.2077, allocations: 12 kB / 425.4 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.2077, allocations: 4 kB / 425.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003727/0.2081, allocations: 183.6 kB / 425.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.2098, allocations: 1.321 MB / 426.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006104/0.2104, allocations: 326.8 kB / 427.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003113/0.2107, allocations: 144.8 kB / 427.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007625/0.2115, allocations: 0.669 MB / 428 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.748e-05/0.2115, allocations: 38.56 kB / 428 MB, free: 13.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/0.2115, allocations: 0 / 428 MB, free: 13.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007101/0.2123, allocations: 320.5 kB / 428.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.2123, allocations: 235.3 kB / 428.6 MB, free: 12.54 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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-master/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) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001402/0.2137, allocations: 1.574 MB / 430.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.2138, allocations: 29.7 kB / 430.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002471/0.214, allocations: 419 kB / 430.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.273e-05/0.2141, allocations: 43.3 kB / 430.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.142e-05/0.2141, allocations: 25.72 kB / 430.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.924e-05/0.2142, allocations: 317.9 kB / 431 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.2144, allocations: 67.95 kB / 431 MB, free: 10.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002204/0.2146, allocations: 167.9 kB / 431.2 MB, free: 9.832 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009197/0.2155, allocations: 337.7 kB / 431.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2155, allocations: 0 / 431.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005392/0.2161, allocations: 304.4 kB / 431.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2161, allocations: 10.5 kB / 431.8 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.2161, allocations: 0 / 431.8 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.2161, allocations: 4 kB / 431.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007024/0.2168, allocations: 124 kB / 432 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.2168, allocations: 0 / 432 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.2171, allocations: 55.66 kB / 432 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.2171, allocations: 8 kB / 432 MB, free: 8.98 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003239/0.2175, allocations: 337.7 kB / 432.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.254e-05/0.2176, allocations: 94.89 kB / 432.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005269/0.2181, allocations: 289 kB / 432.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.2181, allocations: 4 kB / 432.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2181, allocations: 0 / 432.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/0.2181, allocations: 3.984 kB / 432.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004497/0.2186, allocations: 0.5645 MB / 433.3 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2186, allocations: 3.938 kB / 433.3 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006886/0.2193, allocations: 115.8 kB / 433.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.2193, allocations: 4 kB / 433.4 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.2193, allocations: 0 / 433.4 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.2193, allocations: 4 kB / 433.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2193, allocations: 0 / 433.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006731/0.22, allocations: 434.7 kB / 433.8 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.2202, allocations: 223.9 kB / 434.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.886e-05/0.2203, allocations: 0 / 434.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002589/0.2206, allocations: 36.05 kB / 434.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.438e-05/0.2206, allocations: 19.95 kB / 434.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.2206, allocations: 8 kB / 434.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009962/0.2216, allocations: 1.13 MB / 435.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2216, allocations: 3.938 kB / 435.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003807/0.222, allocations: 103.8 kB / 435.4 MB, free: 5.523 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005441/0.2226, allocations: 264.5 kB / 435.6 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004516/0.223, allocations: 180.2 kB / 435.8 MB, free: 5.156 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.2231, allocations: 0 / 435.8 MB, free: 5.156 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001938/0.2233, allocations: 83.89 kB / 435.9 MB, free: 5.074 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.2237, allocations: 75.41 kB / 435.9 MB, free: 5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002402/0.2262, allocations: 1.911 MB / 437.9 MB, free: 3.059 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.2265, allocations: 1.009 MB / 438.9 MB, free: 2.023 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.2267, allocations: 43.42 kB / 438.9 MB, free: 1.98 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2267, allocations: 7.938 kB / 438.9 MB, free: 1.973 MB / 302.1 MB Notification: Performance of Templates: time 0.01253/0.2392, allocations: 9.076 MB / 448 MB, free: 8.891 MB / 318.1 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)