Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.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.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009053/0.0009052, allocations: 96.78 kB / 15.74 MB, free: 424 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001232, allocations: 168.8 kB / 16.62 MB, free: 6.434 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.495/1.495, allocations: 223.3 MB / 240.7 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.26/0.26, allocations: 8.089 MB / 299.8 MB, free: 2.938 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004599/0.00046, allocations: 8 kB / 362.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1567, allocations: 52.52 MB / 415.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.005471/0.1622, allocations: 4.05 MB / 419.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002937/0.1652, allocations: 1.324 MB / 420.8 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006625/0.1659, allocations: 12 kB / 420.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.1671, allocations: 434.5 kB / 421.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001145/0.1683, allocations: 378.3 kB / 421.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001936/0.1702, allocations: 0.8528 MB / 422.4 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001338/0.1716, allocations: 0.7507 MB / 423.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005357/0.1721, allocations: 236.5 kB / 423.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006892/0.1728, allocations: 314.8 kB / 423.7 MB, free: 364 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2649/0.4377, allocations: 495.4 kB / 424.2 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003048/0.438, allocations: 38.31 kB / 424.2 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009251/0.439, allocations: 252.9 kB / 424.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003266/0.4393, allocations: 385.6 kB / 424.8 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002801/0.4396, allocations: 239.1 kB / 425.1 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001262/0.4409, allocations: 1.282 MB / 426.4 MB, free: 35.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.748e-06/0.4409, allocations: 0 / 426.4 MB, free: 35.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4409, allocations: 0 / 426.4 MB, free: 35.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.4409, allocations: 0 / 426.4 MB, free: 35.3 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004648/0.4456, allocations: 1.916 MB / 428.3 MB, free: 34.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.4456, allocations: 9.531 kB / 428.3 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002737/0.4459, allocations: 150.7 kB / 428.4 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.4471, allocations: 0.9315 MB / 429.4 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/0.4473, allocations: 197.4 kB / 429.6 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.21e-05/0.4474, allocations: 57.25 kB / 429.6 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.4487, allocations: 0.8635 MB / 430.5 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.4487, allocations: 0 / 430.5 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.435e-05/0.4488, allocations: 24.38 kB / 430.5 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.4488, allocations: 16.73 kB / 430.5 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.4499, allocations: 0.7301 MB / 431.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005117/0.455, allocations: 4.103 MB / 435.4 MB, free: 32.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00194/0.457, allocations: 1.298 MB / 436.7 MB, free: 31.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008682/0.4579, allocations: 0.5611 MB / 437.2 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/0.458, allocations: 23.77 kB / 437.2 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.458, allocations: 49.41 kB / 437.3 MB, free: 31.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=85): time 3.396e-06/0.458, allocations: 0 / 437.3 MB, free: 31.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.009949/0.468, allocations: 3.18 MB / 440.5 MB, free: 31.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.729e-05/0.4681, allocations: 245.7 kB / 440.7 MB, free: 31.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003254/0.4714, allocations: 1.809 MB / 442.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001684/0.4716, allocations: 40.8 kB / 442.6 MB, free: 30.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004819/0.4721, allocations: 497 kB / 443 MB, free: 30.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003083/0.4724, allocations: 288.7 kB / 443.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.106e-05/0.4725, allocations: 15.09 kB / 443.3 MB, free: 30.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.032e-05/0.4726, allocations: 334.9 kB / 443.7 MB, free: 30.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007613/0.4733, allocations: 434.7 kB / 444.1 MB, free: 29.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008697/0.4742, allocations: 0.5443 MB / 444.6 MB, free: 29.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008065/0.475, allocations: 462.7 kB / 445.1 MB, free: 29.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4751, allocations: 0 / 445.1 MB, free: 29.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.00391/0.479, allocations: 1.733 MB / 446.8 MB, free: 28.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.479, allocations: 5.75 kB / 446.8 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.479, allocations: 0 / 446.8 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002725/0.4818, allocations: 0.8223 MB / 447.6 MB, free: 28.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004428/0.4822, allocations: 119.7 kB / 447.8 MB, free: 28.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/0.4846, allocations: 1.485 MB / 449.2 MB, free: 27.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009657/0.4856, allocations: 98.17 kB / 449.3 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.911e-05/0.4857, allocations: 23.89 kB / 449.4 MB, free: 27.45 MB / 350.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: 3 * Number of states: 0 () * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {16 22} Notification: Performance of prepare postOptimizeDAE: time 0.001057/0.4867, allocations: 444.2 kB / 449.8 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005064/0.4872, allocations: 124.4 kB / 449.9 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004234/0.4915, allocations: 1.794 MB / 451.7 MB, free: 26.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.4915, allocations: 9.375 kB / 451.7 MB, free: 26.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.108e-06/0.4915, allocations: 0.5625 kB / 451.7 MB, free: 26.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.4915, allocations: 6.75 kB / 451.7 MB, free: 26.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007124/0.4987, allocations: 3.43 MB / 455.2 MB, free: 24.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/0.4987, allocations: 4.156 kB / 455.2 MB, free: 24.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003725/0.4991, allocations: 113.9 kB / 455.3 MB, free: 24.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002368/0.5015, allocations: 0.7806 MB / 456.1 MB, free: 24.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.291e-05/0.5016, allocations: 25.3 kB / 456.1 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002122/0.5037, allocations: 1.464 MB / 457.5 MB, free: 23.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.5037, allocations: 3.953 kB / 457.5 MB, free: 23.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005067/0.5088, allocations: 2.366 MB / 459.9 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007683/0.5096, allocations: 276.7 kB / 460.2 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004146/0.51, allocations: 17.5 kB / 460.2 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007841/0.5108, allocations: 60.25 kB / 460.3 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001942/0.511, allocations: 69.08 kB / 460.3 MB, free: 22.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.39e-05/0.5111, allocations: 29.09 kB / 460.4 MB, free: 22.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002767/0.5139, allocations: 1.301 MB / 461.7 MB, free: 21.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.703e-06/0.5139, allocations: 1.125 kB / 461.7 MB, free: 21.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001506/0.5154, allocations: 251.7 kB / 461.9 MB, free: 21.9 MB / 350.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: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {16 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008839/0.5163, allocations: 294.1 kB / 462.2 MB, free: 21.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004417/0.5207, allocations: 1.372 MB / 463.6 MB, free: 21.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/0.5207, allocations: 1.5 kB / 463.6 MB, free: 21.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002717/0.5235, allocations: 0.8605 MB / 464.4 MB, free: 21.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.5252, allocations: 105.2 kB / 464.5 MB, free: 21.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006682/0.5319, allocations: 2.866 MB / 467.4 MB, free: 19.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001298/0.5332, allocations: 1.176 MB / 468.6 MB, free: 18.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008101/0.5341, allocations: 165.8 kB / 468.7 MB, free: 18.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003797/0.5345, allocations: 73.23 kB / 468.8 MB, free: 18.79 MB / 350.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5345, allocations: 4 kB / 468.8 MB, free: 18.78 MB / 350.1 MB Notification: Performance of Templates: time 0.03183/0.5663, allocations: 14.72 MB / 483.5 MB, free: 14.23 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.makefile Environment - environmentSimulation: (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1) Environment - environmentSimulation: