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-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.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.001302/0.001302, allocations: 107.1 kB / 16.57 MB, free: 6.73 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: 193.9 kB / 17.48 MB, free: 6.027 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.351/1.351, allocations: 222.9 MB / 241.2 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.06362/0.06362, allocations: 8.094 MB / 299.4 MB, free: 6.969 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 63.91 kB / 361.7 MB, free: 8.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1969/0.1981, allocations: 51.51 MB / 413.2 MB, free: 25.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.002969/0.2011, allocations: 2.421 MB / 415.6 MB, free: 23.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000642/0.2018, allocations: 0.5099 MB / 416.1 MB, free: 22.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.649e-05/0.2019, allocations: 4 kB / 416.1 MB, free: 22.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003246/0.2022, allocations: 91.56 kB / 416.2 MB, free: 22.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.2024, allocations: 75.58 kB / 416.3 MB, free: 22.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001597/0.2025, allocations: 67.89 kB / 416.4 MB, free: 22.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.2027, allocations: 291 kB / 416.7 MB, free: 22.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.2029, allocations: 85.3 kB / 416.7 MB, free: 22.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.874e-05/0.203, allocations: 107.6 kB / 416.8 MB, free: 22.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/0.2031, allocations: 131.5 kB / 417 MB, free: 22.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.442e-05/0.2032, allocations: 16 kB / 417 MB, free: 22.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.2033, allocations: 67.92 kB / 417.1 MB, free: 21.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.2034, allocations: 99.69 kB / 417.2 MB, free: 21.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.972e-05/0.2035, allocations: 143.2 kB / 417.3 MB, free: 21.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.2038, allocations: 307.3 kB / 417.6 MB, free: 21.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2038, allocations: 3.938 kB / 417.6 MB, free: 21.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.2038, allocations: 0 / 417.6 MB, free: 21.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.2038, allocations: 0 / 417.6 MB, free: 21.43 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.001557/0.2054, allocations: 0.795 MB / 418.4 MB, free: 20.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.2054, allocations: 11.97 kB / 418.4 MB, free: 20.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.158e-05/0.2055, allocations: 36.56 kB / 418.4 MB, free: 20.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000324/0.2058, allocations: 347.4 kB / 418.8 MB, free: 20.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.2058, allocations: 16.7 kB / 418.8 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.587e-05/0.2059, allocations: 20.31 kB / 418.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004157/0.2063, allocations: 287 kB / 419.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.2063, allocations: 192 / 419.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.2064, allocations: 7.938 kB / 419.1 MB, free: 19.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.2064, allocations: 8 kB / 419.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003329/0.2067, allocations: 203.7 kB / 419.3 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.2077, allocations: 0.8493 MB / 420.2 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005079/0.2082, allocations: 291.7 kB / 420.4 MB, free: 18.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000285/0.2085, allocations: 149 kB / 420.6 MB, free: 18.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.784e-05/0.2086, allocations: 8 kB / 420.6 MB, free: 18.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.586e-05/0.2086, allocations: 38.5 kB / 420.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.112e-06/0.2086, allocations: 0 / 420.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006382/0.2093, allocations: 277.3 kB / 420.9 MB, free: 17.9 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.2093, allocations: 209.6 kB / 421.1 MB, free: 17.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.2096, allocations: 366.7 kB / 421.5 MB, free: 17.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.2097, allocations: 25.7 kB / 421.5 MB, free: 17.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.237e-05/0.2097, allocations: 180 kB / 421.7 MB, free: 17.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.079e-05/0.2098, allocations: 43.38 kB / 421.7 MB, free: 17.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.803e-05/0.2099, allocations: 37.7 kB / 421.8 MB, free: 16.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.026e-05/0.2099, allocations: 338.8 kB / 422.1 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.2101, allocations: 83.94 kB / 422.2 MB, free: 16.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.2103, allocations: 155.6 kB / 422.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006916/0.211, allocations: 245.3 kB / 422.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.211, allocations: 0 / 422.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004037/0.2114, allocations: 209.3 kB / 422.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.2115, allocations: 4 kB / 422.8 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.2115, allocations: 3.938 kB / 422.8 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.2115, allocations: 0 / 422.8 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.2116, allocations: 35.98 kB / 422.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.2116, allocations: 3.984 kB / 422.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004582/0.2121, allocations: 87.83 kB / 422.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.2121, allocations: 4 kB / 422.9 MB, free: 15.79 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.0002226/0.2124, allocations: 164.5 kB / 423.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.811e-05/0.2124, allocations: 23.72 kB / 423.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005303/0.213, allocations: 251.5 kB / 423.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.213, allocations: 0 / 423.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.213, allocations: 3.984 kB / 423.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.213, allocations: 0 / 423.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007795/0.2138, allocations: 0.6512 MB / 424 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2138, allocations: 4 kB / 424 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001431/0.2139, allocations: 27.92 kB / 424 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.214, allocations: 3.938 kB / 424 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.805e-05/0.214, allocations: 8.031 kB / 424 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.214, allocations: 7.922 kB / 424 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.214, allocations: 0 / 424 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006179/0.2146, allocations: 438.8 kB / 424.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.718e-05/0.2147, allocations: 112.8 kB / 424.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.901e-05/0.2147, allocations: 0 / 424.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004764/0.2152, allocations: 91.88 kB / 424.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002186/0.2155, allocations: 123.8 kB / 424.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.2155, allocations: 4 kB / 424.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.2157, allocations: 277.9 kB / 425.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2157, allocations: 0 / 425.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.216, allocations: 67.84 kB / 425.1 MB, free: 13.45 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.0005125/0.2165, allocations: 259.5 kB / 425.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004466/0.217, allocations: 203.8 kB / 425.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.217, allocations: 4.125 kB / 425.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002527/0.2173, allocations: 135.8 kB / 425.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.2176, allocations: 28.42 kB / 425.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.2191, allocations: 0.7822 MB / 426.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001445/0.2193, allocations: 0.7599 MB / 427.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.2194, allocations: 27.44 kB / 427.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2194, allocations: 0 / 427.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of Templates: time 0.005033/0.2245, allocations: 4.28 MB / 431.6 MB, free: 6.996 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)