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.001007/0.001007, allocations: 101.2 kB / 15.73 MB, free: 436 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.001299/0.001299, allocations: 180.9 kB / 16.62 MB, free: 6.422 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.514/1.514, allocations: 223.2 MB / 240.6 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1873/0.1873, allocations: 8.086 MB / 299.7 MB, free: 2.883 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002826/0.0002827, allocations: 12 kB / 362.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.126, allocations: 52.51 MB / 415.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.0054/0.1314, allocations: 3.837 MB / 419.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002644/0.1341, allocations: 1.328 MB / 420.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005048/0.1347, allocations: 15.94 kB / 420.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.1358, allocations: 442.5 kB / 420.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001254/0.1371, allocations: 399 kB / 421.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001813/0.139, allocations: 0.8566 MB / 422.1 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001068/0.14, allocations: 0.5497 MB / 422.7 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004474/0.1405, allocations: 240.4 kB / 422.9 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005113/0.141, allocations: 310.9 kB / 423.2 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007376/0.1418, allocations: 454.5 kB / 423.7 MB, free: 316 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.1419, allocations: 40 kB / 423.7 MB, free: 276 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006013/0.1425, allocations: 219.8 kB / 423.9 MB, free: 56 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2054/0.348, allocations: 373.2 kB / 424.3 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003275/0.3483, allocations: 238.2 kB / 424.5 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001409/0.3497, allocations: 1.283 MB / 425.8 MB, free: 35.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.3497, allocations: 0 / 425.8 MB, free: 35.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3498, allocations: 1.938 kB / 425.8 MB, free: 35.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.3498, allocations: 0 / 425.8 MB, free: 35.29 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.0047/0.3545, allocations: 1.913 MB / 427.7 MB, free: 34.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.3545, allocations: 9.781 kB / 427.7 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002819/0.3548, allocations: 148.6 kB / 427.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.3562, allocations: 0.9351 MB / 428.8 MB, free: 34.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/0.3563, allocations: 196.9 kB / 429 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.212e-05/0.3564, allocations: 59.31 kB / 429.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.3576, allocations: 0.8589 MB / 429.9 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.3577, allocations: 3.281 kB / 429.9 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.819e-05/0.3577, allocations: 26.81 kB / 429.9 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.3578, allocations: 16.3 kB / 430 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.3589, allocations: 0.7238 MB / 430.7 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005291/0.3642, allocations: 4.116 MB / 434.8 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.366, allocations: 1.299 MB / 436.1 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.823e-05/0.3662, allocations: 19.83 kB / 436.1 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.3662, allocations: 52.84 kB / 436.2 MB, free: 31.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=85): time 2.685e-06/0.3662, allocations: 0 / 436.2 MB, free: 31.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.01051/0.3767, allocations: 3.22 MB / 439.4 MB, free: 31.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.3768, allocations: 244.4 kB / 439.6 MB, free: 31.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002147/0.379, allocations: 1.812 MB / 441.4 MB, free: 31.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001145/0.3791, allocations: 45.23 kB / 441.5 MB, free: 31.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003065/0.3794, allocations: 491.8 kB / 442 MB, free: 30.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002005/0.3796, allocations: 291.2 kB / 442.3 MB, free: 30.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.298e-05/0.3797, allocations: 15.66 kB / 442.3 MB, free: 30.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.393e-05/0.3798, allocations: 338.9 kB / 442.6 MB, free: 30.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006591/0.3804, allocations: 430.2 kB / 443 MB, free: 30.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006921/0.3811, allocations: 0.54 MB / 443.6 MB, free: 29.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006862/0.3818, allocations: 466.8 kB / 444 MB, free: 29.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3818, allocations: 0 / 444 MB, free: 29.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.003696/0.3855, allocations: 1.746 MB / 445.8 MB, free: 29.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3856, allocations: 3.25 kB / 445.8 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.3856, allocations: 0 / 445.8 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002687/0.3883, allocations: 0.8285 MB / 446.6 MB, free: 28.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004325/0.3887, allocations: 117.1 kB / 446.7 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002194/0.3909, allocations: 1.502 MB / 448.2 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00072/0.3917, allocations: 94.53 kB / 448.3 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.068e-05/0.3917, allocations: 27.69 kB / 448.3 MB, free: 27.85 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: 2 * 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 (64): * Single equations (assignments): 63 * 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 23} Notification: Performance of prepare postOptimizeDAE: time 0.00069/0.3924, allocations: 449 kB / 448.8 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001736/0.3926, allocations: 126.8 kB / 448.9 MB, free: 27.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003847/0.3965, allocations: 1.807 MB / 450.7 MB, free: 26.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3965, allocations: 10.25 kB / 450.7 MB, free: 26.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.3965, allocations: 4.453 kB / 450.7 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.3965, allocations: 3.422 kB / 450.7 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005148/0.4017, allocations: 3.226 MB / 453.9 MB, free: 25.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.4017, allocations: 4.562 kB / 453.9 MB, free: 25.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003577/0.4021, allocations: 98.14 kB / 454 MB, free: 25.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002565/0.4046, allocations: 0.8025 MB / 454.8 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.184e-05/0.4047, allocations: 18.67 kB / 454.9 MB, free: 25.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002114/0.4068, allocations: 1.5 MB / 456.4 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4069, allocations: 4.562 kB / 456.4 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0047/0.4116, allocations: 2.374 MB / 458.7 MB, free: 23.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005541/0.4122, allocations: 277.4 kB / 459 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001585/0.4123, allocations: 18.5 kB / 459 MB, free: 22.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005646/0.4129, allocations: 62 kB / 459.1 MB, free: 22.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.4131, allocations: 64.8 kB / 459.2 MB, free: 22.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.565e-05/0.4131, allocations: 31.83 kB / 459.2 MB, free: 22.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001854/0.415, allocations: 1.306 MB / 460.5 MB, free: 22.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.415, allocations: 0 / 460.5 MB, free: 22.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008748/0.4159, allocations: 256.3 kB / 460.7 MB, free: 22.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (57): * Single equations (assignments): 56 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006913/0.4166, allocations: 287.8 kB / 461 MB, free: 22.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003675/0.4203, allocations: 1.372 MB / 462.4 MB, free: 21.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/0.4203, allocations: 1.531 kB / 462.4 MB, free: 21.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002725/0.423, allocations: 0.8731 MB / 463.3 MB, free: 21.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008685/0.4239, allocations: 94.17 kB / 463.4 MB, free: 21.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00536/0.4293, allocations: 2.855 MB / 466.2 MB, free: 20.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006342/0.4299, allocations: 1.198 MB / 467.4 MB, free: 19.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004432/0.4304, allocations: 166.2 kB / 467.6 MB, free: 19.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/0.4306, allocations: 73.19 kB / 467.6 MB, free: 19.32 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4306, allocations: 0 / 467.6 MB, free: 19.32 MB / 350.1 MB Notification: Performance of Templates: time 0.02525/0.4559, allocations: 14.73 MB / 482.4 MB, free: 15.62 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: