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.001367/0.001367, allocations: 111.9 kB / 17.74 MB, free: 5.359 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.001511/0.001511, allocations: 189.5 kB / 18.67 MB, free: 4.434 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.37/1.37, 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.1766/0.1766, allocations: 37.99 MB / 309.9 MB, free: 5.957 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.002541/0.002541, allocations: 63.89 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1107, allocations: 55.24 MB / 487.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009278/0.12, allocations: 7.586 MB / 495.4 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004551/0.1246, allocations: 2.369 MB / 497.7 MB, free: 14.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008113/0.1255, allocations: 27.88 kB / 497.8 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002553/0.128, allocations: 0.8595 MB / 498.6 MB, free: 13.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00143/0.1295, allocations: 0.5014 MB / 499.1 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001573/0.1311, allocations: 459 kB / 499.6 MB, free: 12.49 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002183/0.1333, allocations: 1.266 MB / 0.4891 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001155/0.1344, allocations: 0.6777 MB / 0.4898 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009375/0.1354, allocations: 0.5524 MB / 0.4903 GB, free: 9.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001115/0.1365, allocations: 0.6502 MB / 0.4909 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002592/0.1368, allocations: 76 kB / 0.491 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000566/0.1373, allocations: 215.7 kB / 0.4912 GB, free: 9.043 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004966/0.1379, allocations: 494.7 kB / 0.4917 GB, free: 8.559 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007728/0.1386, allocations: 0.5286 MB / 0.4922 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00134/0.14, allocations: 1.238 MB / 0.4934 GB, free: 6.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.14, allocations: 0 / 0.4934 GB, free: 6.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.14, allocations: 0 / 0.4934 GB, free: 6.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.135e-05/0.1401, allocations: 0 / 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.002673/0.1427, allocations: 1.314 MB / 0.4947 GB, free: 5.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.1428, allocations: 15.89 kB / 0.4947 GB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009385/0.1437, allocations: 163.5 kB / 0.4949 GB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.145, allocations: 0.7271 MB / 0.4956 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.424e-05/0.1451, allocations: 58.38 kB / 0.4956 GB, free: 4.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.1452, allocations: 100.1 kB / 0.4957 GB, free: 4.309 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001668/0.1469, allocations: 1.163 MB / 0.4969 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.692e-05/0.1469, allocations: 15.88 kB / 0.4969 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.132e-05/0.147, allocations: 36 kB / 0.4969 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.257e-05/0.1471, allocations: 57.97 kB / 0.497 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.1485, allocations: 0.9249 MB / 0.4979 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005291/0.1538, allocations: 4.76 MB / 0.5025 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.1549, allocations: 0.6795 MB / 0.5032 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005042/0.1555, allocations: 379.8 kB / 0.5035 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.043e-05/0.1555, allocations: 12.55 kB / 0.5035 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006292/0.1562, allocations: 439.7 kB / 0.504 GB, free: 11.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.495e-06/0.1562, allocations: 0 / 0.504 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005299/0.1615, allocations: 2.44 MB / 0.5064 GB, free: 9.008 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.1616, allocations: 166.8 kB / 0.5065 GB, free: 8.809 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007503/0.1624, allocations: 0.5978 MB / 0.5071 GB, free: 8.203 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.345e-05/0.1624, allocations: 37.7 kB / 0.5071 GB, free: 8.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003506/0.1628, allocations: 490.6 kB / 0.5076 GB, free: 7.672 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.163, allocations: 228.9 kB / 0.5078 GB, free: 7.445 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/0.1632, allocations: 150.5 kB / 0.508 GB, free: 7.293 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1634, allocations: 390.8 kB / 0.5083 GB, free: 6.902 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004825/0.1639, allocations: 285.8 kB / 0.5086 GB, free: 6.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006371/0.1645, allocations: 0.5524 MB / 0.5091 GB, free: 5.949 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.1658, allocations: 0.9572 MB / 0.5101 GB, free: 4.852 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.1658, allocations: 3.938 kB / 0.5101 GB, free: 4.848 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002153/0.168, allocations: 1.223 MB / 0.5113 GB, free: 3.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/0.168, allocations: 38.58 kB / 0.5113 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/0.1681, allocations: 8 kB / 0.5113 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.1691, allocations: 345.4 kB / 0.5117 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.1696, allocations: 143.7 kB / 0.5118 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005892/0.1755, allocations: 5.383 MB / 0.517 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005532/0.1761, allocations: 36.03 kB / 0.5171 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-05/0.1762, allocations: 36 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.0005053/0.1767, allocations: 355.1 kB / 0.5175 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.1769, allocations: 79 kB / 0.5175 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001856/0.1787, allocations: 1.044 MB / 0.5185 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.1788, allocations: 8 kB / 0.5186 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.1788, allocations: 4 kB / 0.5186 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.1788, allocations: 7.984 kB / 0.5186 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003259/0.182, allocations: 2.054 MB / 0.5206 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.1821, allocations: 0 / 0.5206 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003168/0.1824, allocations: 84.05 kB / 0.5207 GB, free: 9.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008706/0.1833, allocations: 305.6 kB / 0.5209 GB, free: 9.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.775e-05/0.1833, allocations: 19.94 kB / 0.521 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005769/0.1891, allocations: 5.325 MB / 0.5262 GB, free: 3.602 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1892, allocations: 0 / 0.5262 GB, free: 3.602 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001866/0.191, allocations: 1.12 MB / 0.5273 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002283/0.1913, allocations: 152.1 kB / 0.5274 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.1914, allocations: 16 kB / 0.5274 GB, free: 2.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003597/0.1918, allocations: 19.98 kB / 0.5274 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.1919, allocations: 56.44 kB / 0.5275 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-05/0.192, allocations: 20 kB / 0.5275 GB, free: 2.156 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005371/0.1925, allocations: 423 kB / 0.5279 GB, free: 1.746 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1925, allocations: 0 / 0.5279 GB, free: 1.746 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009428/0.1935, allocations: 272 kB / 0.5282 GB, free: 1.48 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.0001664/0.1936, allocations: 111.4 kB / 0.5283 GB, free: 1.363 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001839/0.1955, allocations: 1.148 MB / 0.5294 GB, free: 180 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.1955, allocations: 0 / 0.5294 GB, free: 180 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1921/0.3876, allocations: 0.7583 MB / 0.5301 GB, free: 51.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.3889, allocations: 178.8 kB / 0.5303 GB, free: 51.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003688/0.3926, allocations: 1.824 MB / 0.5321 GB, free: 51.29 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007932/0.3935, allocations: 1.106 MB / 0.5332 GB, free: 50.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.3936, allocations: 55.17 kB / 0.5332 GB, free: 50.59 MB / 414.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3937, allocations: 0 / 0.5332 GB, free: 50.59 MB / 414.1 MB Notification: Performance of Templates: time 0.02592/0.4196, allocations: 16.98 MB / 0.5498 GB, free: 45.04 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)