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.001672/0.001672, allocations: 105.5 kB / 16.98 MB, free: 6.137 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.001169/0.001169, allocations: 191.4 kB / 17.91 MB, free: 5.234 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.449/1.449, allocations: 222.9 MB / 241.6 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04958/0.04958, allocations: 8.091 MB / 299.9 MB, free: 6.703 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 63.89 kB / 362.4 MB, free: 8.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2372, allocations: 51.52 MB / 413.9 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003799/0.2411, allocations: 3.125 MB / 417.1 MB, free: 22.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001563/0.2427, allocations: 1.171 MB / 418.2 MB, free: 21.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.2429, allocations: 7.938 kB / 418.2 MB, free: 21.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007289/0.2437, allocations: 444.4 kB / 418.7 MB, free: 20.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004006/0.2441, allocations: 270.8 kB / 418.9 MB, free: 20.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001395/0.2455, allocations: 0.9838 MB / 419.9 MB, free: 19.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004218/0.2459, allocations: 0.5139 MB / 420.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.2461, allocations: 157.4 kB / 420.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.2463, allocations: 235.3 kB / 420.8 MB, free: 18.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.2466, allocations: 370.9 kB / 421.2 MB, free: 18.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.538e-05/0.2467, allocations: 48 kB / 421.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004032/0.2471, allocations: 271.8 kB / 421.5 MB, free: 17.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001864/0.2473, allocations: 351 kB / 421.8 MB, free: 17.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002461/0.2476, allocations: 449.4 kB / 422.3 MB, free: 17.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000889/0.2485, allocations: 1.316 MB / 423.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.2485, allocations: 0 / 423.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2485, allocations: 0 / 423.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.2485, allocations: 0 / 423.6 MB, free: 15.88 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.002913/0.2514, allocations: 1.552 MB / 425.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.2515, allocations: 15.89 kB / 425.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.2516, allocations: 103.6 kB / 425.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008855/0.2525, allocations: 0.8757 MB / 426.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.479e-05/0.2526, allocations: 80.53 kB / 426.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.307e-05/0.2527, allocations: 32.38 kB / 426.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006494/0.2533, allocations: 453 kB / 426.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.2534, allocations: 4 kB / 426.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.758e-05/0.2534, allocations: 16 kB / 426.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2534, allocations: 8 kB / 426.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005091/0.2539, allocations: 310.1 kB / 427 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00254/0.2565, allocations: 2.143 MB / 429.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008922/0.2574, allocations: 468.4 kB / 429.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003823/0.2578, allocations: 218.8 kB / 429.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001269/0.2579, allocations: 93.27 kB / 429.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.258, allocations: 42.8 kB / 430 MB, free: 9.176 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.425e-06/0.258, allocations: 0 / 430 MB, free: 9.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002156/0.2601, allocations: 0.8175 MB / 430.8 MB, free: 8.332 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.247e-05/0.2602, allocations: 235.3 kB / 431 MB, free: 8.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.2618, allocations: 1.741 MB / 432.7 MB, free: 6.285 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.085e-05/0.2619, allocations: 33.7 kB / 432.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002802/0.2622, allocations: 436.8 kB / 433.2 MB, free: 5.812 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.886e-05/0.2622, allocations: 98.58 kB / 433.3 MB, free: 5.715 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.2624, allocations: 69.61 kB / 433.4 MB, free: 5.641 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.914e-05/0.2624, allocations: 321.9 kB / 433.7 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002816/0.2627, allocations: 155.9 kB / 433.8 MB, free: 5.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003212/0.2631, allocations: 242.3 kB / 434.1 MB, free: 4.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00329/0.2664, allocations: 0.9379 MB / 435 MB, free: 3.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.2664, allocations: 0 / 435 MB, free: 3.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001334/0.2677, allocations: 0.6138 MB / 435.6 MB, free: 3.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.2677, allocations: 4 kB / 435.6 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.2678, allocations: 4 kB / 435.6 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006182/0.2684, allocations: 152.6 kB / 435.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.2687, allocations: 67.95 kB / 435.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002021/0.2707, allocations: 2.035 MB / 437.9 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004744/0.2712, allocations: 47.72 kB / 437.9 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/0.2712, allocations: 15.94 kB / 437.9 MB, free: 0.8633 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.0004421/0.2717, allocations: 405.8 kB / 438.3 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.2718, allocations: 98.78 kB / 438.4 MB, free: 368 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.2731, allocations: 0.5934 MB / 439 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.2731, allocations: 11.94 kB / 439 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.2731, allocations: 0 / 439 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.2731, allocations: 0 / 439 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002371/0.2755, allocations: 1.47 MB / 440.5 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.2755, allocations: 0 / 440.5 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000272/0.2758, allocations: 59.91 kB / 440.6 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006186/0.2764, allocations: 148.7 kB / 440.7 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.625e-05/0.2765, allocations: 8 kB / 440.7 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002308/0.2788, allocations: 2.008 MB / 442.7 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/0.2788, allocations: 3.938 kB / 442.7 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.2806, allocations: 0.8333 MB / 443.6 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000373/0.281, allocations: 243.8 kB / 443.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.956e-05/0.2811, allocations: 8 kB / 443.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003687/0.2815, allocations: 35.91 kB / 443.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.2816, allocations: 31.95 kB / 443.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.422e-05/0.2816, allocations: 8 kB / 443.9 MB, free: 10.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001567/0.2832, allocations: 1.26 MB / 445.1 MB, free: 9.383 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.2832, allocations: 4.062 kB / 445.2 MB, free: 9.379 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006385/0.2839, allocations: 151.8 kB / 445.3 MB, free: 9.23 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.000684/0.2845, allocations: 290 kB / 445.6 MB, free: 9.023 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.2858, allocations: 0.5335 MB / 446.1 MB, free: 8.477 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.2858, allocations: 0 / 446.1 MB, free: 8.477 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006798/0.2865, allocations: 342.6 kB / 446.5 MB, free: 8.129 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006333/0.2872, allocations: 84.39 kB / 446.5 MB, free: 8.043 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003209/0.2904, allocations: 1.98 MB / 448.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006769/0.2911, allocations: 1.072 MB / 449.6 MB, free: 4.926 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001904/0.2913, allocations: 59.42 kB / 449.6 MB, free: 4.867 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2913, allocations: 0 / 449.6 MB, free: 4.867 MB / 318.1 MB Notification: Performance of Templates: time 0.02187/0.3132, allocations: 14.85 MB / 464.5 MB, free: 6.016 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 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)