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/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 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.0008302/0.0008302, allocations: 97.64 kB / 16.06 MB, free: 40 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 181.5 kB / 16.96 MB, free: 6.895 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.375/1.375, allocations: 223.3 MB / 241 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1969/0.1969, allocations: 8.087 MB / 300.2 MB, free: 2.918 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003263/0.0003264, allocations: 8 kB / 363.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1079, allocations: 52.52 MB / 416 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.00281/0.1108, allocations: 2.153 MB / 418.2 MB, free: 6.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.1123, allocations: 0.8719 MB / 419 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.1124, allocations: 4 kB / 419 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007213/0.1132, allocations: 375.1 kB / 419.4 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003431/0.1135, allocations: 187.4 kB / 419.6 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008687/0.1144, allocations: 390.8 kB / 420 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004143/0.1148, allocations: 338.8 kB / 420.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.1151, allocations: 99.88 kB / 420.4 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.1152, allocations: 143.5 kB / 420.5 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003948/0.1156, allocations: 279.2 kB / 420.8 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.576e-05/0.1157, allocations: 16 kB / 420.8 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003816/0.1161, allocations: 147.9 kB / 421 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000334/0.1164, allocations: 299.2 kB / 421.3 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003192/0.1168, allocations: 355.3 kB / 421.6 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000865/0.1176, allocations: 0.8875 MB / 422.5 MB, free: 1.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.1177, allocations: 0 / 422.5 MB, free: 1.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1177, allocations: 0 / 422.5 MB, free: 1.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.1177, allocations: 0 / 422.5 MB, free: 1.891 MB / 350.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.001928/0.1196, allocations: 1.124 MB / 423.6 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.1197, allocations: 11.97 kB / 423.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.1198, allocations: 95.72 kB / 423.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2247/0.3446, allocations: 0.7304 MB / 424.4 MB, free: 41.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001444/0.3448, allocations: 70.19 kB / 424.5 MB, free: 41.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.629e-05/0.3448, allocations: 22.34 kB / 424.5 MB, free: 41.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006891/0.3455, allocations: 305.3 kB / 424.8 MB, free: 41.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.3456, allocations: 1.312 kB / 424.8 MB, free: 41.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.656e-05/0.3456, allocations: 10.53 kB / 424.9 MB, free: 41.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.3456, allocations: 9.25 kB / 424.9 MB, free: 41.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005924/0.3462, allocations: 189.1 kB / 425 MB, free: 41.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003015/0.3493, allocations: 1.303 MB / 426.3 MB, free: 40.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009251/0.3502, allocations: 328.4 kB / 426.7 MB, free: 40.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004787/0.3507, allocations: 150.7 kB / 426.8 MB, free: 40.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008882/0.3516, allocations: 0.6628 MB / 427.5 MB, free: 40.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.3516, allocations: 41.06 kB / 427.5 MB, free: 40.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 2.004e-06/0.3516, allocations: 0 / 427.5 MB, free: 40.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007458/0.3524, allocations: 326.2 kB / 427.8 MB, free: 40.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.432e-05/0.3525, allocations: 231.3 kB / 428.1 MB, free: 39.87 MB / 350.1 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) 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) 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.001703/0.3542, allocations: 1.569 MB / 429.6 MB, free: 39.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.675e-05/0.3542, allocations: 35.7 kB / 429.7 MB, free: 39.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000287/0.3545, allocations: 421 kB / 430.1 MB, free: 39.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.297e-05/0.3546, allocations: 39.62 kB / 430.1 MB, free: 39.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.116e-05/0.3546, allocations: 22.28 kB / 430.1 MB, free: 39.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.556e-05/0.3547, allocations: 309.3 kB / 430.4 MB, free: 39.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.3549, allocations: 75.78 kB / 430.5 MB, free: 39.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.3551, allocations: 167 kB / 430.7 MB, free: 39.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009668/0.3561, allocations: 340.7 kB / 431 MB, free: 39.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3561, allocations: 3.25 kB / 431 MB, free: 39.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005651/0.3566, allocations: 298.8 kB / 431.3 MB, free: 38.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.3567, allocations: 6.531 kB / 431.3 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.3567, allocations: 11.28 kB / 431.3 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.3567, allocations: 3.281 kB / 431.3 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006721/0.3574, allocations: 120.7 kB / 431.4 MB, free: 38.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.3574, allocations: 3.219 kB / 431.4 MB, free: 38.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00024/0.3577, allocations: 41.52 kB / 431.5 MB, free: 38.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.3577, allocations: 11.17 kB / 431.5 MB, free: 38.91 MB / 350.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.0003594/0.358, allocations: 349.9 kB / 431.8 MB, free: 38.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.3582, allocations: 89.67 kB / 431.9 MB, free: 38.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005618/0.3587, allocations: 296 kB / 432.2 MB, free: 38.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.3587, allocations: 0 / 432.2 MB, free: 38.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3588, allocations: 3.125 kB / 432.2 MB, free: 38.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.3588, allocations: 3.375 kB / 432.2 MB, free: 38.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005295/0.3593, allocations: 0.5597 MB / 432.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3593, allocations: 0 / 432.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006571/0.36, allocations: 111.9 kB / 432.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.36, allocations: 0 / 432.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.36, allocations: 16.86 kB / 432.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.36, allocations: 0.5625 kB / 432.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.36, allocations: 0.75 kB / 432.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007616/0.3608, allocations: 436.4 kB / 433.3 MB, free: 38.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002183/0.361, allocations: 221.1 kB / 433.6 MB, free: 38.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.195e-05/0.3611, allocations: 6.5 kB / 433.6 MB, free: 38.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.3614, allocations: 32.95 kB / 433.6 MB, free: 38.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.3615, allocations: 27.02 kB / 433.6 MB, free: 38.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.3615, allocations: 4.531 kB / 433.6 MB, free: 38.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001152/0.3626, allocations: 1.135 MB / 434.8 MB, free: 38.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3626, allocations: 4 kB / 434.8 MB, free: 38.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003858/0.363, allocations: 102.1 kB / 434.9 MB, free: 38.02 MB / 350.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.0006113/0.3637, allocations: 265.4 kB / 435.1 MB, free: 37.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004599/0.3641, allocations: 176.5 kB / 435.3 MB, free: 37.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3641, allocations: 0 / 435.3 MB, free: 37.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002158/0.3644, allocations: 97.73 kB / 435.4 MB, free: 37.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004874/0.3649, allocations: 61.03 kB / 435.4 MB, free: 37.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002708/0.3676, allocations: 1.846 MB / 437.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004465/0.368, allocations: 1.012 MB / 438.3 MB, free: 36.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002633/0.3683, allocations: 119.6 kB / 438.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.3684, allocations: 45.83 kB / 438.5 MB, free: 36.43 MB / 350.1 MB Notification: Performance of SimCode: time 1.153e-06/0.3684, allocations: 3.281 kB / 438.5 MB, free: 36.43 MB / 350.1 MB Notification: Performance of Templates: time 0.01217/0.3806, allocations: 6.465 MB / 444.9 MB, free: 36 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Components.myBattery.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: