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.0009351/0.000935, allocations: 100.9 kB / 15.73 MB, free: 436 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.001166/0.001166, allocations: 178.5 kB / 16.61 MB, free: 6.418 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.242/1.242, allocations: 223.2 MB / 240.6 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.156/0.156, allocations: 8.085 MB / 299.7 MB, free: 2.855 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002874/0.0002874, allocations: 12 kB / 362.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1094, allocations: 52.51 MB / 415.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.002762/0.1122, allocations: 2.019 MB / 417.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.1134, allocations: 0.8142 MB / 418.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.408e-05/0.1135, allocations: 4 kB / 418.1 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005601/0.1141, allocations: 351.1 kB / 418.5 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002857/0.1144, allocations: 199.5 kB / 418.6 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005927/0.115, allocations: 326.5 kB / 419 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002377/0.1152, allocations: 223.5 kB / 419.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.1154, allocations: 73.69 kB / 419.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.1155, allocations: 147.5 kB / 419.4 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003015/0.1158, allocations: 219.4 kB / 419.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.614e-05/0.1159, allocations: 16 kB / 419.6 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.1162, allocations: 127.8 kB / 419.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002744/0.1165, allocations: 299.3 kB / 420 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.1166, allocations: 145.2 kB / 420.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006349/0.1172, allocations: 0.7214 MB / 420.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.1172, allocations: 0 / 420.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1172, allocations: 0 / 420.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.1173, allocations: 0 / 420.9 MB, free: 3.102 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.001806/0.1191, allocations: 1.127 MB / 422 MB, free: 1.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.1191, allocations: 8.031 kB / 422 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.1192, allocations: 102.7 kB / 422.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009025/0.1201, allocations: 0.6875 MB / 422.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.444e-05/0.1202, allocations: 71.78 kB / 422.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.547e-05/0.1203, allocations: 16 kB / 422.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005035/0.1208, allocations: 307.5 kB / 423.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.1208, allocations: 0 / 423.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/0.1208, allocations: 8 kB / 423.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.1208, allocations: 7.953 kB / 423.2 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003721/0.1212, allocations: 183.6 kB / 423.4 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1693/0.2905, allocations: 1.307 MB / 424.7 MB, free: 40.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006398/0.2912, allocations: 328.7 kB / 425 MB, free: 40.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009218/0.2921, allocations: 0.6691 MB / 425.7 MB, free: 40.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.48e-05/0.2922, allocations: 38.22 kB / 425.8 MB, free: 40.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.064e-06/0.2922, allocations: 0 / 425.8 MB, free: 40.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0007964/0.293, allocations: 344.4 kB / 426.1 MB, free: 40.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.049e-05/0.2931, allocations: 237.7 kB / 426.3 MB, free: 39.78 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.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.001813/0.2949, allocations: 1.57 MB / 427.9 MB, free: 39.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.295, allocations: 29.08 kB / 427.9 MB, free: 39.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003059/0.2953, allocations: 418 kB / 428.3 MB, free: 39.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.833e-05/0.2953, allocations: 50.81 kB / 428.4 MB, free: 39.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.073e-05/0.2953, allocations: 3.312 kB / 428.4 MB, free: 39.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.429e-05/0.2954, allocations: 312.5 kB / 428.7 MB, free: 39.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.2956, allocations: 80.27 kB / 428.8 MB, free: 39.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.2958, allocations: 162.6 kB / 428.9 MB, free: 39.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001986/0.296, allocations: 84.52 kB / 429 MB, free: 39.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.296, allocations: 3.344 kB / 429 MB, free: 39.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004812/0.2965, allocations: 297.2 kB / 429.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.2966, allocations: 10.64 kB / 429.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.2966, allocations: 0 / 429.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.2966, allocations: 4 kB / 429.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006786/0.2973, allocations: 123.7 kB / 429.4 MB, free: 38.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.2973, allocations: 0.75 kB / 429.4 MB, free: 38.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.2975, allocations: 47.23 kB / 429.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.2975, allocations: 7.797 kB / 429.5 MB, free: 38.96 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: 6 * 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 (20): * Single equations (assignments): 20 * 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.00034/0.2979, allocations: 354.7 kB / 429.8 MB, free: 38.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.023e-05/0.298, allocations: 85.06 kB / 429.9 MB, free: 38.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005384/0.2985, allocations: 303.9 kB / 430.2 MB, free: 38.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.2985, allocations: 3.312 kB / 430.2 MB, free: 38.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.2986, allocations: 4.562 kB / 430.2 MB, free: 38.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.2986, allocations: 0.5156 kB / 430.2 MB, free: 38.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005113/0.2991, allocations: 0.5802 MB / 430.8 MB, free: 38.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2991, allocations: 0 / 430.8 MB, free: 38.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006456/0.2997, allocations: 114.9 kB / 430.9 MB, free: 38.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.2998, allocations: 1.312 kB / 430.9 MB, free: 38.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.2998, allocations: 8.266 kB / 430.9 MB, free: 38.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.2998, allocations: 6.578 kB / 430.9 MB, free: 38.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.2998, allocations: 0.875 kB / 430.9 MB, free: 38.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006808/0.3005, allocations: 466.8 kB / 431.4 MB, free: 38.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002681/0.3008, allocations: 210.3 kB / 431.6 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.213e-05/0.3008, allocations: 3.062 kB / 431.6 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.3011, allocations: 40.33 kB / 431.6 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.21e-05/0.3012, allocations: 23.59 kB / 431.7 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.3012, allocations: 5.219 kB / 431.7 MB, free: 38.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001068/0.3023, allocations: 1.135 MB / 432.8 MB, free: 38.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3023, allocations: 0 / 432.8 MB, free: 38.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003596/0.3026, allocations: 103.8 kB / 432.9 MB, free: 38.09 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 (15): * Single equations (assignments): 15 * 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.0005174/0.3032, allocations: 274.7 kB / 433.2 MB, free: 37.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004556/0.3036, allocations: 188.5 kB / 433.3 MB, free: 37.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3036, allocations: 4.312 kB / 433.4 MB, free: 37.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001985/0.3038, allocations: 92.03 kB / 433.4 MB, free: 37.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.3042, allocations: 63.48 kB / 433.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002924/0.3071, allocations: 1.769 MB / 435.3 MB, free: 37.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003695/0.3075, allocations: 1.029 MB / 436.3 MB, free: 36.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001928/0.3077, allocations: 117.2 kB / 436.4 MB, free: 36.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.3078, allocations: 46.84 kB / 436.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3078, allocations: 0 / 436.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of Templates: time 0.00883/0.3167, allocations: 6.33 MB / 442.8 MB, free: 36.14 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: