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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 194.5 kB / 7.847 MB, free: 2.508 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.252/1.252, allocations: 221.4 MB / 229.7 MB, free: 3.008 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.0009538/0.0009538, allocations: 87.36 kB / 280.5 MB, free: 1.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04041/0.04041, allocations: 8.105 MB / 339.4 MB, free: 6.328 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 6.172e-06/6.212e-06, allocations: 0 / 397.9 MB, free: 68.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08221/0.08223, allocations: 52.52 MB / 450.4 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2628/0.3451, allocations: 81.41 MB / 0.5194 GB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.3453, allocations: 61.97 kB / 0.5194 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02599/0.3713, allocations: 10.16 MB / 0.5293 GB, free: 4.477 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.794e-05/0.3714, allocations: 12 kB / 0.5294 GB, free: 4.465 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.001321/0.3727, allocations: 0.9153 MB / 0.5302 GB, free: 3.555 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3728, allocations: 19.97 kB / 0.5303 GB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.3729, allocations: 98.72 kB / 0.5304 GB, free: 3.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009317/0.3739, allocations: 0.7208 MB / 0.5311 GB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.677e-05/0.3739, allocations: 63.72 kB / 0.5311 GB, free: 2.672 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.654e-05/0.374, allocations: 12 kB / 0.5311 GB, free: 2.66 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002376/0.3742, allocations: 127.2 kB / 0.5313 GB, free: 2.586 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003299/0.3746, allocations: 240.5 kB / 0.5315 GB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.3746, allocations: 0 / 0.5315 GB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.62e-05/0.3746, allocations: 0 / 0.5315 GB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3746, allocations: 4 kB / 0.5315 GB, free: 2.367 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.3768, allocations: 1.406 MB / 0.5329 GB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.3771, allocations: 227.5 kB / 0.5331 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.3774, allocations: 106.6 kB / 0.5332 GB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.995e-05/0.3774, allocations: 7.984 kB / 0.5332 GB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.3774, allocations: 30.56 kB / 0.5332 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.472e-06/0.3774, allocations: 4 kB / 0.5332 GB, free: 0.8398 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003982/0.3778, allocations: 196.2 kB / 0.5334 GB, free: 0.668 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.35e-05/0.3779, allocations: 235.3 kB / 0.5336 GB, free: 392 kB / 346.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.001645/0.3796, allocations: 1.364 MB / 0.535 GB, free: 15.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.3796, allocations: 33.69 kB / 0.535 GB, free: 15.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.3798, allocations: 233.7 kB / 0.5352 GB, free: 15.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.701e-05/0.3798, allocations: 54.12 kB / 0.5353 GB, free: 15.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.004e-05/0.3798, allocations: 0 / 0.5353 GB, free: 15.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.38, allocations: 309.8 kB / 0.5356 GB, free: 14.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.434e-05/0.38, allocations: 38.86 kB / 0.5356 GB, free: 14.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.3802, allocations: 142.3 kB / 0.5357 GB, free: 14.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001252/0.3803, allocations: 55.89 kB / 0.5358 GB, free: 14.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3803, allocations: 0 / 0.5358 GB, free: 14.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003579/0.3807, allocations: 232.2 kB / 0.536 GB, free: 14.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.3807, allocations: 8 kB / 0.536 GB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.3807, allocations: 0 / 0.536 GB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.3807, allocations: 4 kB / 0.536 GB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008267/0.3816, allocations: 132 kB / 0.5362 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.3816, allocations: 4 kB / 0.5362 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/0.3819, allocations: 47.73 kB / 0.5362 GB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.3819, allocations: 7.562 kB / 0.5362 GB, free: 14.11 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.0001318/0.382, allocations: 119.2 kB / 0.5363 GB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.3822, allocations: 90.88 kB / 0.5364 GB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003825/0.3826, allocations: 234.4 kB / 0.5366 GB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3826, allocations: 4 kB / 0.5366 GB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3826, allocations: 0 / 0.5366 GB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3826, allocations: 0 / 0.5366 GB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001286/0.3839, allocations: 0.9358 MB / 0.5376 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3839, allocations: 7.969 kB / 0.5376 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007573/0.3847, allocations: 119.7 kB / 0.5377 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3847, allocations: 8 kB / 0.5377 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.3847, allocations: 0 / 0.5377 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.3847, allocations: 3.938 kB / 0.5377 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.3847, allocations: 4 kB / 0.5377 GB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004601/0.3852, allocations: 385.2 kB / 0.5381 GB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002962/0.3855, allocations: 240.8 kB / 0.5383 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.3856, allocations: 4.062 kB / 0.5383 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003182/0.3859, allocations: 35.95 kB / 0.5383 GB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.499e-05/0.386, allocations: 23.03 kB / 0.5383 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.386, allocations: 7.625 kB / 0.5384 GB, free: 12.14 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001173/0.3872, allocations: 1.053 MB / 0.5394 GB, free: 11.35 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004571/0.3877, allocations: 119.9 kB / 0.5395 GB, free: 11.23 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.0005521/0.3882, allocations: 230.9 kB / 0.5397 GB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000247/0.3885, allocations: 121 kB / 0.5398 GB, free: 10.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3885, allocations: 0 / 0.5398 GB, free: 10.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.3887, allocations: 66.11 kB / 0.5399 GB, free: 10.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000419/0.3891, allocations: 64.67 kB / 0.54 GB, free: 10.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002667/0.3918, allocations: 1.305 MB / 0.5412 GB, free: 9.684 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007127/0.3925, allocations: 1.075 MB / 0.5423 GB, free: 8.625 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3925, allocations: 0 / 0.5423 GB, free: 8.625 MB / 362.7 MB Notification: Performance of Templates: time 0.01115/0.4037, allocations: 5.05 MB / 0.5472 GB, free: 3.586 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)