Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 101.8 kB / 16.02 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.001051/0.001051, allocations: 200.7 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.325/1.325, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05317/0.05317, allocations: 8.106 MB / 298.9 MB, free: 6.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 59.91 kB / 361.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2735, allocations: 51.52 MB / 412.7 MB, free: 25.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.004439/0.278, allocations: 3.39 MB / 416.1 MB, free: 22.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.2799, allocations: 1.29 MB / 417.4 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002544/0.2802, allocations: 7.938 kB / 417.4 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006248/0.2809, allocations: 167.2 kB / 417.6 MB, free: 20.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003947/0.2813, allocations: 151.1 kB / 417.7 MB, free: 20.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005624/0.2818, allocations: 227.5 kB / 418 MB, free: 20.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004516/0.2823, allocations: 0.5337 MB / 418.5 MB, free: 20 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002448/0.2826, allocations: 160.8 kB / 418.7 MB, free: 19.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.2827, allocations: 219.1 kB / 418.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000243/0.283, allocations: 235 kB / 419.1 MB, free: 19.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.113e-05/0.283, allocations: 44 kB / 419.1 MB, free: 19.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.2832, allocations: 83.98 kB / 419.2 MB, free: 19.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001793/0.2834, allocations: 167.4 kB / 419.4 MB, free: 19.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.2836, allocations: 258.6 kB / 419.6 MB, free: 18.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005188/0.2841, allocations: 0.6346 MB / 420.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.2841, allocations: 0 / 420.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2841, allocations: 4 kB / 420.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.2841, allocations: 0 / 420.3 MB, free: 18.21 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001842/0.286, allocations: 1.001 MB / 421.3 MB, free: 17.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.286, allocations: 12.03 kB / 421.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.2861, allocations: 56.28 kB / 421.3 MB, free: 17.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005379/0.2867, allocations: 494.3 kB / 421.8 MB, free: 16.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002117/0.2869, allocations: 65.02 kB / 421.9 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.722e-05/0.287, allocations: 27.94 kB / 421.9 MB, free: 16.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006086/0.2876, allocations: 405.5 kB / 422.3 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.2876, allocations: 0 / 422.3 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.578e-05/0.2876, allocations: 12 kB / 422.3 MB, free: 16.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.2877, allocations: 8 kB / 422.3 MB, free: 16.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004738/0.2881, allocations: 270 kB / 422.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.29, allocations: 1.515 MB / 424.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005906/0.2906, allocations: 323.4 kB / 424.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.2908, allocations: 116.8 kB / 424.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.089e-05/0.2909, allocations: 4 kB / 424.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.2909, allocations: 38.55 kB / 424.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.162e-06/0.2909, allocations: 0 / 424.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008388/0.2918, allocations: 343.8 kB / 424.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.381e-05/0.2919, allocations: 209.6 kB / 425.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005569/0.2924, allocations: 0.576 MB / 425.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.2925, allocations: 29.7 kB / 425.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.2926, allocations: 263.7 kB / 426 MB, free: 12.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.647e-05/0.2927, allocations: 51.28 kB / 426 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.245e-05/0.2928, allocations: 53.69 kB / 426.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.067e-05/0.2929, allocations: 350.8 kB / 426.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002546/0.2931, allocations: 107.8 kB / 426.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003227/0.2935, allocations: 232.8 kB / 426.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004102/0.2939, allocations: 221.2 kB / 427 MB, free: 11.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2939, allocations: 4 kB / 427 MB, free: 11.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006142/0.2945, allocations: 317.1 kB / 427.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.2945, allocations: 4 kB / 427.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.2946, allocations: 7.938 kB / 427.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/0.2946, allocations: 4 kB / 427.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.2948, allocations: 55.91 kB / 427.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.2949, allocations: 7.969 kB / 427.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005427/0.2954, allocations: 111.6 kB / 427.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.174e-05/0.2954, allocations: 8 kB / 427.5 MB, free: 10.55 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.0001939/0.2956, allocations: 185.8 kB / 427.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.81e-05/0.2957, allocations: 43.62 kB / 427.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007019/0.2964, allocations: 284.5 kB / 428 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2965, allocations: 4 kB / 428 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.2965, allocations: 0 / 428 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.2965, allocations: 0 / 428 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.2975, allocations: 0.7837 MB / 428.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2975, allocations: 0 / 428.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.2977, allocations: 40.03 kB / 428.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.2977, allocations: 12.03 kB / 428.8 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.094e-05/0.2977, allocations: 0 / 428.8 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.2978, allocations: 0 / 428.8 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2978, allocations: 4 kB / 428.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008101/0.2986, allocations: 499.5 kB / 429.3 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.2987, allocations: 156.5 kB / 429.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.502e-05/0.2988, allocations: 4 kB / 429.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005705/0.2994, allocations: 103.9 kB / 429.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003065/0.2997, allocations: 123.8 kB / 429.7 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.2997, allocations: 8 kB / 429.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003836/0.3001, allocations: 431.1 kB / 430.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3001, allocations: 4 kB / 430.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003761/0.3005, allocations: 99.78 kB / 430.2 MB, free: 7.699 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * 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.0007637/0.3013, allocations: 360.3 kB / 430.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006011/0.3019, allocations: 263.6 kB / 430.8 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3019, allocations: 0.625 kB / 430.8 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003051/0.3022, allocations: 155.9 kB / 431 MB, free: 7.062 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005996/0.3028, allocations: 110.8 kB / 431.1 MB, free: 6.961 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.3043, allocations: 0.9785 MB / 432.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.3045, allocations: 0.8269 MB / 432.9 MB, free: 5.102 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002181/0.3047, allocations: 75.19 kB / 433 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.3049, allocations: 39.42 kB / 433 MB, free: 4.992 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3049, allocations: 3.938 kB / 433 MB, free: 4.988 MB / 302.1 MB Notification: Performance of Templates: time 0.01038/0.3153, allocations: 7.206 MB / 440.2 MB, free: 13.86 MB / 318.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)