Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 102.1 kB / 16.5 MB, free: 6.688 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.001446/0.001446, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.369/1.369, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1825/0.1825, allocations: 38.03 MB / 329.3 MB, free: 9.027 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 57.95 kB / 398.1 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1252, allocations: 58.07 MB / 456.1 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.01054/0.1358, allocations: 9.222 MB / 465.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005781/0.1416, allocations: 2.851 MB / 468.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001071/0.1427, allocations: 63.62 kB / 468.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002148/0.1449, allocations: 0.8126 MB / 469.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001285/0.1462, allocations: 485.9 kB / 469.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001219/0.1474, allocations: 399.3 kB / 470 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002063/0.1495, allocations: 1.941 MB / 471.9 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.1505, allocations: 0.6578 MB / 472.6 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000848/0.1514, allocations: 481.8 kB / 473 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009171/0.1523, allocations: 0.6892 MB / 473.7 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.1524, allocations: 59.94 kB / 473.8 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004947/0.1529, allocations: 207.6 kB / 474 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004584/0.1534, allocations: 478.8 kB / 474.4 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005209/0.1539, allocations: 0.4974 MB / 474.9 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001162/0.1551, allocations: 1.207 MB / 476.2 MB, free: 4.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1551, allocations: 0 / 476.2 MB, free: 4.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1551, allocations: 0 / 476.2 MB, free: 4.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.1551, allocations: 0 / 476.2 MB, free: 4.43 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002329/0.1575, allocations: 1.306 MB / 477.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.1575, allocations: 12.03 kB / 477.5 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009057/0.1584, allocations: 163.4 kB / 477.6 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.1596, allocations: 0.6883 MB / 478.3 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.768e-05/0.1596, allocations: 58.38 kB / 478.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.1598, allocations: 96.02 kB / 478.5 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/0.1615, allocations: 1.175 MB / 479.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.045e-05/0.1615, allocations: 7.938 kB / 479.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.298e-05/0.1616, allocations: 32 kB / 479.7 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.255e-05/0.1617, allocations: 53.98 kB / 479.7 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.1631, allocations: 0.9288 MB / 480.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005754/0.1689, allocations: 4.803 MB / 485.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.1701, allocations: 0.6717 MB / 486.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005703/0.1706, allocations: 383.8 kB / 486.5 MB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.503e-05/0.1707, allocations: 12.55 kB / 486.5 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006664/0.1714, allocations: 443.7 kB / 487 MB, free: 9.168 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.895e-06/0.1714, allocations: 0 / 487 MB, free: 9.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006171/0.1776, allocations: 2.443 MB / 489.4 MB, free: 6.656 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001732/0.1778, allocations: 166.8 kB / 489.6 MB, free: 6.457 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.1788, allocations: 0.5939 MB / 490.2 MB, free: 5.855 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.489e-05/0.1789, allocations: 37.7 kB / 490.2 MB, free: 5.812 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00052/0.1794, allocations: 482.6 kB / 490.7 MB, free: 5.332 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002778/0.1797, allocations: 228.8 kB / 490.9 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002649/0.18, allocations: 158.5 kB / 491 MB, free: 4.945 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.1801, allocations: 390.8 kB / 491.4 MB, free: 4.555 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004655/0.1806, allocations: 285.8 kB / 491.7 MB, free: 4.273 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00071/0.1813, allocations: 0.5563 MB / 492.3 MB, free: 3.594 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.1825, allocations: 0.9533 MB / 493.2 MB, free: 2.504 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.1825, allocations: 7.938 kB / 493.2 MB, free: 2.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002019/0.1845, allocations: 1.223 MB / 494.4 MB, free: 1.254 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.703e-05/0.1846, allocations: 33.7 kB / 494.5 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.1846, allocations: 8 kB / 494.5 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/0.1857, allocations: 338.1 kB / 494.8 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004945/0.1862, allocations: 143.7 kB / 495 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005885/0.1921, allocations: 4.948 MB / 499.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005854/0.1927, allocations: 28 kB / 499.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.774e-05/0.1928, allocations: 43.92 kB / 500 MB, free: 11.42 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005517/0.1934, allocations: 362 kB / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.1935, allocations: 75.06 kB / 0.4887 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001903/0.1954, allocations: 1.036 MB / 0.4897 GB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.1954, allocations: 8 kB / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.1954, allocations: 4 kB / 0.4897 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.1954, allocations: 11.92 kB / 0.4897 GB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003199/0.1986, allocations: 2.059 MB / 0.4917 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.1987, allocations: 0 / 0.4917 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003123/0.199, allocations: 75.91 kB / 0.4918 GB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008913/0.1999, allocations: 313.8 kB / 0.4921 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.769e-05/0.1999, allocations: 20 kB / 0.4921 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005587/0.2055, allocations: 4.874 MB / 0.4969 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.2056, allocations: 4.094 kB / 0.4969 GB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002011/0.2076, allocations: 1.123 MB / 0.498 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002368/0.2078, allocations: 144.2 kB / 0.4981 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.208, allocations: 23.98 kB / 0.4981 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003452/0.2083, allocations: 19.94 kB / 0.4981 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.2085, allocations: 60.42 kB / 0.4982 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-05/0.2085, allocations: 16 kB / 0.4982 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005806/0.2091, allocations: 419 kB / 0.4986 GB, free: 312 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2091, allocations: 0 / 0.4986 GB, free: 312 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001112/0.2102, allocations: 272 kB / 0.4989 GB, free: 40 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002247/0.2105, allocations: 123.1 kB / 0.499 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002206/0.2127, allocations: 1.144 MB / 0.5001 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.2127, allocations: 0 / 0.5001 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001216/0.2139, allocations: 0.7604 MB / 0.5009 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.215, allocations: 169.5 kB / 0.501 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003973/0.219, allocations: 2.148 MB / 0.5031 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001089/0.2201, allocations: 1.103 MB / 0.5042 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005746/0.2207, allocations: 170.3 kB / 0.5044 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.2208, allocations: 55.42 kB / 0.5044 GB, free: 10.23 MB / 398.1 MB Notification: Performance of SimCode: time 1.583e-06/0.2208, allocations: 7.938 kB / 0.5044 GB, free: 10.23 MB / 398.1 MB Notification: Performance of Templates: time 0.02109/0.2419, allocations: 10.24 MB / 0.5144 GB, free: 56 kB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & ./PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)