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.001328/0.001328, allocations: 114.8 kB / 17.74 MB, free: 5.344 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.001713/0.001713, allocations: 188.5 kB / 18.67 MB, free: 4.422 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.431/1.431, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1842/0.1842, allocations: 37.98 MB / 309.9 MB, free: 5.961 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.001649/0.001649, allocations: 63.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1113, allocations: 55.25 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009966/0.1213, allocations: 7.582 MB / 495.4 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004381/0.1258, allocations: 2.365 MB / 497.7 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005887/0.1264, allocations: 27.81 kB / 497.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002218/0.1286, allocations: 0.8595 MB / 498.6 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001232/0.1299, allocations: 0.5014 MB / 499.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.1311, allocations: 455 kB / 499.6 MB, free: 12.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00148/0.1326, allocations: 1.274 MB / 0.4891 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008696/0.1335, allocations: 0.6698 MB / 0.4897 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008588/0.1344, allocations: 0.5641 MB / 0.4903 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008952/0.1353, allocations: 0.6579 MB / 0.4909 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.1354, allocations: 80 kB / 0.491 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005051/0.1359, allocations: 215.7 kB / 0.4912 GB, free: 9.039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004269/0.1364, allocations: 482.8 kB / 0.4917 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005074/0.1369, allocations: 0.5325 MB / 0.4922 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.1381, allocations: 1.238 MB / 0.4934 GB, free: 6.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1382, allocations: 0 / 0.4934 GB, free: 6.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1382, allocations: 0 / 0.4934 GB, free: 6.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.884e-05/0.1382, allocations: 3.984 kB / 0.4934 GB, free: 6.785 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.002227/0.1404, allocations: 1.306 MB / 0.4947 GB, free: 5.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.1405, allocations: 15.89 kB / 0.4947 GB, free: 5.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009065/0.1414, allocations: 163.5 kB / 0.4949 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.1426, allocations: 0.731 MB / 0.4956 GB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.543e-05/0.1426, allocations: 62.36 kB / 0.4956 GB, free: 4.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.1428, allocations: 88.12 kB / 0.4957 GB, free: 4.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.1444, allocations: 1.175 MB / 0.4969 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.098e-05/0.1444, allocations: 4 kB / 0.4969 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.692e-05/0.1445, allocations: 36 kB / 0.4969 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-05/0.1446, allocations: 53.98 kB / 0.497 GB, free: 2.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.1459, allocations: 0.9327 MB / 0.4979 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005031/0.151, allocations: 4.768 MB / 0.5025 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.1521, allocations: 0.6716 MB / 0.5032 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004931/0.1526, allocations: 383.8 kB / 0.5035 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.857e-05/0.1527, allocations: 8.547 kB / 0.5036 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005779/0.1532, allocations: 439.8 kB / 0.504 GB, free: 11.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.315e-06/0.1533, allocations: 0 / 0.504 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005221/0.1585, allocations: 2.44 MB / 0.5064 GB, free: 9.016 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.1586, allocations: 170.7 kB / 0.5065 GB, free: 8.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006809/0.1593, allocations: 0.6055 MB / 0.5071 GB, free: 8.199 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.454e-05/0.1594, allocations: 37.7 kB / 0.5071 GB, free: 8.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003618/0.1597, allocations: 486.6 kB / 0.5076 GB, free: 7.672 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002114/0.1599, allocations: 224.9 kB / 0.5078 GB, free: 7.449 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002021/0.1602, allocations: 150.5 kB / 0.508 GB, free: 7.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.1604, allocations: 386.8 kB / 0.5083 GB, free: 6.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004197/0.1608, allocations: 285.8 kB / 0.5086 GB, free: 6.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006012/0.1614, allocations: 0.5524 MB / 0.5092 GB, free: 5.957 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.1625, allocations: 0.9573 MB / 0.5101 GB, free: 4.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.1625, allocations: 7.938 kB / 0.5101 GB, free: 4.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001949/0.1645, allocations: 1.219 MB / 0.5113 GB, free: 3.613 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.442e-05/0.1645, allocations: 34.58 kB / 0.5113 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.049e-05/0.1646, allocations: 12 kB / 0.5113 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.1656, allocations: 345.3 kB / 0.5117 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004831/0.1661, allocations: 147.7 kB / 0.5118 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006008/0.1721, allocations: 5.383 MB / 0.5171 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005866/0.1727, allocations: 36.03 kB / 0.5171 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.489e-05/0.1728, allocations: 39.98 kB / 0.5171 GB, free: 13.31 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.0005614/0.1734, allocations: 355.1 kB / 0.5175 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001561/0.1736, allocations: 79 kB / 0.5175 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001901/0.1755, allocations: 1.036 MB / 0.5186 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.1755, allocations: 4 kB / 0.5186 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/0.1755, allocations: 12 kB / 0.5186 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.1755, allocations: 3.984 kB / 0.5186 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003367/0.1789, allocations: 2.051 MB / 0.5206 GB, free: 9.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.1789, allocations: 3.938 kB / 0.5206 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003034/0.1792, allocations: 72.06 kB / 0.5206 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008533/0.1801, allocations: 321.8 kB / 0.521 GB, free: 9.254 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.169e-05/0.1802, allocations: 23.92 kB / 0.521 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005832/0.186, allocations: 5.309 MB / 0.5262 GB, free: 3.617 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.186, allocations: 3.938 kB / 0.5262 GB, free: 3.613 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.1879, allocations: 1.116 MB / 0.5273 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002764/0.1882, allocations: 148.1 kB / 0.5274 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/0.1884, allocations: 16 kB / 0.5274 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003914/0.1888, allocations: 23.92 kB / 0.5274 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.1889, allocations: 60.42 kB / 0.5275 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.418e-05/0.189, allocations: 20 kB / 0.5275 GB, free: 2.168 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005756/0.1896, allocations: 419 kB / 0.5279 GB, free: 1.762 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1896, allocations: 0 / 0.5279 GB, free: 1.762 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00108/0.1907, allocations: 272 kB / 0.5282 GB, free: 1.496 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.0001904/0.1909, allocations: 115.2 kB / 0.5283 GB, free: 1.375 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001991/0.1929, allocations: 1.152 MB / 0.5294 GB, free: 188 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.1929, allocations: 3.938 kB / 0.5294 GB, free: 184 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2344/0.4273, allocations: 0.7565 MB / 0.5301 GB, free: 51.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.4285, allocations: 176 kB / 0.5303 GB, free: 51.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003136/0.4316, allocations: 1.823 MB / 0.5321 GB, free: 50.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006711/0.4323, allocations: 1.103 MB / 0.5332 GB, free: 49.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/0.4325, allocations: 58.39 kB / 0.5332 GB, free: 49.96 MB / 414.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4325, allocations: 0 / 0.5332 GB, free: 49.96 MB / 414.1 MB Notification: Performance of Templates: time 0.02741/0.4599, allocations: 17.06 MB / 0.5499 GB, free: 44.38 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)