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.0007381/0.0007381, allocations: 101.9 kB / 16.07 MB, free: 32 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.0009211/0.0009209, allocations: 183.5 kB / 16.97 MB, free: 6.875 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.473/1.473, allocations: 223.3 MB / 241 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.2045/0.2045, allocations: 8.082 MB / 300.2 MB, free: 2.91 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003647/0.0003647, allocations: 12 kB / 363.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1184, allocations: 52.52 MB / 416 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.005011/0.1234, allocations: 4.276 MB / 420.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00295/0.1264, allocations: 1.409 MB / 421.7 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005979/0.1271, allocations: 12 kB / 421.7 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001308/0.1284, allocations: 466.8 kB / 422.2 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001209/0.1296, allocations: 386.2 kB / 422.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002185/0.1318, allocations: 1.016 MB / 423.6 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001546/0.1334, allocations: 0.8092 MB / 424.4 MB, free: 12 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2303/0.3638, allocations: 260.4 kB / 424.6 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007646/0.3646, allocations: 321.9 kB / 424.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006923/0.3653, allocations: 0.5219 MB / 425.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.65e-05/0.3654, allocations: 37.47 kB / 425.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007856/0.3662, allocations: 268.6 kB / 425.8 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003066/0.3665, allocations: 379.7 kB / 426.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000469/0.367, allocations: 0.5682 MB / 426.7 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001421/0.3684, allocations: 1.575 MB / 428.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3684, allocations: 3.75 kB / 428.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3684, allocations: 0 / 428.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.3685, allocations: 0 / 428.3 MB, free: 34.73 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.005422/0.3739, allocations: 1.898 MB / 430.2 MB, free: 33.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.46e-05/0.374, allocations: 10 kB / 430.2 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004604/0.3745, allocations: 153.3 kB / 430.3 MB, free: 33.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001791/0.3763, allocations: 0.9828 MB / 431.3 MB, free: 33.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/0.3765, allocations: 191.7 kB / 431.5 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.3766, allocations: 63.56 kB / 431.6 MB, free: 33.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.3783, allocations: 0.8644 MB / 432.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.852e-05/0.3783, allocations: 3.938 kB / 432.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.06e-05/0.3784, allocations: 22.78 kB / 432.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.3784, allocations: 12.84 kB / 432.5 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001313/0.3797, allocations: 0.7311 MB / 433.2 MB, free: 33.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005952/0.3857, allocations: 4.101 MB / 437.3 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001974/0.3877, allocations: 1.308 MB / 438.6 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008841/0.3886, allocations: 0.5573 MB / 439.2 MB, free: 31.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.462e-05/0.3887, allocations: 22.7 kB / 439.2 MB, free: 31.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.071e-05/0.3888, allocations: 46.75 kB / 439.2 MB, free: 31.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=85): time 3.226e-06/0.3888, allocations: 0.8438 kB / 439.2 MB, free: 31.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.01168/0.4005, allocations: 3.241 MB / 442.5 MB, free: 30.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.892e-05/0.4006, allocations: 242.4 kB / 442.7 MB, free: 29.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003122/0.4038, allocations: 1.807 MB / 444.5 MB, free: 29.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001479/0.4039, allocations: 47.89 kB / 444.6 MB, free: 29.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004422/0.4044, allocations: 488.5 kB / 445 MB, free: 28.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002752/0.4047, allocations: 291.8 kB / 445.3 MB, free: 28.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.4048, allocations: 76.06 kB / 445.4 MB, free: 28.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.751e-05/0.4049, allocations: 337.7 kB / 445.7 MB, free: 28.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007965/0.4057, allocations: 442 kB / 446.2 MB, free: 28.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008181/0.4065, allocations: 0.546 MB / 446.7 MB, free: 27.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009089/0.4156, allocations: 2.659 MB / 449.4 MB, free: 26.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.4157, allocations: 0 / 449.4 MB, free: 26.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004638/0.4203, allocations: 1.746 MB / 451.1 MB, free: 26.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/0.4204, allocations: 9.203 kB / 451.1 MB, free: 26.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.4204, allocations: 0 / 451.1 MB, free: 26.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002989/0.4234, allocations: 0.824 MB / 451.9 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004699/0.4239, allocations: 120 kB / 452.1 MB, free: 26.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002562/0.4265, allocations: 1.488 MB / 453.5 MB, free: 25.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.4277, allocations: 87.83 kB / 453.6 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.4279, allocations: 27.98 kB / 453.7 MB, free: 25.05 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 (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 {(16,22)} Notification: Performance of prepare postOptimizeDAE: time 0.001275/0.4291, allocations: 457.6 kB / 454.1 MB, free: 24.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004982/0.4297, allocations: 123.4 kB / 454.2 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004586/0.4342, allocations: 1.794 MB / 456 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.822e-05/0.4343, allocations: 16.05 kB / 456 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/0.4343, allocations: 4 kB / 456 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.4343, allocations: 4.141 kB / 456 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007985/0.4423, allocations: 3.432 MB / 459.5 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.4424, allocations: 4.969 kB / 459.5 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004645/0.4428, allocations: 109.2 kB / 459.6 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003116/0.446, allocations: 0.7875 MB / 460.4 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.719e-05/0.4461, allocations: 20.58 kB / 460.4 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002953/0.4491, allocations: 1.465 MB / 461.9 MB, free: 21.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.4491, allocations: 1.25 kB / 461.9 MB, free: 21.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006738/0.4558, allocations: 2.382 MB / 464.2 MB, free: 20.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000793/0.4567, allocations: 285 kB / 464.5 MB, free: 20.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004672/0.4571, allocations: 17.59 kB / 464.5 MB, free: 20.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009305/0.4581, allocations: 63.61 kB / 464.6 MB, free: 20.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.4583, allocations: 65.62 kB / 464.7 MB, free: 20.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.762e-05/0.4584, allocations: 25.09 kB / 464.7 MB, free: 20 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002886/0.4613, allocations: 1.304 MB / 466 MB, free: 19.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4613, allocations: 1.312 kB / 466 MB, free: 19.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001841/0.4631, allocations: 252.5 kB / 466.2 MB, free: 19.48 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 (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 {(16,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001015/0.4642, allocations: 299 kB / 466.5 MB, free: 19.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004376/0.4686, allocations: 1.375 MB / 467.9 MB, free: 18.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.4686, allocations: 1.156 kB / 467.9 MB, free: 18.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00315/0.4717, allocations: 0.8655 MB / 468.8 MB, free: 18.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001548/0.4733, allocations: 115.7 kB / 468.9 MB, free: 18.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005915/0.4792, allocations: 2.988 MB / 471.9 MB, free: 17.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/0.4804, allocations: 1.18 MB / 473.1 MB, free: 16.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006649/0.481, allocations: 170 kB / 473.2 MB, free: 16.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.4814, allocations: 70.83 kB / 473.3 MB, free: 16.25 MB / 350.1 MB Notification: Performance of SimCode: time 1.944e-06/0.4814, allocations: 0 / 473.3 MB, free: 16.25 MB / 350.1 MB Notification: Performance of Templates: time 0.03543/0.5169, allocations: 15.13 MB / 488.4 MB, free: 8.691 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: