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.001564/0.001564, allocations: 112.2 kB / 16.51 MB, free: 6.715 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.001708/0.001708, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.423/1.423, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1734/0.1734, allocations: 38.03 MB / 329.3 MB, free: 9.016 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 65.36 kB / 398.1 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1142, allocations: 58.06 MB / 456.1 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.009225/0.1235, allocations: 7.416 MB / 463.6 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004634/0.1282, allocations: 2.391 MB / 466 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008274/0.129, allocations: 35.75 kB / 466 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001686/0.1308, allocations: 0.5954 MB / 466.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00152/0.1323, allocations: 0.4942 MB / 467.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.1334, allocations: 339.4 kB / 467.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001983/0.1354, allocations: 1.716 MB / 469.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009363/0.1363, allocations: 0.5404 MB / 469.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00069/0.137, allocations: 446 kB / 470.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008703/0.1379, allocations: 0.6698 MB / 470.8 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001135/0.138, allocations: 56 kB / 470.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009167/0.139, allocations: 0.5108 MB / 471.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004401/0.1394, allocations: 446.9 kB / 471.8 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005651/0.14, allocations: 0.4974 MB / 472.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001497/0.1415, allocations: 1.332 MB / 473.6 MB, free: 7.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1415, allocations: 0 / 473.6 MB, free: 7.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1415, allocations: 0 / 473.6 MB, free: 7.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.1415, allocations: 0 / 473.6 MB, free: 7.02 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.00249/0.144, allocations: 1.37 MB / 475 MB, free: 5.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.1441, allocations: 12.03 kB / 475 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008189/0.1449, allocations: 151.5 kB / 475.1 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009236/0.1459, allocations: 0.6163 MB / 475.7 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.577e-05/0.1459, allocations: 70.38 kB / 475.8 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002048/0.1461, allocations: 104 kB / 475.9 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001905/0.1481, allocations: 1.303 MB / 477.2 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.13e-05/0.1481, allocations: 7.938 kB / 477.2 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/0.1482, allocations: 39.98 kB / 477.3 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001522/0.1484, allocations: 65.97 kB / 477.3 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001776/0.1502, allocations: 1.179 MB / 478.5 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006055/0.1562, allocations: 4.668 MB / 483.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/0.1577, allocations: 1.292 MB / 484.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008469/0.1586, allocations: 0.6443 MB / 485.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.676e-05/0.1586, allocations: 12.66 kB / 485.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001219/0.1599, allocations: 0.8869 MB / 486 MB, free: 10.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.226e-06/0.1599, allocations: 4 kB / 486 MB, free: 10.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=123): time 0.005244/0.1651, allocations: 3.581 MB / 489.6 MB, free: 6.418 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.1653, allocations: 234.6 kB / 489.8 MB, free: 6.137 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005766/0.1659, allocations: 0.494 MB / 490.3 MB, free: 5.633 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.378e-05/0.1659, allocations: 49.7 kB / 490.4 MB, free: 5.578 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003074/0.1663, allocations: 412.3 kB / 490.8 MB, free: 5.168 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000279/0.1665, allocations: 359.1 kB / 491.1 MB, free: 4.812 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003185/0.1669, allocations: 218.9 kB / 491.3 MB, free: 4.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.1671, allocations: 398.7 kB / 491.7 MB, free: 4.191 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007887/0.1679, allocations: 0.5147 MB / 492.2 MB, free: 3.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.1689, allocations: 0.7778 MB / 493 MB, free: 2.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001777/0.1707, allocations: 1.407 MB / 494.4 MB, free: 1.289 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.1707, allocations: 7.875 kB / 494.4 MB, free: 1.281 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003786/0.1745, allocations: 2.063 MB / 496.5 MB, free: 15.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.747e-05/0.1745, allocations: 63.41 kB / 496.6 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003037/0.1776, allocations: 1.642 MB / 498.2 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002246/0.1798, allocations: 0.6602 MB / 498.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005727/0.1804, allocations: 139.7 kB / 499 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009776/0.1902, allocations: 5.91 MB / 0.4931 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00086/0.1911, allocations: 63.88 kB / 0.4931 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001862/0.1913, allocations: 44 kB / 0.4932 GB, free: 6.512 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.0009214/0.1923, allocations: 430.9 kB / 0.4936 GB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002896/0.1926, allocations: 87.05 kB / 0.4937 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002265/0.1948, allocations: 1.427 MB / 0.4951 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.34e-05/0.1949, allocations: 20 kB / 0.4951 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1949, allocations: 0 / 0.4951 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.1949, allocations: 7.969 kB / 0.4951 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004679/0.1996, allocations: 2.775 MB / 0.4978 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/0.1996, allocations: 4 kB / 0.4978 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.2007, allocations: 223.8 kB / 0.498 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.368e-05/0.2007, allocations: 7.938 kB / 0.498 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.2008, allocations: 27.98 kB / 0.4981 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.115e-05/0.2009, allocations: 4.156 kB / 0.4981 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.2009, allocations: 4 kB / 0.4981 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003688/0.2046, allocations: 2.284 MB / 0.5003 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003287/0.2049, allocations: 148.1 kB / 0.5004 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002147/0.2051, allocations: 35.94 kB / 0.5005 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005604/0.2057, allocations: 51.92 kB / 0.5005 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/0.206, allocations: 104.9 kB / 0.5006 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.832e-05/0.2061, allocations: 31.98 kB / 0.5006 GB, free: 14.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004495/0.2065, allocations: 346.8 kB / 0.501 GB, free: 14.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2066, allocations: 0 / 0.501 GB, free: 14.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001051/0.2076, allocations: 300 kB / 0.5013 GB, free: 14.05 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.0003012/0.2079, allocations: 178.9 kB / 0.5014 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003577/0.2115, allocations: 1.864 MB / 0.5033 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2115, allocations: 0 / 0.5033 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.2127, allocations: 0.9072 MB / 0.5041 GB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009125/0.2137, allocations: 134.3 kB / 0.5043 GB, free: 10.89 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004512/0.2182, allocations: 2.646 MB / 0.5069 GB, free: 8.207 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00084/0.2191, allocations: 1.105 MB / 0.5079 GB, free: 7.078 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007347/0.2198, allocations: 226.9 kB / 0.5081 GB, free: 6.852 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002726/0.2201, allocations: 67.44 kB / 0.5082 GB, free: 6.785 MB / 398.1 MB Notification: Performance of SimCode: time 1.343e-06/0.2201, allocations: 0 / 0.5082 GB, free: 6.785 MB / 398.1 MB Notification: Performance of Templates: time 0.2258/0.4459, allocations: 12.67 MB / 0.5206 GB, free: 69.7 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)