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.001164/0.001164, allocations: 103 kB / 16.98 MB, free: 6.18 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.001101/0.001101, allocations: 187.3 kB / 17.91 MB, free: 5.281 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.365/1.365, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05307/0.05308, allocations: 8.093 MB / 299.9 MB, free: 6.664 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 67.83 kB / 362.4 MB, free: 8.078 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2648, allocations: 51.52 MB / 413.9 MB, free: 25.6 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.003939/0.2688, allocations: 2.457 MB / 416.4 MB, free: 23.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001346/0.2702, allocations: 0.9068 MB / 417.3 MB, free: 22.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.2704, allocations: 4 kB / 417.3 MB, free: 22.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006976/0.2711, allocations: 386.8 kB / 417.7 MB, free: 21.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003283/0.2714, allocations: 207.2 kB / 417.9 MB, free: 21.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007669/0.2722, allocations: 418.4 kB / 418.3 MB, free: 21.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003096/0.2725, allocations: 346.9 kB / 418.6 MB, free: 20.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.2728, allocations: 105.7 kB / 418.7 MB, free: 20.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.2729, allocations: 171.5 kB / 418.9 MB, free: 20.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003163/0.2732, allocations: 283.2 kB / 419.2 MB, free: 20.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.945e-05/0.2733, allocations: 28 kB / 419.2 MB, free: 20.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003268/0.2736, allocations: 163.8 kB / 419.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002198/0.2739, allocations: 319.2 kB / 419.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002349/0.2741, allocations: 341.7 kB / 420 MB, free: 19.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000733/0.2748, allocations: 0.9306 MB / 420.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2749, allocations: 0 / 420.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2749, allocations: 0 / 420.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.2749, allocations: 0 / 420.9 MB, free: 18.56 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.002015/0.2769, allocations: 1.24 MB / 422.2 MB, free: 17.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.277, allocations: 15.83 kB / 422.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.2771, allocations: 91.81 kB / 422.3 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008614/0.278, allocations: 0.7423 MB / 423 MB, free: 16.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.674e-05/0.2781, allocations: 68.34 kB / 423.1 MB, free: 16.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.663e-05/0.2782, allocations: 16.38 kB / 423.1 MB, free: 16.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005271/0.2787, allocations: 300 kB / 423.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.2787, allocations: 7.875 kB / 423.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.2788, allocations: 16 kB / 423.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.2788, allocations: 7.938 kB / 423.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003495/0.2791, allocations: 163.7 kB / 423.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.2809, allocations: 1.298 MB / 424.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006388/0.2815, allocations: 318 kB / 425.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003229/0.2819, allocations: 132.8 kB / 425.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008464/0.2827, allocations: 0.6651 MB / 426 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.998e-05/0.2828, allocations: 30.56 kB / 426 MB, free: 13.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.625e-06/0.2828, allocations: 0 / 426 MB, free: 13.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007534/0.2835, allocations: 308.5 kB / 426.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.493e-05/0.2836, allocations: 235.3 kB / 426.5 MB, free: 12.58 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.001568/0.2852, allocations: 1.571 MB / 428.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.2852, allocations: 29.7 kB / 428.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.2855, allocations: 423 kB / 428.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.797e-05/0.2855, allocations: 39.39 kB / 428.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.233e-05/0.2856, allocations: 41.7 kB / 428.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.03e-05/0.2856, allocations: 310 kB / 428.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.2858, allocations: 59.97 kB / 429 MB, free: 10.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.2861, allocations: 171.2 kB / 429.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009422/0.287, allocations: 313.9 kB / 429.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.287, allocations: 0 / 429.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005047/0.2875, allocations: 288.3 kB / 429.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.2876, allocations: 8 kB / 429.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.2876, allocations: 3.984 kB / 429.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.2876, allocations: 7.984 kB / 429.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006705/0.2883, allocations: 100.1 kB / 429.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.2883, allocations: 0 / 429.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002441/0.2885, allocations: 35.83 kB / 429.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.2886, allocations: 11.92 kB / 429.9 MB, free: 9.094 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.0003249/0.2889, allocations: 348.9 kB / 430.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.652e-05/0.289, allocations: 90.81 kB / 430.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005036/0.2895, allocations: 281.5 kB / 430.6 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.2895, allocations: 4 kB / 430.6 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2895, allocations: 0 / 430.6 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.2895, allocations: 0 / 430.6 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004552/0.29, allocations: 0.5762 MB / 431.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.29, allocations: 11.88 kB / 431.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006207/0.2906, allocations: 87.91 kB / 431.3 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.2906, allocations: 0 / 431.3 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.2907, allocations: 4 kB / 431.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2907, allocations: 0 / 431.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2907, allocations: 0 / 431.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006637/0.2913, allocations: 430.7 kB / 431.7 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001984/0.2916, allocations: 215.9 kB / 431.9 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.568e-05/0.2916, allocations: 4 kB / 431.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.2919, allocations: 27.97 kB / 432 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.252e-05/0.292, allocations: 19.97 kB / 432 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.292, allocations: 0 / 432 MB, free: 6.926 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001022/0.293, allocations: 1.141 MB / 433.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.293, allocations: 0 / 433.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003911/0.2934, allocations: 103.9 kB / 433.2 MB, free: 5.672 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.0006339/0.2941, allocations: 257.7 kB / 433.5 MB, free: 5.488 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004604/0.2945, allocations: 167.8 kB / 433.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2945, allocations: 384 / 433.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001827/0.2947, allocations: 83.89 kB / 433.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.2952, allocations: 67.44 kB / 433.8 MB, free: 5.176 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00237/0.2976, allocations: 1.688 MB / 435.5 MB, free: 3.449 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.298, allocations: 1.009 MB / 436.5 MB, free: 2.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.2981, allocations: 43.44 kB / 436.5 MB, free: 2.371 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2981, allocations: 0 / 436.5 MB, free: 2.371 MB / 302.1 MB Notification: Performance of Templates: time 0.01269/0.3108, allocations: 9.173 MB / 445.7 MB, free: 9.199 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)