Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.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.AC1ph_DC.Elementary.DoublelLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001086/0.001086, allocations: 179.8 kB / 16.38 MB, free: 5.762 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.242/1.242, allocations: 194.5 MB / 211.6 MB, free: 3.047 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.001687/0.001687, allocations: 117.6 kB / 256.9 MB, free: 4.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1644/0.1644, allocations: 37.99 MB / 340.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003297/0.0003297, allocations: 8 kB / 403.8 MB, free: 68.8 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08475/0.0851, allocations: 53.24 MB / 457 MB, free: 15.56 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.349/0.4342, allocations: 104.8 MB / 0.5486 GB, free: 6.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002953/0.4345, allocations: 94.73 kB / 0.5487 GB, free: 6.703 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07084/0.5054, allocations: 24.45 MB / 0.5726 GB, free: 1.387 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5054, allocations: 0 / 0.5726 GB, free: 1.387 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.55e-05/0.5055, allocations: 32 kB / 0.5726 GB, free: 1.355 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004235/0.5097, allocations: 1.713 MB / 0.5743 GB, free: 15.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.5098, allocations: 16.02 kB / 0.5743 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003752/0.5102, allocations: 127.2 kB / 0.5745 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007739/0.5179, allocations: 2.517 MB / 0.5769 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.5181, allocations: 72.88 kB / 0.577 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004378/0.5185, allocations: 118.6 kB / 0.5771 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002788/0.5213, allocations: 1.768 MB / 0.5788 GB, free: 11.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.5214, allocations: 3.938 kB / 0.5788 GB, free: 11.85 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001401/0.5215, allocations: 44.28 kB / 0.5789 GB, free: 11.83 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.858e-05/0.5216, allocations: 33.62 kB / 0.5789 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.5233, allocations: 1.119 MB / 0.58 GB, free: 11 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009963/0.5333, allocations: 5.793 MB / 0.5856 GB, free: 6.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001607/0.5349, allocations: 1.271 MB / 0.5869 GB, free: 5.238 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.817e-05/0.535, allocations: 12.19 kB / 0.5869 GB, free: 5.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001683/0.5367, allocations: 1.346 MB / 0.5882 GB, free: 4.148 MB / 394.7 MB Notification: Performance of pre-optimization done (n=101): time 2.635e-06/0.5367, allocations: 0 / 0.5882 GB, free: 4.148 MB / 394.7 MB Notification: Performance of matching and sorting (n=105): time 0.02113/0.5579, allocations: 9.233 MB / 0.5972 GB, free: 11.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.558, allocations: 200.9 kB / 0.5974 GB, free: 11.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.5591, allocations: 0.6486 MB / 0.5981 GB, free: 11.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002663/0.5594, allocations: 57.7 kB / 0.5981 GB, free: 10.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004311/0.5598, allocations: 496 kB / 0.5986 GB, free: 10.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000457/0.5603, allocations: 418.9 kB / 0.599 GB, free: 10.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.96e-05/0.5604, allocations: 32 kB / 0.599 GB, free: 10.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.5605, allocations: 361.9 kB / 0.5994 GB, free: 9.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.562, allocations: 1.015 MB / 0.6004 GB, free: 8.664 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001616/0.5637, allocations: 1.295 MB / 0.6016 GB, free: 7.273 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02565/0.5893, allocations: 8.605 MB / 0.61 GB, free: 14.61 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.5894, allocations: 4 kB / 0.61 GB, free: 14.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.009891/0.5993, allocations: 5.142 MB / 0.615 GB, free: 9.445 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.154e-05/0.5994, allocations: 67.41 kB / 0.6151 GB, free: 9.367 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.5994, allocations: 4 kB / 0.6151 GB, free: 9.363 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01505/0.6145, allocations: 6.48 MB / 0.6214 GB, free: 2.871 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007601/0.6153, allocations: 179.7 kB / 0.6216 GB, free: 2.695 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02435/0.6397, allocations: 16.48 MB / 0.6377 GB, free: 2.066 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.6407, allocations: 99.77 kB / 0.6378 GB, free: 1.969 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002219/0.641, allocations: 151.9 kB / 0.638 GB, free: 1.82 MB / 442.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: $DER.trafo.i1 = 0.0 $DER.line.i[1,1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 41 (system.initime,$PRE.ab.fault_pp.t0,ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,trafo.tap_2_internal,trafo.tap_1_internal,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.ab.t_zero,ab.t_zero,$PRE.ab.v_pos,ab.v_pos,$PRE.ab.first,ab.first,$PRE.ab.fault_pp.on,ab.fault_pp.on,$PRE.relay1.y[1],relay1.y[1],$PRE.relay2.y[1],relay2.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * Array equations: 0 * 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 {(29,10.6%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000925/0.6419, allocations: 444.8 kB / 0.6384 GB, free: 1.363 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002301/0.6422, allocations: 110.7 kB / 0.6385 GB, free: 1.254 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01205/0.6542, allocations: 5.07 MB / 0.6434 GB, free: 12.13 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.051e-05/0.6543, allocations: 16 kB / 0.6434 GB, free: 12.11 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.6543, allocations: 3.984 kB / 0.6435 GB, free: 12.11 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-05/0.6544, allocations: 3.984 kB / 0.6435 GB, free: 12.11 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01679/0.6712, allocations: 6.951 MB / 0.6502 GB, free: 5.066 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.831e-05/0.6712, allocations: 0 / 0.6502 GB, free: 5.066 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006868/0.6719, allocations: 123.9 kB / 0.6504 GB, free: 4.945 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01909/0.691, allocations: 6.653 MB / 0.6569 GB, free: 14.27 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004746/0.6915, allocations: 219.8 kB / 0.6571 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2255/0.917, allocations: 21.97 MB / 0.6785 GB, free: 145.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.9171, allocations: 5.469 kB / 0.6785 GB, free: 145.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01354/0.9306, allocations: 6.08 MB / 0.6845 GB, free: 145.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/0.9318, allocations: 412.5 kB / 0.6849 GB, free: 145.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003563/0.9322, allocations: 187 kB / 0.685 GB, free: 145.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006899/0.9329, allocations: 72.81 kB / 0.6851 GB, free: 145.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000774/0.9337, allocations: 194.4 kB / 0.6853 GB, free: 145.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001792/0.9339, allocations: 149.7 kB / 0.6854 GB, free: 145.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005935/0.9345, allocations: 0.4988 MB / 0.6859 GB, free: 145.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9345, allocations: 2.75 kB / 0.6859 GB, free: 145.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001782/0.9363, allocations: 0.5275 MB / 0.6864 GB, free: 145.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],lineF.v[1,1],lineF.v[1,2],lineF.v[1,3],lineF.v[2,1],lineF.v[2,2],lineF.v[2,3],lineF.i[1,1],lineF.i[1,2],lineF.i[1,3],lineF.i[1,4],lineF.i[2,1],lineF.i[2,2],lineF.i[2,3],lineF.i[2,4],lineF.iF[1],lineF.iF[2]) * Number of discrete variables: 26 (switch1.switch_1.closed,switch2.switch_1.closed,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_1.arc,switch1.switch_1.open,switch2.switch_1.arc,switch2.switch_1.open,ab.t_zero,ab.v_pos,ab.first,ab.fault_pp.on,ab.fault_pp.t0,relay1.y[1],relay1.cnt,relay2.y[1],relay2.cnt,system.initime) * Number of discrete states: 12 (relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {6,6} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {16 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003865/0.9366, allocations: 218.4 kB / 0.6866 GB, free: 145 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004899/0.9416, allocations: 3.065 MB / 0.6896 GB, free: 144.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.9416, allocations: 1.969 kB / 0.6896 GB, free: 144.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003853/0.9454, allocations: 2.409 MB / 0.692 GB, free: 143.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.9465, allocations: 239.9 kB / 0.6922 GB, free: 143.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006398/0.9529, allocations: 5.771 MB / 0.6979 GB, free: 141.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006468/0.9536, allocations: 1.25 MB / 0.6991 GB, free: 140.4 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005957/0.9542, allocations: 208.6 kB / 0.6993 GB, free: 140.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.9544, allocations: 72.95 kB / 0.6994 GB, free: 140.4 MB / 474.7 MB Notification: Performance of SimCode: time 8.02e-07/0.9544, allocations: 0 / 0.6994 GB, free: 140.4 MB / 474.7 MB Notification: Performance of Templates: time 0.04539/0.9998, allocations: 37.04 MB / 0.7355 GB, free: 117.7 MB / 474.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe 2>&1)