Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 103.8 kB / 17.07 MB, free: 5.68 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.001431/0.001431, allocations: 196 kB / 18.01 MB, free: 5.02 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.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04705/0.04705, allocations: 8.094 MB / 300 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 71.89 kB / 363.2 MB, free: 7.379 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2027, allocations: 51.52 MB / 414.7 MB, free: 25.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003562/0.2064, allocations: 3.119 MB / 417.8 MB, free: 22.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.2077, allocations: 1.179 MB / 419 MB, free: 21.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.2078, allocations: 11.94 kB / 419 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006209/0.2084, allocations: 442.5 kB / 419.4 MB, free: 20.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003514/0.2088, allocations: 262.8 kB / 419.7 MB, free: 20.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.2101, allocations: 0.9881 MB / 420.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003909/0.2105, allocations: 0.5138 MB / 421.2 MB, free: 18.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.2107, allocations: 163.2 kB / 421.4 MB, free: 18.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.2109, allocations: 235.2 kB / 421.6 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003301/0.2112, allocations: 362.9 kB / 421.9 MB, free: 18.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.289e-05/0.2113, allocations: 48 kB / 422 MB, free: 18.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003152/0.2116, allocations: 271.8 kB / 422.3 MB, free: 17.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000178/0.2118, allocations: 351.1 kB / 422.6 MB, free: 17.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002484/0.212, allocations: 457.3 kB / 423 MB, free: 17.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007866/0.2128, allocations: 1.328 MB / 424.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2128, allocations: 4 kB / 424.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2129, allocations: 0 / 424.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.2129, allocations: 0 / 424.4 MB, free: 15.7 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00285/0.2157, allocations: 1.545 MB / 425.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.2158, allocations: 15.89 kB / 425.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001567/0.2159, allocations: 111.6 kB / 426 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.2171, allocations: 0.8719 MB / 426.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.555e-05/0.2172, allocations: 84.52 kB / 427 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.283e-05/0.2172, allocations: 32.31 kB / 427 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006672/0.2179, allocations: 449.1 kB / 427.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.2179, allocations: 3.938 kB / 427.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.839e-05/0.218, allocations: 12 kB / 427.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.218, allocations: 8 kB / 427.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005342/0.2185, allocations: 326 kB / 427.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002662/0.2212, allocations: 2.116 MB / 429.9 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008297/0.222, allocations: 484.3 kB / 430.4 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000353/0.2224, allocations: 210.9 kB / 430.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.2225, allocations: 89.27 kB / 430.7 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.76e-05/0.2226, allocations: 38.8 kB / 430.7 MB, free: 9.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.473e-06/0.2226, allocations: 0 / 430.7 MB, free: 9.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001978/0.2245, allocations: 0.8292 MB / 431.6 MB, free: 8.164 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.219e-05/0.2246, allocations: 235.3 kB / 431.8 MB, free: 7.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.2261, allocations: 1.737 MB / 433.5 MB, free: 6.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.2262, allocations: 29.7 kB / 433.6 MB, free: 6.086 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002519/0.2264, allocations: 444.7 kB / 434 MB, free: 5.645 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.913e-05/0.2265, allocations: 90.66 kB / 434.1 MB, free: 5.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.88e-05/0.2266, allocations: 73.59 kB / 434.2 MB, free: 5.477 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.352e-05/0.2267, allocations: 318 kB / 434.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002626/0.2269, allocations: 151.9 kB / 434.6 MB, free: 5.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003317/0.2273, allocations: 250 kB / 434.9 MB, free: 4.734 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003086/0.2304, allocations: 0.9423 MB / 435.8 MB, free: 3.781 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2304, allocations: 0 / 435.8 MB, free: 3.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001189/0.2316, allocations: 0.6022 MB / 436.4 MB, free: 3.168 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.2316, allocations: 11.98 kB / 436.4 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.2316, allocations: 0 / 436.4 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005797/0.2322, allocations: 144.7 kB / 436.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002736/0.2325, allocations: 71.89 kB / 436.6 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001893/0.2344, allocations: 2.03 MB / 438.7 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003864/0.2348, allocations: 59.66 kB / 438.7 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.2348, allocations: 8 kB / 438.7 MB, free: 0.7109 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.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: 4 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004261/0.2352, allocations: 413.6 kB / 439.1 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.2354, allocations: 94.78 kB / 439.2 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00128/0.2366, allocations: 0.5895 MB / 439.8 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.2367, allocations: 11.94 kB / 439.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.2367, allocations: 0 / 439.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-06/0.2367, allocations: 0 / 439.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002408/0.2391, allocations: 1.478 MB / 441.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.2391, allocations: 0 / 441.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002548/0.2394, allocations: 55.91 kB / 441.3 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005993/0.24, allocations: 144.7 kB / 441.5 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.24, allocations: 8 kB / 441.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002239/0.2423, allocations: 2.012 MB / 443.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.2423, allocations: 3.969 kB / 443.5 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00163/0.2439, allocations: 0.8342 MB / 444.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003888/0.2443, allocations: 235.8 kB / 444.6 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.821e-05/0.2444, allocations: 8 kB / 444.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003505/0.2448, allocations: 39.91 kB / 444.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.982e-05/0.2449, allocations: 35.89 kB / 444.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.2449, allocations: 12.06 kB / 444.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001673/0.2466, allocations: 1.256 MB / 445.9 MB, free: 9.227 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2466, allocations: 0 / 445.9 MB, free: 9.227 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005984/0.2472, allocations: 159.8 kB / 446.1 MB, free: 9.07 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.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 (25): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006592/0.2479, allocations: 270.5 kB / 446.3 MB, free: 8.879 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.249, allocations: 0.5256 MB / 446.9 MB, free: 8.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.249, allocations: 0 / 446.9 MB, free: 8.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006571/0.2497, allocations: 342.7 kB / 447.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005384/0.2503, allocations: 84.41 kB / 447.3 MB, free: 7.906 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003053/0.2533, allocations: 1.889 MB / 449.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007203/0.2541, allocations: 1.076 MB / 450.3 MB, free: 4.879 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002634/0.2543, allocations: 133.1 kB / 450.4 MB, free: 4.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.2545, allocations: 51.44 kB / 450.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2545, allocations: 0 / 450.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of Templates: time 0.01869/0.2732, allocations: 11.08 MB / 461.5 MB, free: 9.648 MB / 334.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)