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.001282/0.001283, allocations: 111.3 kB / 17.29 MB, free: 6.219 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.001371/0.001372, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.443/1.443, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1751/0.1751, allocations: 38.01 MB / 330 MB, free: 9.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 61.03 kB / 398.9 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1304, allocations: 58.07 MB / 457 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.009202/0.1397, allocations: 7.405 MB / 464.4 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005516/0.1452, allocations: 2.341 MB / 466.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001065/0.1463, allocations: 43.69 kB / 466.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002907/0.1493, allocations: 0.6027 MB / 467.4 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002835/0.1521, allocations: 0.5019 MB / 467.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001578/0.1537, allocations: 343.5 kB / 468.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00313/0.1569, allocations: 1.201 MB / 469.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001587/0.1585, allocations: 0.6147 MB / 470 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001437/0.16, allocations: 0.5137 MB / 470.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001557/0.1616, allocations: 0.6932 MB / 471.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004249/0.1658, allocations: 92 kB / 471.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00172/0.1676, allocations: 0.5499 MB / 471.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006278/0.1682, allocations: 474.9 kB / 472.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000791/0.169, allocations: 0.5326 MB / 472.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001863/0.1709, allocations: 1.037 MB / 473.9 MB, free: 7.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.1709, allocations: 4 kB / 473.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.171, allocations: 0 / 473.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.349e-05/0.171, allocations: 3.984 kB / 473.9 MB, free: 7.434 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.005437/0.1764, allocations: 1.374 MB / 475.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001048/0.1766, allocations: 15.89 kB / 475.3 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001571/0.1782, allocations: 155.5 kB / 475.5 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001955/0.1801, allocations: 0.6084 MB / 476.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.1803, allocations: 78.36 kB / 476.2 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003407/0.1807, allocations: 96.03 kB / 476.3 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003371/0.184, allocations: 1.311 MB / 477.6 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.421e-05/0.1841, allocations: 4 kB / 477.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001833/0.1843, allocations: 39.97 kB / 477.6 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002414/0.1846, allocations: 65.97 kB / 477.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00292/0.1875, allocations: 1.179 MB / 478.9 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01136/0.1989, allocations: 4.656 MB / 483.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002865/0.2019, allocations: 1.288 MB / 484.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001452/0.2034, allocations: 0.6522 MB / 485.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.084e-05/0.2035, allocations: 12.64 kB / 485.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00221/0.2057, allocations: 0.8908 MB / 486.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 8.846e-06/0.2057, allocations: 0 / 486.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=123): time 0.007741/0.2135, allocations: 3.581 MB / 489.9 MB, free: 6.836 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002207/0.2138, allocations: 238.6 kB / 490.2 MB, free: 6.555 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008106/0.2146, allocations: 0.494 MB / 490.7 MB, free: 6.051 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.2147, allocations: 49.7 kB / 490.7 MB, free: 5.996 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004337/0.2151, allocations: 404 kB / 491.1 MB, free: 5.594 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004025/0.2156, allocations: 359.1 kB / 491.5 MB, free: 5.238 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003939/0.216, allocations: 226.8 kB / 491.7 MB, free: 5.008 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002903/0.2163, allocations: 394.8 kB / 492.1 MB, free: 4.613 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009114/0.2172, allocations: 0.5147 MB / 492.6 MB, free: 4.102 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.2187, allocations: 0.7817 MB / 493.4 MB, free: 3.223 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003367/0.2221, allocations: 1.419 MB / 494.8 MB, free: 1.691 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.656e-05/0.2221, allocations: 3.938 kB / 494.8 MB, free: 1.688 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.007345/0.2295, allocations: 2.067 MB / 496.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001718/0.2297, allocations: 59.41 kB / 496.9 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005704/0.2354, allocations: 1.638 MB / 498.5 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003376/0.2388, allocations: 0.6564 MB / 499.2 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009754/0.2399, allocations: 139.7 kB / 499.3 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02263/0.2625, allocations: 6.488 MB / 0.494 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001688/0.2643, allocations: 63.83 kB / 0.494 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002684/0.2646, allocations: 52 kB / 0.4941 GB, free: 6.336 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.001382/0.266, allocations: 426.9 kB / 0.4945 GB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006479/0.2667, allocations: 87.05 kB / 0.4946 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003834/0.2705, allocations: 1.427 MB / 0.496 GB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-05/0.2706, allocations: 23.98 kB / 0.496 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.2707, allocations: 0 / 0.496 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.347e-05/0.2707, allocations: 7.922 kB / 0.496 GB, free: 4.332 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01282/0.2835, allocations: 2.775 MB / 0.4987 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-05/0.2837, allocations: 4 kB / 0.4987 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001713/0.2854, allocations: 223.8 kB / 0.4989 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.303e-05/0.2854, allocations: 8.031 kB / 0.4989 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/0.2856, allocations: 27.98 kB / 0.499 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.4e-05/0.2856, allocations: 7.938 kB / 0.499 GB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.2856, allocations: 0 / 0.499 GB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005283/0.2909, allocations: 2.281 MB / 0.5012 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005687/0.2915, allocations: 152.1 kB / 0.5013 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003813/0.2919, allocations: 35.89 kB / 0.5014 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.293, allocations: 43.95 kB / 0.5014 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004459/0.2934, allocations: 108.8 kB / 0.5015 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001492/0.2936, allocations: 35.92 kB / 0.5015 GB, free: 14.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.005206/0.2988, allocations: 346.8 kB / 0.5019 GB, free: 14.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.008e-06/0.2989, allocations: 0 / 0.5019 GB, free: 14.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002984/0.3019, allocations: 307.9 kB / 0.5022 GB, free: 13.86 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.0008378/0.3028, allocations: 175 kB / 0.5023 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008758/0.3116, allocations: 2.391 MB / 0.5047 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.381e-05/0.3117, allocations: 0.75 kB / 0.5047 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006791/0.3185, allocations: 0.8947 MB / 0.5055 GB, free: 10.33 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/0.3212, allocations: 132.5 kB / 0.5057 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009725/0.331, allocations: 2.72 MB / 0.5083 GB, free: 7.445 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002117/0.3332, allocations: 1.097 MB / 0.5094 GB, free: 6.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007088/0.334, allocations: 75.42 kB / 0.5095 GB, free: 6.246 MB / 398.1 MB Notification: Performance of SimCode: time 1.884e-06/0.334, allocations: 0 / 0.5095 GB, free: 6.246 MB / 398.1 MB Notification: Performance of Templates: time 0.4689/0.8029, allocations: 13.99 MB / 0.5231 GB, free: 67.99 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)