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.000994/0.000994, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.0009876/0.0009877, allocations: 178.4 kB / 17.2 MB, free: 5.914 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.693/1.693, allocations: 205.4 MB / 223.4 MB, free: 5.328 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3267/0.3267, allocations: 38.05 MB / 309.7 MB, free: 9.039 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.0005064/0.0005064, allocations: 20 kB / 376.5 MB, free: 15.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1318, allocations: 56.33 MB / 432.8 MB, free: 6.719 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.008373/0.1402, allocations: 6.311 MB / 439.1 MB, free: 388 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004498/0.1448, allocations: 2.277 MB / 441.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008019/0.1456, allocations: 35.75 kB / 441.4 MB, free: 14.06 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006533/0.1463, allocations: 159 kB / 441.6 MB, free: 13.9 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001815/0.1481, allocations: 466.5 kB / 442.1 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.1493, allocations: 335.4 kB / 442.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001362/0.1507, allocations: 0.6172 MB / 443 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001549/0.1523, allocations: 0.8421 MB / 443.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008354/0.1531, allocations: 370.7 kB / 444.2 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.1541, allocations: 474.5 kB / 444.7 MB, free: 10.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001708/0.1543, allocations: 40 kB / 444.7 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001068/0.1554, allocations: 435.3 kB / 445.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004236/0.1558, allocations: 395 kB / 445.5 MB, free: 9.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002508/0.1561, allocations: 201.2 kB / 445.7 MB, free: 9.734 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.1571, allocations: 1.005 MB / 446.7 MB, free: 8.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.1572, allocations: 0 / 446.7 MB, free: 8.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.1572, allocations: 0 / 446.7 MB, free: 8.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.1572, allocations: 0 / 446.7 MB, free: 8.727 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.002185/0.1594, allocations: 1.222 MB / 447.9 MB, free: 7.438 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.1594, allocations: 12.03 kB / 448 MB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008444/0.1603, allocations: 154.6 kB / 448.1 MB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.1614, allocations: 0.5881 MB / 448.7 MB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.064e-05/0.1615, allocations: 73.98 kB / 448.8 MB, free: 6.574 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001988/0.1617, allocations: 91.98 kB / 448.9 MB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00186/0.1635, allocations: 1.307 MB / 450.2 MB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.877e-05/0.1636, allocations: 7.953 kB / 450.2 MB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.529e-05/0.1637, allocations: 32 kB / 450.2 MB, free: 5.078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001404/0.1638, allocations: 65.97 kB / 450.3 MB, free: 5.012 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001697/0.1655, allocations: 1.175 MB / 451.4 MB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2129/0.3785, allocations: 4.667 MB / 456.1 MB, free: 49.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.3797, allocations: 1.292 MB / 457.4 MB, free: 48.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.747e-05/0.3798, allocations: 13 kB / 457.4 MB, free: 48.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009022/0.3807, allocations: 0.8935 MB / 458.3 MB, free: 48.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 2.544e-06/0.3807, allocations: 6.422 kB / 458.3 MB, free: 48.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.004312/0.385, allocations: 3.927 MB / 462.2 MB, free: 47.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.005e-05/0.3851, allocations: 237.5 kB / 462.5 MB, free: 46.94 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004552/0.3856, allocations: 499.7 kB / 463 MB, free: 46.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.543e-05/0.3857, allocations: 55.48 kB / 463 MB, free: 46.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002659/0.3859, allocations: 398.3 kB / 463.4 MB, free: 46.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002634/0.3862, allocations: 370.2 kB / 463.8 MB, free: 46.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.453e-05/0.3863, allocations: 22.34 kB / 463.8 MB, free: 46.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.3864, allocations: 401.2 kB / 464.2 MB, free: 46.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008066/0.3873, allocations: 0.5135 MB / 464.7 MB, free: 46.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007664/0.388, allocations: 0.7628 MB / 465.5 MB, free: 45.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007429/0.3888, allocations: 0.64 MB / 466.1 MB, free: 45.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.3888, allocations: 3.062 kB / 466.1 MB, free: 45.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003066/0.3919, allocations: 2.046 MB / 468.1 MB, free: 44.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.416e-05/0.3919, allocations: 60.66 kB / 468.2 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002428/0.3944, allocations: 1.63 MB / 469.8 MB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001634/0.396, allocations: 0.6557 MB / 470.5 MB, free: 44.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.3965, allocations: 140.8 kB / 470.6 MB, free: 44.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007901/0.4044, allocations: 6.119 MB / 476.7 MB, free: 41.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000729/0.4051, allocations: 70.09 kB / 476.8 MB, free: 41.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.335e-05/0.4052, allocations: 51.14 kB / 476.9 MB, free: 41.02 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,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005324/0.4058, allocations: 423 kB / 477.3 MB, free: 40.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.4059, allocations: 88.94 kB / 477.4 MB, free: 40.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/0.4076, allocations: 1.423 MB / 478.8 MB, free: 40.1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-05/0.4076, allocations: 27.45 kB / 478.8 MB, free: 40.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.4076, allocations: 0 / 478.8 MB, free: 40.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.4077, allocations: 10.98 kB / 478.8 MB, free: 40.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003414/0.4111, allocations: 2.786 MB / 481.6 MB, free: 38.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.4111, allocations: 0 / 481.6 MB, free: 38.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009646/0.4121, allocations: 235.1 kB / 481.8 MB, free: 38.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.979e-06/0.4121, allocations: 2.938 kB / 481.8 MB, free: 38.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.365e-05/0.4122, allocations: 24.8 kB / 481.9 MB, free: 38.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.725e-06/0.4122, allocations: 9.859 kB / 481.9 MB, free: 38.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4122, allocations: 0 / 481.9 MB, free: 38.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/0.4147, allocations: 2.337 MB / 484.2 MB, free: 37.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.4148, allocations: 148.1 kB / 484.4 MB, free: 37.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.415, allocations: 31.84 kB / 484.4 MB, free: 37.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004019/0.4154, allocations: 53.86 kB / 484.4 MB, free: 37.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001884/0.4156, allocations: 112.4 kB / 484.6 MB, free: 37.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-05/0.4156, allocations: 34.64 kB / 484.6 MB, free: 37.58 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002919/0.4159, allocations: 347.2 kB / 484.9 MB, free: 37.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.092e-06/0.416, allocations: 0 / 484.9 MB, free: 37.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009521/0.4169, allocations: 304.8 kB / 485.2 MB, free: 37.39 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002529/0.4172, allocations: 172.3 kB / 485.4 MB, free: 37.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002854/0.42, allocations: 1.846 MB / 487.2 MB, free: 36.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4201, allocations: 0 / 487.2 MB, free: 36.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.4211, allocations: 0.9088 MB / 488.1 MB, free: 36.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005642/0.4217, allocations: 112.4 kB / 488.3 MB, free: 36.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003586/0.4252, allocations: 2.672 MB / 490.9 MB, free: 34.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006047/0.4259, allocations: 1.122 MB / 492 MB, free: 33.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006548/0.4265, allocations: 237.5 kB / 492.3 MB, free: 33.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.4268, allocations: 59.78 kB / 492.3 MB, free: 33.91 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4268, allocations: 1.125 kB / 492.3 MB, free: 33.91 MB / 382.1 MB Notification: Performance of Templates: time 0.02332/0.4501, allocations: 12.1 MB / 0.4926 GB, free: 32.73 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: