Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 104.6 kB / 16.03 MB, free: 6.277 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.001667/0.001667, allocations: 194.2 kB / 16.95 MB, free: 6.098 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.406/1.406, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05939/0.05939, allocations: 8.108 MB / 298.9 MB, free: 6.891 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001065, allocations: 59.91 kB / 361.2 MB, free: 8.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2906, allocations: 51.52 MB / 412.7 MB, free: 25.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003866/0.2946, allocations: 2.419 MB / 415.2 MB, free: 23.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006979/0.2953, allocations: 0.5022 MB / 415.7 MB, free: 22.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.2954, allocations: 4 kB / 415.7 MB, free: 22.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004446/0.2959, allocations: 87.56 kB / 415.8 MB, free: 22.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002161/0.2961, allocations: 75.58 kB / 415.8 MB, free: 22.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002498/0.2964, allocations: 71.89 kB / 415.9 MB, free: 22.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002681/0.2966, allocations: 283 kB / 416.2 MB, free: 22.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002424/0.2969, allocations: 105.4 kB / 416.3 MB, free: 22.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.297, allocations: 119.6 kB / 416.4 MB, free: 22.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.2973, allocations: 139.4 kB / 416.5 MB, free: 21.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.006e-05/0.2973, allocations: 24 kB / 416.6 MB, free: 21.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00021/0.2975, allocations: 87.95 kB / 416.6 MB, free: 21.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001679/0.2977, allocations: 111.6 kB / 416.7 MB, free: 21.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.2978, allocations: 151.2 kB / 416.9 MB, free: 21.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004586/0.2983, allocations: 394.7 kB / 417.3 MB, free: 21.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.2983, allocations: 3.984 kB / 417.3 MB, free: 21.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.2983, allocations: 0 / 417.3 MB, free: 21.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.2983, allocations: 0 / 417.3 MB, free: 21.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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001619/0.3, allocations: 0.7871 MB / 418.1 MB, free: 20.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.3, allocations: 16.03 kB / 418.1 MB, free: 20.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.136e-05/0.3001, allocations: 28.56 kB / 418.1 MB, free: 20.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003527/0.3005, allocations: 355.4 kB / 418.5 MB, free: 19.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.113e-05/0.3005, allocations: 12.7 kB / 418.5 MB, free: 19.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.3005, allocations: 24.25 kB / 418.5 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004315/0.301, allocations: 283 kB / 418.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.301, allocations: 192 / 418.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.827e-05/0.301, allocations: 11.94 kB / 418.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.301, allocations: 4 kB / 418.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.3014, allocations: 195.8 kB / 419 MB, free: 19.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.3024, allocations: 0.857 MB / 419.8 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005256/0.303, allocations: 295.7 kB / 420.1 MB, free: 18.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002855/0.3033, allocations: 144.8 kB / 420.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.024e-05/0.3033, allocations: 8 kB / 420.3 MB, free: 18.01 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.3034, allocations: 42.5 kB / 420.3 MB, free: 17.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.042e-06/0.3034, allocations: 4 kB / 420.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006469/0.304, allocations: 273.3 kB / 420.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.519e-05/0.3041, allocations: 213.6 kB / 420.8 MB, free: 17.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003497/0.3045, allocations: 362.7 kB / 421.2 MB, free: 17.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.3045, allocations: 25.7 kB / 421.2 MB, free: 17.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.346e-05/0.3046, allocations: 176 kB / 421.3 MB, free: 16.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.138e-05/0.3046, allocations: 47.39 kB / 421.4 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.246e-05/0.3047, allocations: 29.72 kB / 421.4 MB, free: 16.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.741e-05/0.3048, allocations: 342.8 kB / 421.8 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/0.305, allocations: 83.94 kB / 421.8 MB, free: 16.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.3052, allocations: 151.8 kB / 422 MB, free: 16.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000691/0.3059, allocations: 250.3 kB / 422.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3059, allocations: 0 / 422.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003839/0.3063, allocations: 215.9 kB / 422.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.3063, allocations: 6.5 kB / 422.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3063, allocations: 3.984 kB / 422.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.3063, allocations: 4 kB / 422.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.3065, allocations: 27.98 kB / 422.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.505e-06/0.3065, allocations: 0 / 422.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004386/0.3069, allocations: 91.84 kB / 422.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.307, allocations: 12 kB / 422.6 MB, free: 15.56 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: 3 * Number of states: 0 () * Number of discrete variables: 2 (pulseSeries.on2,pulseSeries.on1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0002713/0.3072, allocations: 153.7 kB / 422.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.617e-05/0.3073, allocations: 27.72 kB / 422.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000504/0.3078, allocations: 243.3 kB / 423 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3078, allocations: 64 / 423 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3078, allocations: 8 kB / 423 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.3079, allocations: 3.984 kB / 423 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007706/0.3086, allocations: 0.6512 MB / 423.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3086, allocations: 0 / 423.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001319/0.3088, allocations: 27.92 kB / 423.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.3088, allocations: 8.031 kB / 423.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.3088, allocations: 0 / 423.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3088, allocations: 3.938 kB / 423.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3088, allocations: 4 kB / 423.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005869/0.3094, allocations: 431.9 kB / 424.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.783e-05/0.3095, allocations: 112.8 kB / 424.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.804e-05/0.3096, allocations: 8 kB / 424.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004599/0.31, allocations: 83.89 kB / 424.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002166/0.3102, allocations: 127.8 kB / 424.5 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.3103, allocations: 11.98 kB / 424.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.3105, allocations: 273.9 kB / 424.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3105, allocations: 0 / 424.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000307/0.3108, allocations: 67.84 kB / 424.8 MB, free: 13.23 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * 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.0005301/0.3113, allocations: 252.2 kB / 425 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004186/0.3118, allocations: 203.8 kB / 425.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3118, allocations: 0 / 425.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002377/0.312, allocations: 139.8 kB / 425.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.3123, allocations: 36.41 kB / 425.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.3138, allocations: 0.7477 MB / 426.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001624/0.314, allocations: 0.7597 MB / 426.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001365/0.3141, allocations: 45.52 kB / 427 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.3142, allocations: 27.44 kB / 427 MB, free: 11.04 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3142, allocations: 0 / 427 MB, free: 11.04 MB / 302.1 MB Notification: Performance of Templates: time 0.006801/0.3211, allocations: 4.54 MB / 431.5 MB, free: 6.516 MB / 302.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)