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.0011/0.0011, allocations: 111 kB / 16.63 MB, free: 6.797 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.001034/0.001034, allocations: 185.8 kB / 17.55 MB, free: 5.953 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.42/1.42, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1694/0.1694, allocations: 38.02 MB / 329.4 MB, free: 9.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 73.23 kB / 398.3 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1137, allocations: 58.06 MB / 456.3 MB, free: 8.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.008868/0.1226, allocations: 7.404 MB / 463.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004372/0.127, allocations: 2.348 MB / 466.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006487/0.1277, allocations: 39.75 kB / 466.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001706/0.1294, allocations: 0.601 MB / 466.7 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001297/0.1307, allocations: 0.4981 MB / 467.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007878/0.1315, allocations: 351.4 kB / 467.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001158/0.1327, allocations: 1.193 MB / 468.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007972/0.1335, allocations: 0.6108 MB / 469.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006347/0.1342, allocations: 0.5214 MB / 469.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008137/0.135, allocations: 0.6932 MB / 470.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001286/0.1351, allocations: 92 kB / 470.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009897/0.1361, allocations: 0.546 MB / 471.2 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004482/0.1366, allocations: 482.8 kB / 471.7 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005625/0.1372, allocations: 0.5326 MB / 472.2 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00134/0.1385, allocations: 1.363 MB / 473.6 MB, free: 7.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1385, allocations: 8 kB / 473.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1385, allocations: 0 / 473.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.218e-05/0.1386, allocations: 0 / 473.6 MB, free: 7.105 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.002461/0.141, allocations: 1.37 MB / 475 MB, free: 5.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.1411, allocations: 11.89 kB / 475 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008215/0.1419, allocations: 159.5 kB / 475.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.1429, allocations: 0.6085 MB / 475.7 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.988e-05/0.143, allocations: 70.38 kB / 475.8 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002078/0.1432, allocations: 104 kB / 475.9 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001974/0.1452, allocations: 1.307 MB / 477.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.723e-05/0.1452, allocations: 3.938 kB / 477.2 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-05/0.1454, allocations: 43.97 kB / 477.3 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/0.1455, allocations: 57.98 kB / 477.3 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/0.1473, allocations: 1.183 MB / 478.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006097/0.1534, allocations: 4.66 MB / 483.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.1549, allocations: 1.295 MB / 484.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008233/0.1557, allocations: 0.6443 MB / 485.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.686e-05/0.1558, allocations: 12.66 kB / 485.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001308/0.1571, allocations: 0.8917 MB / 486 MB, free: 10.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.015e-06/0.1571, allocations: 3.938 kB / 486 MB, free: 10.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=123): time 0.005456/0.1626, allocations: 3.578 MB / 489.6 MB, free: 6.512 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000163/0.1628, allocations: 238.5 kB / 489.8 MB, free: 6.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006406/0.1634, allocations: 0.494 MB / 490.3 MB, free: 5.727 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.841e-05/0.1635, allocations: 53.69 kB / 490.4 MB, free: 5.668 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003243/0.1639, allocations: 400 kB / 490.8 MB, free: 5.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004418/0.1643, allocations: 363.1 kB / 491.1 MB, free: 4.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004152/0.1647, allocations: 218.9 kB / 491.3 MB, free: 4.688 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002477/0.165, allocations: 402.8 kB / 491.7 MB, free: 4.285 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009442/0.166, allocations: 0.5147 MB / 492.2 MB, free: 3.773 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.167, allocations: 0.7817 MB / 493 MB, free: 2.895 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002497/0.1695, allocations: 1.399 MB / 494.4 MB, free: 1.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.52e-05/0.1696, allocations: 7.938 kB / 494.4 MB, free: 1.375 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004108/0.1737, allocations: 2.067 MB / 496.5 MB, free: 15.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.09e-05/0.1738, allocations: 63.39 kB / 496.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003043/0.1768, allocations: 1.642 MB / 498.2 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001994/0.1788, allocations: 0.6603 MB / 498.9 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005224/0.1794, allocations: 135.7 kB / 499 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008954/0.1883, allocations: 6.488 MB / 0.4936 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000695/0.1891, allocations: 75.75 kB / 0.4937 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.553e-05/0.1892, allocations: 44 kB / 0.4937 GB, free: 6.012 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.0005879/0.1897, allocations: 434.8 kB / 0.4942 GB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.1899, allocations: 83.06 kB / 0.4942 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002067/0.192, allocations: 1.423 MB / 0.4956 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.153e-05/0.1921, allocations: 24 kB / 0.4957 GB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1921, allocations: 0 / 0.4957 GB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.1921, allocations: 15.91 kB / 0.4957 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003966/0.1961, allocations: 2.775 MB / 0.4984 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.1961, allocations: 0 / 0.4984 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.1971, allocations: 223.8 kB / 0.4986 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.043e-05/0.1972, allocations: 8.094 kB / 0.4986 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.239e-05/0.1972, allocations: 23.98 kB / 0.4986 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.1972, allocations: 7.938 kB / 0.4986 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.1973, allocations: 4 kB / 0.4986 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003064/0.2003, allocations: 2.292 MB / 0.5009 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.2005, allocations: 140.1 kB / 0.501 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.2007, allocations: 36.03 kB / 0.501 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004637/0.2011, allocations: 47.94 kB / 0.5011 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.2014, allocations: 104.9 kB / 0.5012 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.21e-05/0.2015, allocations: 35.98 kB / 0.5012 GB, free: 14.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000394/0.2019, allocations: 342.8 kB / 0.5015 GB, free: 13.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2019, allocations: 0 / 0.5015 GB, free: 13.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009505/0.2028, allocations: 304 kB / 0.5018 GB, free: 13.54 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.0002651/0.2031, allocations: 170.9 kB / 0.502 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003986/0.2071, allocations: 2.387 MB / 0.5043 GB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.2071, allocations: 4 kB / 0.5043 GB, free: 10.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.2082, allocations: 0.9064 MB / 0.5052 GB, free: 10 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007439/0.209, allocations: 136.1 kB / 0.5054 GB, free: 9.883 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003655/0.2126, allocations: 2.652 MB / 0.5079 GB, free: 7.191 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000747/0.2134, allocations: 1.097 MB / 0.509 GB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006252/0.214, allocations: 230.9 kB / 0.5092 GB, free: 5.836 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002202/0.2143, allocations: 67.42 kB / 0.5093 GB, free: 5.77 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2143, allocations: 0 / 0.5093 GB, free: 5.77 MB / 398.1 MB Notification: Performance of Templates: time 0.1931/0.4074, allocations: 13.33 MB / 0.5223 GB, free: 70.78 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)