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 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.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.001259/0.001259, allocations: 108.9 kB / 17.06 MB, free: 5.824 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.001409/0.001409, allocations: 192 kB / 18 MB, free: 4.977 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.749/1.749, allocations: 205.1 MB / 223.9 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.1789/0.1789, allocations: 38 MB / 309.2 MB, free: 5.953 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.001361/0.001361, allocations: 71.89 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1175, allocations: 55.24 MB / 487.1 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.008432/0.1259, allocations: 6.589 MB / 493.7 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004728/0.1308, allocations: 2.151 MB / 495.8 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00053/0.1313, allocations: 19.88 kB / 495.9 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001826/0.1332, allocations: 0.6344 MB / 496.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00139/0.1346, allocations: 0.556 MB / 497.1 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008551/0.1354, allocations: 379.2 kB / 497.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.1366, allocations: 1.201 MB / 498.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007205/0.1374, allocations: 0.5873 MB / 499.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007175/0.1381, allocations: 0.5176 MB / 499.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009852/0.1391, allocations: 0.6464 MB / 0.4887 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000145/0.1392, allocations: 92 kB / 0.4887 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008878/0.1401, allocations: 0.5149 MB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004232/0.1406, allocations: 482.8 kB / 0.4897 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004868/0.1411, allocations: 0.5287 MB / 0.4902 GB, free: 9.406 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001311/0.1424, allocations: 1.383 MB / 0.4916 GB, free: 8.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1424, allocations: 0 / 0.4916 GB, free: 8.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.1424, allocations: 0 / 0.4916 GB, free: 8.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.1424, allocations: 3.938 kB / 0.4916 GB, free: 8.016 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002512/0.1449, allocations: 1.382 MB / 0.4929 GB, free: 6.566 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.145, allocations: 11.89 kB / 0.4929 GB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009041/0.1459, allocations: 159.5 kB / 0.4931 GB, free: 6.398 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.1471, allocations: 0.6241 MB / 0.4937 GB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.651e-05/0.1472, allocations: 74.36 kB / 0.4938 GB, free: 5.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002295/0.1475, allocations: 96.11 kB / 0.4939 GB, free: 5.566 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002116/0.1496, allocations: 1.311 MB / 0.4951 GB, free: 4.195 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.646e-05/0.1497, allocations: 7.938 kB / 0.4951 GB, free: 4.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001046/0.1498, allocations: 35.98 kB / 0.4952 GB, free: 4.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/0.1499, allocations: 61.97 kB / 0.4952 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001756/0.1517, allocations: 1.175 MB / 0.4964 GB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005751/0.1575, allocations: 4.64 MB / 0.5009 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.1589, allocations: 1.295 MB / 0.5022 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008032/0.1597, allocations: 0.6404 MB / 0.5028 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.221e-05/0.1598, allocations: 17.56 kB / 0.5028 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001097/0.1609, allocations: 0.8869 MB / 0.5037 GB, free: 11.1 MB / 398.1 MB Notification: Performance of pre-optimization done (n=122): time 2.785e-06/0.1609, allocations: 0 / 0.5037 GB, free: 11.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.005102/0.166, allocations: 3.578 MB / 0.5072 GB, free: 7.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.1662, allocations: 234.6 kB / 0.5074 GB, free: 7.152 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005291/0.1667, allocations: 0.494 MB / 0.5079 GB, free: 6.648 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.024e-05/0.1668, allocations: 57.67 kB / 0.5079 GB, free: 6.586 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002812/0.1671, allocations: 404 kB / 0.5083 GB, free: 6.184 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002699/0.1674, allocations: 371 kB / 0.5087 GB, free: 5.816 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002887/0.1677, allocations: 218.9 kB / 0.5089 GB, free: 5.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.1678, allocations: 402.8 kB / 0.5093 GB, free: 5.191 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007301/0.1686, allocations: 0.5147 MB / 0.5098 GB, free: 4.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/0.1697, allocations: 0.7818 MB / 0.5105 GB, free: 3.801 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001709/0.1714, allocations: 1.403 MB / 0.5119 GB, free: 2.281 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.1714, allocations: 3.938 kB / 0.5119 GB, free: 2.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003632/0.175, allocations: 2.063 MB / 0.5139 GB, free: 196 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.747e-05/0.1751, allocations: 71.23 kB / 0.514 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003026/0.1782, allocations: 1.645 MB / 0.5156 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001873/0.18, allocations: 0.6642 MB / 0.5163 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004523/0.1805, allocations: 131.7 kB / 0.5164 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009288/0.1898, allocations: 6.48 MB / 0.5227 GB, free: 7.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007473/0.1906, allocations: 67.88 kB / 0.5228 GB, free: 6.977 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.17e-05/0.1907, allocations: 44 kB / 0.5228 GB, free: 6.934 MB / 414.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.0007283/0.1914, allocations: 430 kB / 0.5232 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002755/0.1917, allocations: 86.95 kB / 0.5233 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002188/0.1939, allocations: 1.415 MB / 0.5247 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.049e-05/0.194, allocations: 20 kB / 0.5247 GB, free: 4.945 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.194, allocations: 4 kB / 0.5247 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.194, allocations: 15.91 kB / 0.5247 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004009/0.198, allocations: 2.756 MB / 0.5274 GB, free: 2.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.261e-06/0.198, allocations: 4 kB / 0.5274 GB, free: 2.086 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009894/0.199, allocations: 231.8 kB / 0.5276 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.199, allocations: 4 kB / 0.5276 GB, free: 1.855 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.722e-05/0.1991, allocations: 27.98 kB / 0.5277 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/0.1991, allocations: 4 kB / 0.5277 GB, free: 1.824 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1991, allocations: 4 kB / 0.5277 GB, free: 1.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3215/0.5207, allocations: 2.279 MB / 0.5299 GB, free: 51.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003941/0.5211, allocations: 147.5 kB / 0.5301 GB, free: 51.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002335/0.5214, allocations: 32 kB / 0.5301 GB, free: 51.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006366/0.522, allocations: 50.39 kB / 0.5301 GB, free: 51.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003762/0.5224, allocations: 104.9 kB / 0.5302 GB, free: 51.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.5225, allocations: 34.55 kB / 0.5303 GB, free: 51.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000587/0.5231, allocations: 343.5 kB / 0.5306 GB, free: 51.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5231, allocations: 0 / 0.5306 GB, free: 51.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001471/0.5246, allocations: 313.9 kB / 0.5309 GB, free: 51.64 MB / 414.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.0003454/0.525, allocations: 161.6 kB / 0.531 GB, free: 51.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003371/0.5283, allocations: 1.87 MB / 0.5329 GB, free: 51.28 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.5284, allocations: 3.719 kB / 0.5329 GB, free: 51.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001322/0.5297, allocations: 0.8994 MB / 0.5338 GB, free: 51.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/0.5309, allocations: 137.3 kB / 0.5339 GB, free: 51.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006253/0.5372, allocations: 2.262 MB / 0.5361 GB, free: 50.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/0.5383, allocations: 1.103 MB / 0.5372 GB, free: 49.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009526/0.5393, allocations: 233.4 kB / 0.5374 GB, free: 49.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003683/0.5396, allocations: 68.34 kB / 0.5375 GB, free: 49.36 MB / 414.1 MB Notification: Performance of SimCode: time 1.633e-06/0.5397, allocations: 0 / 0.5375 GB, free: 49.36 MB / 414.1 MB Notification: Performance of Templates: time 0.035/0.5747, allocations: 13.86 MB / 0.551 GB, free: 45.3 MB / 414.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)