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.001213/0.001213, allocations: 111.9 kB / 17.74 MB, free: 5.359 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.001255/0.001255, allocations: 193.5 kB / 18.67 MB, free: 4.434 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.362/1.362, allocations: 205.1 MB / 224.5 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.1781/0.1781, allocations: 37.98 MB / 309.9 MB, free: 5.957 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.001396/0.001396, allocations: 67.91 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08336/0.08477, allocations: 55.24 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.007562/0.09236, allocations: 6.578 MB / 494.4 MB, free: 1.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003627/0.09603, allocations: 2.151 MB / 496.5 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005297/0.09659, allocations: 15.94 kB / 496.5 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001775/0.09841, allocations: 0.6344 MB / 497.2 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001497/0.09993, allocations: 0.5444 MB / 497.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000947/0.1009, allocations: 391.1 kB / 498.1 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001383/0.1023, allocations: 1.205 MB / 499.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008437/0.1032, allocations: 0.5757 MB / 499.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007868/0.104, allocations: 0.5215 MB / 0.4887 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009682/0.1049, allocations: 0.6541 MB / 0.4893 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002179/0.1052, allocations: 92 kB / 0.4894 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009704/0.1061, allocations: 0.511 MB / 0.4899 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004918/0.1066, allocations: 486.8 kB / 0.4904 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007022/0.1074, allocations: 0.5248 MB / 0.4909 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001492/0.1089, allocations: 1.379 MB / 0.4922 GB, free: 8.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1089, allocations: 0 / 0.4922 GB, free: 8.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1089, allocations: 4 kB / 0.4922 GB, free: 8.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.628e-05/0.1089, allocations: 0 / 0.4922 GB, free: 8.031 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.002547/0.1115, allocations: 1.382 MB / 0.4936 GB, free: 6.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.1115, allocations: 11.89 kB / 0.4936 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008142/0.1123, allocations: 163.5 kB / 0.4937 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.1134, allocations: 0.628 MB / 0.4944 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.395e-05/0.1134, allocations: 70.38 kB / 0.4944 GB, free: 5.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002075/0.1137, allocations: 100.1 kB / 0.4945 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001919/0.1156, allocations: 1.311 MB / 0.4958 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.1156, allocations: 0 / 0.4958 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.163e-05/0.1157, allocations: 39.98 kB / 0.4958 GB, free: 4.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000146/0.1159, allocations: 61.97 kB / 0.4959 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001801/0.1177, allocations: 1.179 MB / 0.497 GB, free: 2.926 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005961/0.1236, allocations: 4.633 MB / 0.5016 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001428/0.1251, allocations: 1.292 MB / 0.5028 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008102/0.1259, allocations: 0.6404 MB / 0.5035 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.939e-05/0.126, allocations: 12.64 kB / 0.5035 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001135/0.1271, allocations: 0.8994 MB / 0.5043 GB, free: 11.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=122): time 3.136e-06/0.1271, allocations: 0 / 0.5043 GB, free: 11.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.00522/0.1324, allocations: 3.577 MB / 0.5078 GB, free: 7.441 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.1325, allocations: 238.9 kB / 0.5081 GB, free: 7.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005551/0.1331, allocations: 0.494 MB / 0.5085 GB, free: 6.656 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.877e-05/0.1332, allocations: 53.69 kB / 0.5086 GB, free: 6.598 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000316/0.1335, allocations: 404 kB / 0.509 GB, free: 6.195 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003003/0.1338, allocations: 367 kB / 0.5093 GB, free: 5.832 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003097/0.1341, allocations: 222.8 kB / 0.5095 GB, free: 5.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.1343, allocations: 398.7 kB / 0.5099 GB, free: 5.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007838/0.1351, allocations: 0.5186 MB / 0.5104 GB, free: 4.691 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009501/0.1361, allocations: 0.7856 MB / 0.5112 GB, free: 3.809 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001718/0.1378, allocations: 1.407 MB / 0.5126 GB, free: 2.285 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.1378, allocations: 3.938 kB / 0.5126 GB, free: 2.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003672/0.1415, allocations: 2.063 MB / 0.5146 GB, free: 200 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.881e-05/0.1416, allocations: 63.39 kB / 0.5147 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002956/0.1445, allocations: 1.637 MB / 0.5163 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001886/0.1464, allocations: 0.6642 MB / 0.5169 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004692/0.1469, allocations: 135.7 kB / 0.517 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009153/0.1561, allocations: 6.473 MB / 0.5233 GB, free: 7.066 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006965/0.1568, allocations: 63.88 kB / 0.5234 GB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.1569, allocations: 48 kB / 0.5235 GB, free: 6.957 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.0006037/0.1576, allocations: 438.1 kB / 0.5239 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002133/0.1578, allocations: 82.97 kB / 0.524 GB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002136/0.1599, allocations: 1.419 MB / 0.5253 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-05/0.16, allocations: 20 kB / 0.5254 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.16, allocations: 0 / 0.5254 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.16, allocations: 15.91 kB / 0.5254 GB, free: 4.945 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00391/0.1639, allocations: 2.755 MB / 0.5281 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.1639, allocations: 0 / 0.5281 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.165, allocations: 231.8 kB / 0.5283 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.009e-05/0.165, allocations: 4 kB / 0.5283 GB, free: 1.879 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.804e-05/0.1651, allocations: 27.97 kB / 0.5283 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/0.1651, allocations: 8 kB / 0.5283 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1651, allocations: 0 / 0.5283 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1944/0.3595, allocations: 2.281 MB / 0.5306 GB, free: 52.01 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/0.3597, allocations: 146.3 kB / 0.5307 GB, free: 51.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001912/0.3599, allocations: 33.86 kB / 0.5307 GB, free: 51.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005068/0.3604, allocations: 46.28 kB / 0.5308 GB, free: 51.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002464/0.3607, allocations: 107.2 kB / 0.5309 GB, free: 51.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.867e-05/0.3608, allocations: 34.86 kB / 0.5309 GB, free: 51.92 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004026/0.3612, allocations: 344 kB / 0.5312 GB, free: 51.83 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3612, allocations: 0 / 0.5312 GB, free: 51.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001043/0.3623, allocations: 307 kB / 0.5315 GB, free: 51.83 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.0002735/0.3625, allocations: 176.2 kB / 0.5317 GB, free: 51.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002935/0.3655, allocations: 1.87 MB / 0.5335 GB, free: 51.47 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3655, allocations: 2.219 kB / 0.5335 GB, free: 51.47 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.3666, allocations: 0.8845 MB / 0.5344 GB, free: 51.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008009/0.3674, allocations: 142.7 kB / 0.5345 GB, free: 51.24 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003519/0.3709, allocations: 2.337 MB / 0.5368 GB, free: 50.29 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006109/0.3716, allocations: 1.1 MB / 0.5379 GB, free: 49.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002686/0.3718, allocations: 76.2 kB / 0.5379 GB, free: 49.54 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3719, allocations: 0 / 0.5379 GB, free: 49.54 MB / 414.1 MB Notification: Performance of Templates: time 0.02146/0.3933, allocations: 14.29 MB / 0.5519 GB, free: 44.86 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)