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.001063/0.001063, allocations: 102.4 kB / 16.03 MB, free: 6.324 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.001041/0.001041, allocations: 192.3 kB / 16.95 MB, free: 6.145 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.34/1.34, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.06217/0.06217, allocations: 8.111 MB / 298.9 MB, free: 6.672 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001189, allocations: 59.91 kB / 361.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2301, allocations: 51.51 MB / 412.7 MB, free: 25.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.003193/0.2333, allocations: 2.518 MB / 415.2 MB, free: 23.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009908/0.2343, allocations: 0.8914 MB / 416.1 MB, free: 22.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.2344, allocations: 4 kB / 416.1 MB, free: 22.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005678/0.235, allocations: 375 kB / 416.5 MB, free: 21.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000263/0.2353, allocations: 191.4 kB / 416.7 MB, free: 21.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006306/0.2359, allocations: 398.6 kB / 417.1 MB, free: 21.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000259/0.2362, allocations: 338.9 kB / 417.4 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.2364, allocations: 109.7 kB / 417.5 MB, free: 20.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.2365, allocations: 167.5 kB / 417.7 MB, free: 20.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002848/0.2368, allocations: 295.2 kB / 418 MB, free: 20.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.857e-05/0.2368, allocations: 28 kB / 418 MB, free: 20.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002202/0.2371, allocations: 167.9 kB / 418.2 MB, free: 20.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.2373, allocations: 307.2 kB / 418.5 MB, free: 20.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002003/0.2375, allocations: 361.5 kB / 418.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005958/0.2381, allocations: 0.9228 MB / 419.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2381, allocations: 0 / 419.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2381, allocations: 0 / 419.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.2381, allocations: 0 / 419.7 MB, free: 18.73 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.001723/0.2398, allocations: 1.24 MB / 421 MB, free: 17.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.2399, allocations: 12.03 kB / 421 MB, free: 17.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.24, allocations: 91.81 kB / 421.1 MB, free: 17.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006583/0.2407, allocations: 0.7345 MB / 421.8 MB, free: 16.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.298e-05/0.2408, allocations: 72.34 kB / 421.9 MB, free: 16.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.532e-05/0.2408, allocations: 24.36 kB / 421.9 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004588/0.2413, allocations: 292 kB / 422.2 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.2413, allocations: 11.94 kB / 422.2 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.669e-05/0.2413, allocations: 11.94 kB / 422.2 MB, free: 16.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.2413, allocations: 4 kB / 422.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003334/0.2417, allocations: 175.6 kB / 422.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.2432, allocations: 1.286 MB / 423.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005527/0.2438, allocations: 315.1 kB / 424 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002955/0.2441, allocations: 136.8 kB / 424.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007378/0.2448, allocations: 0.6611 MB / 424.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.325e-05/0.2449, allocations: 50.48 kB / 424.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.874e-06/0.2449, allocations: 0 / 424.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006533/0.2455, allocations: 296.5 kB / 425.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.055e-05/0.2456, allocations: 235.3 kB / 425.4 MB, free: 12.75 MB / 302.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.001403/0.247, allocations: 1.571 MB / 426.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.247, allocations: 29.7 kB / 427 MB, free: 11.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002229/0.2473, allocations: 419 kB / 427.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.232e-05/0.2473, allocations: 39.39 kB / 427.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.605e-05/0.2474, allocations: 41.7 kB / 427.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.155e-05/0.2474, allocations: 317.9 kB / 427.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.2476, allocations: 63.95 kB / 427.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/0.2478, allocations: 175.1 kB / 428 MB, free: 10.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008817/0.2487, allocations: 313 kB / 428.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2487, allocations: 0 / 428.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004647/0.2492, allocations: 288.4 kB / 428.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2492, allocations: 4 kB / 428.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2492, allocations: 0 / 428.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.2493, allocations: 4 kB / 428.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006505/0.2499, allocations: 108 kB / 428.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.2499, allocations: 4 kB / 428.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.2502, allocations: 31.81 kB / 428.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.2502, allocations: 12 kB / 428.7 MB, free: 9.262 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.0003033/0.2505, allocations: 341.6 kB / 429.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.869e-05/0.2506, allocations: 94.8 kB / 429.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004703/0.2511, allocations: 269.6 kB / 429.4 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.2511, allocations: 0 / 429.4 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.2511, allocations: 0 / 429.4 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.2511, allocations: 3.984 kB / 429.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004323/0.2515, allocations: 0.5723 MB / 430 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2516, allocations: 3.938 kB / 430 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006043/0.2522, allocations: 95.83 kB / 430.1 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.2522, allocations: 0 / 430.1 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.2522, allocations: 8 kB / 430.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2522, allocations: 4 kB / 430.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2522, allocations: 0 / 430.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006201/0.2528, allocations: 421.6 kB / 430.5 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.253, allocations: 219.9 kB / 430.7 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.236e-05/0.2531, allocations: 4 kB / 430.7 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.2534, allocations: 19.98 kB / 430.8 MB, free: 7.137 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.376e-05/0.2534, allocations: 19.97 kB / 430.8 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.2535, allocations: 7.938 kB / 430.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009505/0.2544, allocations: 1.137 MB / 431.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2544, allocations: 8 kB / 431.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003673/0.2548, allocations: 99.84 kB / 432 MB, free: 5.855 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.0005905/0.2554, allocations: 264.2 kB / 432.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004504/0.2558, allocations: 168.1 kB / 432.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.2559, allocations: 4 kB / 432.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001714/0.256, allocations: 75.95 kB / 432.5 MB, free: 5.422 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004716/0.2565, allocations: 74.92 kB / 432.6 MB, free: 5.352 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00234/0.2589, allocations: 1.823 MB / 434.4 MB, free: 3.496 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.2592, allocations: 1.001 MB / 435.4 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002014/0.2595, allocations: 122.9 kB / 435.5 MB, free: 2.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.2596, allocations: 47.42 kB / 435.6 MB, free: 2.301 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2596, allocations: 0 / 435.6 MB, free: 2.301 MB / 302.1 MB Notification: Performance of Templates: time 0.01223/0.2718, allocations: 6.883 MB / 442.5 MB, free: 11.42 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)