Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.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.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001233/0.001233, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.366/1.366, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1727/0.1727, allocations: 38.03 MB / 330.4 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002249/0.00225, allocations: 64.61 kB / 399.5 MB, free: 34.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1253, allocations: 58.06 MB / 457.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.008071/0.1334, allocations: 6.581 MB / 464.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003861/0.1373, allocations: 2.107 MB / 466.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005831/0.1379, allocations: 27.81 kB / 466.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001796/0.1398, allocations: 0.6413 MB / 466.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00158/0.1414, allocations: 0.5444 MB / 467.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.1424, allocations: 375.3 kB / 467.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001481/0.1439, allocations: 1.205 MB / 469 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009198/0.1449, allocations: 0.5796 MB / 469.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009067/0.1458, allocations: 0.5098 MB / 470.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/0.1468, allocations: 0.6503 MB / 470.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002237/0.1471, allocations: 96 kB / 470.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001075/0.1482, allocations: 0.5421 MB / 471.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000508/0.1487, allocations: 478.8 kB / 471.8 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007512/0.1494, allocations: 0.5287 MB / 472.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001604/0.151, allocations: 1.359 MB / 473.7 MB, free: 7.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1511, allocations: 0 / 473.7 MB, free: 7.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1511, allocations: 4 kB / 473.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.118e-05/0.1511, allocations: 3.938 kB / 473.7 MB, free: 7.777 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002965/0.1541, allocations: 1.39 MB / 475.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.1542, allocations: 15.88 kB / 475.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008803/0.155, allocations: 147.6 kB / 475.3 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.1561, allocations: 0.6124 MB / 475.9 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.821e-05/0.1562, allocations: 66.38 kB / 476 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002248/0.1564, allocations: 100.1 kB / 476.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002226/0.1587, allocations: 1.311 MB / 477.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.806e-05/0.1587, allocations: 3.984 kB / 477.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.1588, allocations: 36 kB / 477.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001832/0.159, allocations: 61.97 kB / 477.5 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002144/0.1612, allocations: 1.183 MB / 478.6 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006576/0.1678, allocations: 4.66 MB / 483.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001463/0.1693, allocations: 1.295 MB / 484.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008117/0.1701, allocations: 0.6405 MB / 485.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.671e-05/0.1702, allocations: 16.64 kB / 485.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001146/0.1713, allocations: 0.8955 MB / 486.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.607e-06/0.1714, allocations: 0 / 486.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=123): time 0.005543/0.1769, allocations: 3.573 MB / 489.7 MB, free: 7.184 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000168/0.1771, allocations: 238.6 kB / 490 MB, free: 6.902 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006011/0.1777, allocations: 0.4942 MB / 490.5 MB, free: 6.398 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.048e-05/0.1778, allocations: 57.69 kB / 490.5 MB, free: 6.336 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003244/0.1781, allocations: 400 kB / 490.9 MB, free: 5.938 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003052/0.1785, allocations: 363.1 kB / 491.3 MB, free: 5.578 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003196/0.1788, allocations: 222.8 kB / 491.5 MB, free: 5.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.179, allocations: 398.7 kB / 491.9 MB, free: 4.953 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007959/0.1798, allocations: 0.5147 MB / 492.4 MB, free: 4.441 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000947/0.1808, allocations: 0.7895 MB / 493.2 MB, free: 3.555 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002024/0.1828, allocations: 1.407 MB / 494.6 MB, free: 2.031 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.1828, allocations: 7.938 kB / 494.6 MB, free: 2.023 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003843/0.1867, allocations: 2.052 MB / 496.6 MB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.5e-05/0.1868, allocations: 67.39 kB / 496.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002977/0.1898, allocations: 1.637 MB / 498.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00192/0.1917, allocations: 0.6565 MB / 499 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004683/0.1922, allocations: 143.7 kB / 499.1 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009037/0.2012, allocations: 6.485 MB / 0.4938 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008413/0.2021, allocations: 59.88 kB / 0.4938 GB, free: 6.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001726/0.2023, allocations: 48 kB / 0.4939 GB, free: 6.691 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay2.y[3],$PRE.relay2.y[3],relay2.y[2],$PRE.relay2.y[2],relay2.y[1],$PRE.relay2.y[1],relay1.y[3],$PRE.relay1.y[3],relay1.y[2],$PRE.relay1.y[2],relay1.y[1],$PRE.relay1.y[1],switch2.switch_c.closed,switch2.switch_c.open,$PRE.switch2.switch_c.open,switch2.switch_c.arc,$PRE.switch2.switch_c.arc,switch2.switch_b.closed,switch2.switch_b.open,$PRE.switch2.switch_b.open,switch2.switch_b.arc,$PRE.switch2.switch_b.arc,switch2.switch_a.closed,switch2.switch_a.open,$PRE.switch2.switch_a.open,switch2.switch_a.arc,$PRE.switch2.switch_a.arc,switch1.switch_c.closed,switch1.switch_c.open,$PRE.switch1.switch_c.open,switch1.switch_c.arc,$PRE.switch1.switch_c.arc,switch1.switch_b.closed,switch1.switch_b.open,$PRE.switch1.switch_b.open,switch1.switch_b.arc,$PRE.switch1.switch_b.arc,switch1.switch_a.closed,switch1.switch_a.open,$PRE.switch1.switch_a.open,switch1.switch_a.arc,$PRE.switch1.switch_a.arc,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 119 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007248/0.203, allocations: 438.9 kB / 0.4943 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002662/0.2033, allocations: 86.91 kB / 0.4944 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002143/0.2055, allocations: 1.423 MB / 0.4958 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-05/0.2055, allocations: 24 kB / 0.4958 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2055, allocations: 3.938 kB / 0.4958 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/0.2055, allocations: 19.89 kB / 0.4958 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004119/0.2097, allocations: 2.759 MB / 0.4985 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.2097, allocations: 0 / 0.4985 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.2107, allocations: 227.8 kB / 0.4987 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.627e-05/0.2108, allocations: 8 kB / 0.4987 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.982e-05/0.2109, allocations: 27.97 kB / 0.4988 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-05/0.2109, allocations: 4 kB / 0.4988 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.2109, allocations: 7.938 kB / 0.4988 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003049/0.2139, allocations: 2.288 MB / 0.501 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002336/0.2142, allocations: 144.2 kB / 0.5011 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001638/0.2144, allocations: 28 kB / 0.5012 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004854/0.2149, allocations: 55.94 kB / 0.5012 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/0.2151, allocations: 100.9 kB / 0.5013 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.351e-05/0.2152, allocations: 35.98 kB / 0.5013 GB, free: 14.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004277/0.2156, allocations: 350.8 kB / 0.5017 GB, free: 14.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2156, allocations: 0 / 0.5017 GB, free: 14.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009973/0.2166, allocations: 304 kB / 0.502 GB, free: 14.21 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_c.closed,switch1.switch_a.closed,switch1.switch_b.closed,switch2.switch_b.closed,switch2.switch_c.closed,switch2.switch_a.closed,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,system.initime) * Number of discrete states: 16 (relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_a.open,switch2.switch_c.open,switch2.switch_b.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_b.open,switch1.switch_a.open,switch1.switch_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 88 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002802/0.2169, allocations: 171 kB / 0.5021 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004156/0.2211, allocations: 2.391 MB / 0.5045 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.2211, allocations: 0 / 0.5045 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.2222, allocations: 0.883 MB / 0.5053 GB, free: 10.69 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008832/0.2231, allocations: 142.8 kB / 0.5055 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004022/0.2271, allocations: 2.353 MB / 0.5078 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008125/0.228, allocations: 1.104 MB / 0.5088 GB, free: 7.031 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003175/0.2283, allocations: 75.42 kB / 0.5089 GB, free: 6.957 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.2283, allocations: 0 / 0.5089 GB, free: 6.957 MB / 398.1 MB Notification: Performance of Templates: time 0.2071/0.4354, allocations: 13.99 MB / 0.5226 GB, free: 70.23 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)