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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001088/0.001088, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.699/1.699, allocations: 194.3 MB / 208.4 MB, free: 6.719 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001649/0.001649, allocations: 128.6 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1711/0.1711, allocations: 37.91 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.486e-05/4.489e-05, allocations: 4 kB / 397.5 MB, free: 1.035 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3936/0.3936, allocations: 53.21 MB / 450.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5047/0.8985, allocations: 97.54 MB / 0.5354 GB, free: 88.49 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/0.8989, allocations: 89.09 kB / 0.5355 GB, free: 88.49 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0578/0.9567, allocations: 21.98 MB / 0.557 GB, free: 71.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.9567, allocations: 4 kB / 0.557 GB, free: 71.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.447e-05/0.9568, allocations: 20 kB / 0.557 GB, free: 71.71 MB / 378.7 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.0019/0.9587, allocations: 1.172 MB / 0.5582 GB, free: 70.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.9587, allocations: 8.031 kB / 0.5582 GB, free: 70.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00074/0.9595, allocations: 163.3 kB / 0.5583 GB, free: 70.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002782/0.9623, allocations: 1.203 MB / 0.5595 GB, free: 69.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.368e-05/0.9623, allocations: 66 kB / 0.5596 GB, free: 68.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.9625, allocations: 84 kB / 0.5596 GB, free: 68.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001655/0.9642, allocations: 1.26 MB / 0.5609 GB, free: 67.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.646e-05/0.9642, allocations: 8 kB / 0.5609 GB, free: 67.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001097/0.9643, allocations: 39.98 kB / 0.5609 GB, free: 67.53 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.585e-05/0.9644, allocations: 57.97 kB / 0.561 GB, free: 67.47 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.9658, allocations: 1.113 MB / 0.5621 GB, free: 66.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005349/0.9711, allocations: 4.561 MB / 0.5665 GB, free: 61.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.9723, allocations: 0.8139 MB / 0.5673 GB, free: 60.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006765/0.973, allocations: 0.6447 MB / 0.5679 GB, free: 60.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.305e-05/0.9731, allocations: 12.77 kB / 0.5679 GB, free: 60.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009702/0.974, allocations: 0.8983 MB / 0.5688 GB, free: 59.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=126): time 2.395e-06/0.9741, allocations: 3.938 kB / 0.5688 GB, free: 59.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=127): time 0.004103/0.9782, allocations: 3.085 MB / 0.5718 GB, free: 56.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.9783, allocations: 238.5 kB / 0.5721 GB, free: 55.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005127/0.9788, allocations: 431.7 kB / 0.5725 GB, free: 55.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.126e-05/0.9789, allocations: 53.7 kB / 0.5725 GB, free: 55.26 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002598/0.9792, allocations: 388.2 kB / 0.5729 GB, free: 54.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002626/0.9795, allocations: 390.8 kB / 0.5733 GB, free: 54.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.905e-05/0.9795, allocations: 24.06 kB / 0.5733 GB, free: 54.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.9796, allocations: 394.8 kB / 0.5737 GB, free: 54.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006623/0.9803, allocations: 0.5226 MB / 0.5742 GB, free: 53.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007582/0.9811, allocations: 0.7566 MB / 0.5749 GB, free: 52.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007589/0.9819, allocations: 0.6521 MB / 0.5756 GB, free: 52.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.9819, allocations: 8 kB / 0.5756 GB, free: 52.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003304/0.9852, allocations: 2.055 MB / 0.5776 GB, free: 49.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.059e-05/0.9852, allocations: 63.91 kB / 0.5776 GB, free: 49.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002489/0.9877, allocations: 1.661 MB / 0.5793 GB, free: 48.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001693/0.9895, allocations: 0.6565 MB / 0.5799 GB, free: 47.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004543/0.9899, allocations: 135.7 kB / 0.58 GB, free: 47.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007081/0.997, allocations: 5.911 MB / 0.5858 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008365/0.9979, allocations: 59.94 kB / 0.5859 GB, free: 41.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-05/0.998, allocations: 48 kB / 0.5859 GB, free: 41.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 116 * Array equations: 3 * 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.0002987/0.9983, allocations: 269.1 kB / 0.5862 GB, free: 40.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.9985, allocations: 82.97 kB / 0.5862 GB, free: 40.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001972/1, allocations: 1.434 MB / 0.5876 GB, free: 39.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.333e-05/1.001, allocations: 31.98 kB / 0.5877 GB, free: 39.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/1.001, allocations: 4 kB / 0.5877 GB, free: 39.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/1.001, allocations: 7.938 kB / 0.5877 GB, free: 39.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003539/1.004, allocations: 2.807 MB / 0.5904 GB, free: 36.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/1.004, allocations: 4 kB / 0.5904 GB, free: 36.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/1.005, allocations: 235.8 kB / 0.5906 GB, free: 36.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.425e-05/1.005, allocations: 4 kB / 0.5907 GB, free: 36.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-05/1.005, allocations: 27.97 kB / 0.5907 GB, free: 36.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/1.005, allocations: 4 kB / 0.5907 GB, free: 36.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.005, allocations: 4 kB / 0.5907 GB, free: 36.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/1.008, allocations: 2.328 MB / 0.593 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002061/1.008, allocations: 160 kB / 0.5931 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/1.008, allocations: 31.98 kB / 0.5931 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005196/1.009, allocations: 59.83 kB / 0.5932 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/1.009, allocations: 108.6 kB / 0.5933 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.337e-05/1.009, allocations: 35.97 kB / 0.5933 GB, free: 33.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004104/1.009, allocations: 329.5 kB / 0.5937 GB, free: 33.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.41e-07/1.009, allocations: 0 / 0.5937 GB, free: 33.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001279/1.011, allocations: 323.9 kB / 0.594 GB, free: 32.81 MB / 378.7 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_b.closed,switch1.switch_c.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_b.closed,switch2.switch_c.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,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_c.open,switch2.switch_a.open,switch2.switch_b.open,switch1.switch_b.open,switch1.switch_c.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 88 * Array equations: 3 * 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.0003854/1.011, allocations: 211 kB / 0.5942 GB, free: 32.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002971/1.014, allocations: 1.847 MB / 0.596 GB, free: 30.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/1.014, allocations: 0.5625 kB / 0.596 GB, free: 30.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009825/1.015, allocations: 0.9093 MB / 0.5969 GB, free: 29.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006908/1.016, allocations: 107.6 kB / 0.597 GB, free: 29.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003333/1.019, allocations: 1.868 MB / 0.5988 GB, free: 27.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006704/1.02, allocations: 1.129 MB / 0.5999 GB, free: 26.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007134/1.021, allocations: 238.9 kB / 0.6001 GB, free: 26.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/1.021, allocations: 59.44 kB / 0.6002 GB, free: 26.32 MB / 378.7 MB Notification: Performance of SimCode: time 1.152e-06/1.021, allocations: 0 / 0.6002 GB, free: 26.32 MB / 378.7 MB Notification: Performance of Templates: time 0.02097/1.042, allocations: 12.51 MB / 0.6124 GB, free: 13.8 MB / 378.7 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)