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.000988/0.0009881, allocations: 106 kB / 16.31 MB, free: 6.391 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.0009657/0.0009657, allocations: 189.8 kB / 17.24 MB, free: 5.922 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.288/1.288, allocations: 222.9 MB / 240.9 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04752/0.04752, allocations: 8.093 MB / 299.2 MB, free: 6.754 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 59.91 kB / 361.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2191/0.221, allocations: 51.51 MB / 413.2 MB, free: 25.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.002967/0.224, allocations: 2.372 MB / 415.6 MB, free: 23.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008414/0.2249, allocations: 0.51 MB / 416.1 MB, free: 22.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.2251, allocations: 7.938 kB / 416.1 MB, free: 22.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004224/0.2255, allocations: 99.42 kB / 416.2 MB, free: 22.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002081/0.2257, allocations: 79.41 kB / 416.3 MB, free: 22.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.226, allocations: 87.78 kB / 416.4 MB, free: 22.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002649/0.2262, allocations: 275.1 kB / 416.7 MB, free: 22.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002313/0.2265, allocations: 121.3 kB / 416.8 MB, free: 22.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.2266, allocations: 111.6 kB / 416.9 MB, free: 21.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001992/0.2268, allocations: 139.5 kB / 417 MB, free: 21.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.35e-05/0.2269, allocations: 28 kB / 417.1 MB, free: 21.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001425/0.227, allocations: 79.91 kB / 417.1 MB, free: 21.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001537/0.2272, allocations: 107.7 kB / 417.2 MB, free: 21.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.2273, allocations: 159.2 kB / 417.4 MB, free: 21.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003165/0.2276, allocations: 398.7 kB / 417.8 MB, free: 21.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2276, allocations: 0 / 417.8 MB, free: 21.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2277, allocations: 0 / 417.8 MB, free: 21.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.2277, allocations: 0 / 417.8 MB, free: 21.06 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.00163/0.2293, allocations: 0.7871 MB / 418.6 MB, free: 20.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.2293, allocations: 15.97 kB / 418.6 MB, free: 20.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.682e-05/0.2294, allocations: 40.56 kB / 418.6 MB, free: 20.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003166/0.2297, allocations: 347.4 kB / 419 MB, free: 19.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.2298, allocations: 16.64 kB / 419 MB, free: 19.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.379e-05/0.2298, allocations: 16.38 kB / 419 MB, free: 19.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004265/0.2302, allocations: 287 kB / 419.3 MB, free: 19.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.2303, allocations: 192 / 419.3 MB, free: 19.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.577e-05/0.2303, allocations: 11.94 kB / 419.3 MB, free: 19.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.77e-06/0.2303, allocations: 4 kB / 419.3 MB, free: 19.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003382/0.2307, allocations: 191.8 kB / 419.5 MB, free: 19.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.2317, allocations: 0.8493 MB / 420.3 MB, free: 18.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005308/0.2322, allocations: 295.7 kB / 420.6 MB, free: 18.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003037/0.2325, allocations: 152.5 kB / 420.8 MB, free: 17.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.786e-05/0.2326, allocations: 7.984 kB / 420.8 MB, free: 17.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.537e-05/0.2326, allocations: 38.56 kB / 420.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.272e-06/0.2326, allocations: 4 kB / 420.8 MB, free: 17.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006468/0.2333, allocations: 273.5 kB / 421.1 MB, free: 17.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.96e-05/0.2333, allocations: 217.6 kB / 421.3 MB, free: 17.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.2337, allocations: 366.6 kB / 421.7 MB, free: 16.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.2337, allocations: 25.7 kB / 421.7 MB, free: 16.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.437e-05/0.2338, allocations: 176 kB / 421.9 MB, free: 16.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.035e-05/0.2338, allocations: 43.39 kB / 421.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.428e-05/0.2339, allocations: 29.72 kB / 421.9 MB, free: 16.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.288e-05/0.2339, allocations: 342.8 kB / 422.3 MB, free: 16.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.2341, allocations: 87.88 kB / 422.3 MB, free: 16.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.2344, allocations: 148.5 kB / 422.5 MB, free: 16.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000719/0.2351, allocations: 246.3 kB / 422.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2351, allocations: 0 / 422.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004155/0.2355, allocations: 213.4 kB / 422.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.2355, allocations: 4 kB / 422.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2356, allocations: 4 kB / 422.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.2356, allocations: 4 kB / 423 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.2357, allocations: 31.98 kB / 423 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.2357, allocations: 3.984 kB / 423 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005078/0.2363, allocations: 87.83 kB / 423.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.101e-05/0.2363, allocations: 8 kB / 423.1 MB, free: 15.42 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.000223/0.2365, allocations: 156.8 kB / 423.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.943e-05/0.2366, allocations: 27.7 kB / 423.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000531/0.2371, allocations: 243 kB / 423.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.2371, allocations: 3.984 kB / 423.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.2371, allocations: 4 kB / 423.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.2372, allocations: 0 / 423.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007881/0.2379, allocations: 0.6589 MB / 424.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.238, allocations: 0 / 424.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.2381, allocations: 23.98 kB / 424.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2381, allocations: 4 kB / 424.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.2382, allocations: 4.031 kB / 424.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.165e-06/0.2382, allocations: 3.938 kB / 424.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2382, allocations: 7.984 kB / 424.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006236/0.2388, allocations: 431.9 kB / 424.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.857e-05/0.2389, allocations: 112.8 kB / 424.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/0.2389, allocations: 4 kB / 424.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005336/0.2395, allocations: 91.88 kB / 424.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002159/0.2397, allocations: 123.8 kB / 425 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.2397, allocations: 8 kB / 425 MB, free: 13.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002225/0.2399, allocations: 273.9 kB / 425.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2399, allocations: 0 / 425.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.2403, allocations: 67.84 kB / 425.3 MB, free: 13.1 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.0005734/0.2408, allocations: 260.4 kB / 425.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004809/0.2413, allocations: 211.8 kB / 425.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2414, allocations: 0 / 425.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002463/0.2416, allocations: 139.8 kB / 425.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000326/0.2419, allocations: 32.34 kB / 425.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.2435, allocations: 0.6541 MB / 426.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000168/0.2437, allocations: 0.7636 MB / 427.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001303/0.2439, allocations: 37.53 kB / 427.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.244, allocations: 31.44 kB / 427.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.244, allocations: 0 / 427.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of Templates: time 0.007731/0.2517, allocations: 5.467 MB / 432.9 MB, free: 5.535 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)