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.001476/0.001476, allocations: 109 kB / 16.68 MB, free: 6.336 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.001677/0.001677, allocations: 193.8 kB / 17.61 MB, free: 5.762 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.449/1.449, allocations: 222.9 MB / 241.3 MB, free: 15.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04797/0.04797, allocations: 8.1 MB / 299.5 MB, free: 6.902 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 55.91 kB / 361.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2253, allocations: 51.52 MB / 413.4 MB, free: 25.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.003524/0.2289, allocations: 2.511 MB / 415.9 MB, free: 23.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.2302, allocations: 0.8875 MB / 416.8 MB, free: 22.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002038/0.2304, allocations: 4 kB / 416.8 MB, free: 22.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000695/0.2311, allocations: 379 kB / 417.2 MB, free: 22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003843/0.2315, allocations: 187.4 kB / 417.4 MB, free: 21.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007595/0.2323, allocations: 390.8 kB / 417.7 MB, free: 21.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004008/0.2327, allocations: 342.8 kB / 418.1 MB, free: 21.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.2329, allocations: 113.7 kB / 418.2 MB, free: 20.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000205/0.2331, allocations: 171.5 kB / 418.3 MB, free: 20.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003398/0.2335, allocations: 303.1 kB / 418.6 MB, free: 20.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.759e-05/0.2335, allocations: 28 kB / 418.7 MB, free: 20.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003188/0.2339, allocations: 159.9 kB / 418.8 MB, free: 20.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001949/0.2341, allocations: 311.1 kB / 419.1 MB, free: 20.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002185/0.2343, allocations: 353.6 kB / 419.5 MB, free: 19.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005886/0.2349, allocations: 0.7409 MB / 420.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2349, allocations: 0 / 420.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2349, allocations: 0 / 420.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.043e-05/0.2349, allocations: 4 kB / 420.2 MB, free: 18.94 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.002091/0.237, allocations: 1.251 MB / 421.5 MB, free: 17.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.2371, allocations: 15.89 kB / 421.5 MB, free: 17.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.2373, allocations: 91.81 kB / 421.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007905/0.2381, allocations: 0.7345 MB / 422.3 MB, free: 16.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.724e-05/0.2381, allocations: 72.34 kB / 422.4 MB, free: 16.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/0.2382, allocations: 16.38 kB / 422.4 MB, free: 16.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004782/0.2387, allocations: 300 kB / 422.7 MB, free: 16.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.2387, allocations: 3.938 kB / 422.7 MB, free: 16.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.782e-05/0.2387, allocations: 12 kB / 422.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.2387, allocations: 4 kB / 422.7 MB, free: 16.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000352/0.2391, allocations: 171.6 kB / 422.9 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001758/0.2409, allocations: 1.294 MB / 424.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005881/0.2415, allocations: 315.7 kB / 424.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003158/0.2418, allocations: 132.8 kB / 424.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008285/0.2426, allocations: 0.6611 MB / 425.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.96e-05/0.2427, allocations: 34.56 kB / 425.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.084e-06/0.2427, allocations: 0 / 425.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007354/0.2434, allocations: 308.8 kB / 425.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.369e-05/0.2435, allocations: 235.3 kB / 425.8 MB, free: 12.95 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.001654/0.2452, allocations: 1.567 MB / 427.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.2452, allocations: 29.7 kB / 427.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002348/0.2454, allocations: 423 kB / 427.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.41e-05/0.2455, allocations: 43.39 kB / 427.9 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.689e-05/0.2456, allocations: 37.7 kB / 427.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.316e-05/0.2456, allocations: 318 kB / 428.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.2458, allocations: 55.95 kB / 428.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002203/0.246, allocations: 171.8 kB / 428.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009545/0.247, allocations: 313.8 kB / 428.8 MB, free: 9.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.247, allocations: 4 kB / 428.8 MB, free: 9.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005502/0.2476, allocations: 284.3 kB / 429 MB, free: 9.625 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.872e-05/0.2476, allocations: 4 kB / 429 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2476, allocations: 12.28 kB / 429.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.2476, allocations: 0 / 429.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006807/0.2483, allocations: 95.91 kB / 429.2 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.198e-06/0.2483, allocations: 7.984 kB / 429.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/0.2486, allocations: 47.69 kB / 429.2 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.2486, allocations: 8 kB / 429.2 MB, free: 9.453 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.0003207/0.249, allocations: 344.8 kB / 429.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.2491, allocations: 90.81 kB / 429.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004978/0.2496, allocations: 281 kB / 429.9 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.2496, allocations: 3.984 kB / 429.9 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2496, allocations: 0 / 429.9 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2496, allocations: 0 / 429.9 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004444/0.2501, allocations: 0.5723 MB / 430.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2501, allocations: 3.938 kB / 430.5 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006448/0.2507, allocations: 91.91 kB / 430.6 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.2507, allocations: 0 / 430.6 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.2508, allocations: 3.984 kB / 430.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.2508, allocations: 4 kB / 430.6 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2508, allocations: 0 / 430.6 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006502/0.2514, allocations: 422.7 kB / 431 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001885/0.2516, allocations: 219.9 kB / 431.2 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.723e-05/0.2517, allocations: 0 / 431.2 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002601/0.252, allocations: 32.03 kB / 431.3 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.09e-05/0.2521, allocations: 15.98 kB / 431.3 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.2521, allocations: 7.984 kB / 431.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001079/0.2532, allocations: 1.134 MB / 432.4 MB, free: 6.152 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2532, allocations: 0 / 432.4 MB, free: 6.152 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004253/0.2536, allocations: 95.84 kB / 432.5 MB, free: 6.059 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.0005997/0.2542, allocations: 256.7 kB / 432.8 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004627/0.2547, allocations: 171.8 kB / 432.9 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.2547, allocations: 4 kB / 432.9 MB, free: 5.703 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.2549, allocations: 75.89 kB / 433 MB, free: 5.629 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004948/0.2554, allocations: 79.73 kB / 433.1 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002618/0.258, allocations: 1.886 MB / 435 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.2585, allocations: 1.005 MB / 436 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.2586, allocations: 51.42 kB / 436 MB, free: 2.547 MB / 302.1 MB Notification: Performance of SimCode: time 4.7e-07/0.2586, allocations: 0 / 436 MB, free: 2.547 MB / 302.1 MB Notification: Performance of Templates: time 0.01468/0.2733, allocations: 9.168 MB / 445.2 MB, free: 9.379 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)