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.001072/0.001072, allocations: 112.2 kB / 17.74 MB, free: 5.344 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.001137/0.001137, allocations: 187.1 kB / 18.67 MB, free: 4.422 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.304/1.304, 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.1798/0.1798, allocations: 37.98 MB / 309.9 MB, free: 5.961 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.001394/0.001394, allocations: 71.89 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09893/0.1003, allocations: 55.23 MB / 487.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.007958/0.1083, allocations: 6.589 MB / 494.4 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003985/0.1124, allocations: 2.147 MB / 496.5 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006794/0.1131, allocations: 19.94 kB / 496.5 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.115, allocations: 0.6382 MB / 497.2 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00179/0.1168, allocations: 0.5483 MB / 497.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.1179, allocations: 387.2 kB / 498.1 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001508/0.1194, allocations: 1.205 MB / 499.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008072/0.1202, allocations: 0.5757 MB / 499.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000821/0.1211, allocations: 0.5176 MB / 0.4887 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008595/0.1219, allocations: 0.658 MB / 0.4893 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.1221, allocations: 96 kB / 0.4894 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008848/0.123, allocations: 0.5071 MB / 0.4899 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004181/0.1234, allocations: 478.9 kB / 0.4904 GB, free: 9.953 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005025/0.1239, allocations: 0.5326 MB / 0.4909 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001383/0.1253, allocations: 1.379 MB / 0.4922 GB, free: 8.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1253, allocations: 0 / 0.4922 GB, free: 8.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1253, allocations: 0 / 0.4922 GB, free: 8.035 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.536e-05/0.1254, allocations: 0 / 0.4922 GB, free: 8.035 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.002462/0.1278, allocations: 1.386 MB / 0.4936 GB, free: 6.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.1279, allocations: 15.89 kB / 0.4936 GB, free: 6.566 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007815/0.1287, allocations: 155.6 kB / 0.4937 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009695/0.1297, allocations: 0.628 MB / 0.4943 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.311e-05/0.1297, allocations: 74.31 kB / 0.4944 GB, free: 5.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002065/0.13, allocations: 100.1 kB / 0.4945 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001849/0.1318, allocations: 1.311 MB / 0.4958 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.899e-05/0.1319, allocations: 4 kB / 0.4958 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-05/0.132, allocations: 32 kB / 0.4958 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001482/0.1321, allocations: 65.97 kB / 0.4959 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001793/0.1339, allocations: 1.179 MB / 0.497 GB, free: 2.926 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005964/0.1399, allocations: 4.637 MB / 0.5016 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.1413, allocations: 1.295 MB / 0.5028 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008104/0.1422, allocations: 0.6404 MB / 0.5035 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.692e-05/0.1422, allocations: 9.594 kB / 0.5035 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/0.1434, allocations: 0.8985 MB / 0.5043 GB, free: 11.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=122): time 2.955e-06/0.1434, allocations: 0 / 0.5043 GB, free: 11.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.005072/0.1485, allocations: 3.581 MB / 0.5078 GB, free: 7.434 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.1486, allocations: 234.9 kB / 0.5081 GB, free: 7.156 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005321/0.1492, allocations: 0.494 MB / 0.5086 GB, free: 6.652 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.324e-05/0.1492, allocations: 53.7 kB / 0.5086 GB, free: 6.594 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002995/0.1495, allocations: 404 kB / 0.509 GB, free: 6.191 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002703/0.1498, allocations: 367 kB / 0.5093 GB, free: 5.828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002943/0.1501, allocations: 226.9 kB / 0.5096 GB, free: 5.598 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1503, allocations: 394.7 kB / 0.5099 GB, free: 5.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007101/0.151, allocations: 0.5186 MB / 0.5104 GB, free: 4.688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009213/0.1519, allocations: 0.7817 MB / 0.5112 GB, free: 3.809 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.1536, allocations: 1.407 MB / 0.5126 GB, free: 2.285 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.1536, allocations: 7.938 kB / 0.5126 GB, free: 2.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003491/0.1571, allocations: 2.059 MB / 0.5146 GB, free: 200 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.436e-05/0.1572, allocations: 59.41 kB / 0.5147 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002769/0.16, allocations: 1.641 MB / 0.5163 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001852/0.1618, allocations: 0.6603 MB / 0.5169 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004887/0.1623, allocations: 135.7 kB / 0.517 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008823/0.1712, allocations: 6.48 MB / 0.5234 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007421/0.172, allocations: 63.95 kB / 0.5234 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.35e-05/0.1721, allocations: 48 kB / 0.5235 GB, free: 6.953 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.0006028/0.1727, allocations: 430 kB / 0.5239 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001802/0.1729, allocations: 90.95 kB / 0.524 GB, free: 6.418 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002001/0.1749, allocations: 1.415 MB / 0.5253 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.057e-05/0.1749, allocations: 23.98 kB / 0.5254 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1749, allocations: 0 / 0.5254 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.1749, allocations: 7.922 kB / 0.5254 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003829/0.1788, allocations: 2.763 MB / 0.5281 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.1788, allocations: 0 / 0.5281 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.1798, allocations: 227.8 kB / 0.5283 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.3e-05/0.1799, allocations: 8 kB / 0.5283 GB, free: 1.875 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.506e-05/0.1799, allocations: 23.98 kB / 0.5283 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.985e-06/0.1799, allocations: 4 kB / 0.5283 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1799, allocations: 0 / 0.5283 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2388/0.4187, allocations: 2.286 MB / 0.5306 GB, free: 51.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002722/0.419, allocations: 146.7 kB / 0.5307 GB, free: 51.72 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002138/0.4193, allocations: 32.08 kB / 0.5307 GB, free: 51.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004943/0.4198, allocations: 48.66 kB / 0.5308 GB, free: 51.72 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002671/0.42, allocations: 104.5 kB / 0.5309 GB, free: 51.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.649e-05/0.4201, allocations: 39.66 kB / 0.5309 GB, free: 51.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004079/0.4205, allocations: 346 kB / 0.5312 GB, free: 51.63 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4205, allocations: 0 / 0.5312 GB, free: 51.63 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009998/0.4215, allocations: 306.7 kB / 0.5315 GB, free: 51.63 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.0002692/0.4218, allocations: 175.9 kB / 0.5317 GB, free: 51.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002905/0.4247, allocations: 1.87 MB / 0.5335 GB, free: 51.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.4248, allocations: 2.188 kB / 0.5335 GB, free: 51.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.4258, allocations: 0.8878 MB / 0.5344 GB, free: 51.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008117/0.4266, allocations: 138.5 kB / 0.5345 GB, free: 51.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004031/0.4307, allocations: 2.337 MB / 0.5368 GB, free: 50.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006827/0.4314, allocations: 1.099 MB / 0.5379 GB, free: 49.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003149/0.4317, allocations: 76.75 kB / 0.538 GB, free: 49.35 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4317, allocations: 0 / 0.538 GB, free: 49.35 MB / 414.1 MB Notification: Performance of Templates: time 0.02334/0.4551, allocations: 14.16 MB / 0.5518 GB, free: 44.75 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)