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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001629/0.001629, allocations: 106 kB / 17.06 MB, free: 6.133 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.001347/0.001347, allocations: 195 kB / 18 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.419/1.419, allocations: 205.1 MB / 223.9 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1892/0.1892, allocations: 37.98 MB / 309.2 MB, free: 5.965 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001502, allocations: 67.89 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1116, allocations: 55.24 MB / 487.1 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.0103/0.1219, allocations: 7.575 MB / 494.7 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004482/0.1264, allocations: 2.369 MB / 497.1 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000672/0.1271, allocations: 27.81 kB / 497.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002449/0.1296, allocations: 0.8595 MB / 497.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001481/0.1311, allocations: 0.4975 MB / 498.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.1325, allocations: 455 kB / 498.9 MB, free: 12.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001741/0.1343, allocations: 1.274 MB / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00105/0.1353, allocations: 0.6776 MB / 0.4891 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.1364, allocations: 0.5602 MB / 0.4896 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001244/0.1377, allocations: 0.6501 MB / 0.4903 GB, free: 9.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002507/0.1379, allocations: 76 kB / 0.4903 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006835/0.1386, allocations: 219.7 kB / 0.4906 GB, free: 9.047 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007351/0.1394, allocations: 490.8 kB / 0.491 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009959/0.1404, allocations: 0.5247 MB / 0.4915 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00179/0.1422, allocations: 1.238 MB / 0.4927 GB, free: 6.797 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1422, allocations: 4 kB / 0.4928 GB, free: 6.793 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1422, allocations: 0 / 0.4928 GB, free: 6.793 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.011e-05/0.1423, allocations: 0 / 0.4928 GB, free: 6.793 MB / 382.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.002987/0.1453, allocations: 1.314 MB / 0.494 GB, free: 5.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/0.1453, allocations: 11.89 kB / 0.494 GB, free: 5.406 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009768/0.1463, allocations: 167.5 kB / 0.4942 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.1478, allocations: 0.7232 MB / 0.4949 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.569e-05/0.1478, allocations: 66.38 kB / 0.495 GB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001367/0.148, allocations: 88.11 kB / 0.4951 GB, free: 4.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/0.1497, allocations: 1.175 MB / 0.4962 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.077e-05/0.1497, allocations: 4 kB / 0.4962 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.918e-05/0.1498, allocations: 39.98 kB / 0.4962 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.053e-05/0.1499, allocations: 61.97 kB / 0.4963 GB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001346/0.1513, allocations: 0.921 MB / 0.4972 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005131/0.1564, allocations: 4.768 MB / 0.5019 GB, free: 13.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.1575, allocations: 0.6794 MB / 0.5025 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004709/0.1579, allocations: 375.8 kB / 0.5029 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.435e-05/0.158, allocations: 8.562 kB / 0.5029 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000571/0.1586, allocations: 439.7 kB / 0.5033 GB, free: 11.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 3.937e-06/0.1586, allocations: 3.984 kB / 0.5033 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.004875/0.1635, allocations: 2.44 MB / 0.5057 GB, free: 9.016 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.564e-05/0.1636, allocations: 174.7 kB / 0.5059 GB, free: 8.809 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005846/0.1642, allocations: 0.5939 MB / 0.5064 GB, free: 8.207 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.352e-05/0.1642, allocations: 37.7 kB / 0.5065 GB, free: 8.164 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003395/0.1646, allocations: 494.6 kB / 0.507 GB, free: 7.672 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.1648, allocations: 220.9 kB / 0.5072 GB, free: 7.453 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001985/0.165, allocations: 158.5 kB / 0.5073 GB, free: 7.293 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1651, allocations: 386.8 kB / 0.5077 GB, free: 6.906 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004006/0.1655, allocations: 285.8 kB / 0.508 GB, free: 6.625 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005675/0.1661, allocations: 0.5524 MB / 0.5085 GB, free: 5.953 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.1672, allocations: 0.9495 MB / 0.5094 GB, free: 4.863 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.1672, allocations: 7.938 kB / 0.5094 GB, free: 4.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001886/0.1691, allocations: 1.231 MB / 0.5106 GB, free: 3.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.361e-05/0.1691, allocations: 34.58 kB / 0.5107 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.1692, allocations: 8 kB / 0.5107 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009815/0.1701, allocations: 345.3 kB / 0.511 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004626/0.1706, allocations: 143.7 kB / 0.5111 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005619/0.1763, allocations: 5.379 MB / 0.5164 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005415/0.1768, allocations: 40.03 kB / 0.5164 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.444e-05/0.1769, allocations: 36 kB / 0.5165 GB, free: 13.32 MB / 414.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.0004879/0.1774, allocations: 359.2 kB / 0.5168 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.828e-05/0.1775, allocations: 82.98 kB / 0.5169 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001745/0.1792, allocations: 1.033 MB / 0.5179 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.1793, allocations: 8 kB / 0.5179 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.1793, allocations: 7.984 kB / 0.5179 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1793, allocations: 4 kB / 0.5179 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003117/0.1824, allocations: 2.054 MB / 0.5199 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/0.1824, allocations: 7.938 kB / 0.5199 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002901/0.1827, allocations: 80.05 kB / 0.52 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008546/0.1836, allocations: 313.9 kB / 0.5203 GB, free: 9.246 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.122e-05/0.1836, allocations: 15.94 kB / 0.5203 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006164/0.1898, allocations: 5.305 MB / 0.5255 GB, free: 3.621 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.1898, allocations: 7.938 kB / 0.5255 GB, free: 3.613 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001905/0.1918, allocations: 1.116 MB / 0.5266 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003639/0.1921, allocations: 152.1 kB / 0.5267 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.1923, allocations: 16 kB / 0.5268 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003716/0.1927, allocations: 27.86 kB / 0.5268 GB, free: 2.238 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.1928, allocations: 60.44 kB / 0.5268 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.986e-05/0.1929, allocations: 19.98 kB / 0.5269 GB, free: 2.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000561/0.1934, allocations: 415 kB / 0.5273 GB, free: 1.758 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1935, allocations: 0 / 0.5273 GB, free: 1.758 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001115/0.1946, allocations: 276 kB / 0.5275 GB, free: 1.488 MB / 414.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.0001873/0.1948, allocations: 115.3 kB / 0.5276 GB, free: 1.367 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002052/0.1968, allocations: 1.156 MB / 0.5288 GB, free: 176 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.1969, allocations: 0 / 0.5288 GB, free: 176 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2265/0.4234, allocations: 0.7522 MB / 0.5295 GB, free: 51.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.4244, allocations: 186.3 kB / 0.5297 GB, free: 51.31 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003042/0.4275, allocations: 1.736 MB / 0.5314 GB, free: 50.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006928/0.4282, allocations: 1.1 MB / 0.5324 GB, free: 50.01 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005269/0.4287, allocations: 178 kB / 0.5326 GB, free: 50 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.4289, allocations: 52.72 kB / 0.5327 GB, free: 49.99 MB / 414.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4289, allocations: 0 / 0.5327 GB, free: 49.99 MB / 414.1 MB Notification: Performance of Templates: time 0.0226/0.4515, allocations: 11.21 MB / 0.5436 GB, free: 47.73 MB / 414.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)