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.001346/0.001346, allocations: 179.5 kB / 17.4 MB, free: 4.41 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.621/1.621, allocations: 194.5 MB / 212.6 MB, free: 2.926 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.001618/0.001618, allocations: 125.9 kB / 257.9 MB, free: 4.258 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1819/0.1819, allocations: 38.02 MB / 341.1 MB, free: 1.172 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003581/0.0003583, allocations: 12 kB / 405 MB, free: 68.48 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1036, allocations: 53.24 MB / 458.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3706/0.4742, allocations: 104.8 MB / 0.5499 GB, free: 6.312 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/0.4746, allocations: 94.86 kB / 0.55 GB, free: 6.266 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07506/0.5497, allocations: 24.37 MB / 0.5738 GB, free: 1.008 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.5498, allocations: 0 / 0.5738 GB, free: 1.008 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001666/0.55, allocations: 31.94 kB / 0.5738 GB, free: 0.9766 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.006112/0.5561, allocations: 1.706 MB / 0.5755 GB, free: 15.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.041e-05/0.5561, allocations: 12.03 kB / 0.5755 GB, free: 15.28 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008281/0.557, allocations: 131.4 kB / 0.5756 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00523/0.5622, allocations: 1.835 MB / 0.5774 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.5624, allocations: 77.31 kB / 0.5775 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005237/0.5629, allocations: 120.5 kB / 0.5776 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003558/0.5665, allocations: 1.778 MB / 0.5793 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/0.5665, allocations: 3.938 kB / 0.5794 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001703/0.5667, allocations: 38.38 kB / 0.5794 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-05/0.5668, allocations: 34 kB / 0.5794 GB, free: 12 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002012/0.5688, allocations: 1.116 MB / 0.5805 GB, free: 11.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009985/0.5788, allocations: 5.797 MB / 0.5862 GB, free: 6.355 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/0.5806, allocations: 1.265 MB / 0.5874 GB, free: 5.441 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001287/0.5819, allocations: 0.9921 MB / 0.5884 GB, free: 4.793 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.159e-05/0.582, allocations: 16.56 kB / 0.5884 GB, free: 4.781 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001866/0.5838, allocations: 1.352 MB / 0.5897 GB, free: 3.695 MB / 394.7 MB Notification: Performance of pre-optimization done (n=101): time 4.929e-06/0.5839, allocations: 0 / 0.5897 GB, free: 3.695 MB / 394.7 MB Notification: Performance of matching and sorting (n=105): time 0.02258/0.6065, allocations: 9.12 MB / 0.5986 GB, free: 11.38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001685/0.6067, allocations: 208.9 kB / 0.5988 GB, free: 11.13 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001326/0.608, allocations: 0.747 MB / 0.5995 GB, free: 10.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003261/0.6084, allocations: 49.7 kB / 0.5996 GB, free: 10.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005764/0.6089, allocations: 488 kB / 0.6001 GB, free: 9.836 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007844/0.6097, allocations: 426.8 kB / 0.6005 GB, free: 9.414 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000206/0.61, allocations: 28 kB / 0.6005 GB, free: 9.387 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.6102, allocations: 365.9 kB / 0.6008 GB, free: 9.023 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001766/0.612, allocations: 1.015 MB / 0.6018 GB, free: 8.008 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002269/0.6143, allocations: 1.295 MB / 0.6031 GB, free: 6.617 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02761/0.6419, allocations: 10.85 MB / 0.6137 GB, free: 11.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.035e-05/0.642, allocations: 7.938 kB / 0.6137 GB, free: 11.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01051/0.6525, allocations: 5.142 MB / 0.6187 GB, free: 6.422 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.805e-05/0.6526, allocations: 71.41 kB / 0.6188 GB, free: 6.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.256e-05/0.6526, allocations: 4 kB / 0.6188 GB, free: 6.336 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01424/0.6669, allocations: 6.484 MB / 0.6251 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007838/0.6677, allocations: 171.7 kB / 0.6253 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02457/0.6923, allocations: 15.56 MB / 0.6405 GB, free: 15.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.6936, allocations: 91.91 kB / 0.6406 GB, free: 15.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00038/0.694, allocations: 159.9 kB / 0.6407 GB, free: 15.73 MB / 458.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.lineF.i[1,1] = 0.0 $DER.lineF.i[2,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,$PRE.switch2.switch_1.open,$PRE.switch1.switch_1.open,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_1.arc,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,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.001183/0.6952, allocations: 444.8 kB / 0.6411 GB, free: 15.27 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004058/0.6956, allocations: 102.8 kB / 0.6412 GB, free: 15.17 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01255/0.7082, allocations: 5.112 MB / 0.6462 GB, free: 10.01 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/0.7082, allocations: 15.94 kB / 0.6463 GB, free: 9.992 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.7083, allocations: 0 / 0.6463 GB, free: 9.992 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-05/0.7083, allocations: 7.984 kB / 0.6463 GB, free: 9.984 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01643/0.7247, allocations: 6.982 MB / 0.6531 GB, free: 2.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/0.7248, allocations: 4 kB / 0.6531 GB, free: 2.906 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006212/0.7254, allocations: 123.8 kB / 0.6532 GB, free: 2.785 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01832/0.7437, allocations: 6.648 MB / 0.6597 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006186/0.7444, allocations: 219.8 kB / 0.6599 GB, free: 11.89 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2516/0.9961, allocations: 20.86 MB / 0.6803 GB, free: 146.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.9961, allocations: 1.938 kB / 0.6803 GB, free: 146.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01286/1.009, allocations: 6.097 MB / 0.6862 GB, free: 146.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008579/1.01, allocations: 417.7 kB / 0.6866 GB, free: 146.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003318/1.01, allocations: 186.5 kB / 0.6868 GB, free: 146.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000675/1.011, allocations: 70.56 kB / 0.6869 GB, free: 146.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007501/1.012, allocations: 188.2 kB / 0.6871 GB, free: 146.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/1.012, allocations: 155.5 kB / 0.6872 GB, free: 146.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006017/1.012, allocations: 0.4935 MB / 0.6877 GB, free: 146 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.013, allocations: 0 / 0.6877 GB, free: 146 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002024/1.015, allocations: 0.5303 MB / 0.6882 GB, free: 146 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.0004696/1.015, allocations: 217 kB / 0.6884 GB, free: 145.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005463/1.02, allocations: 3.072 MB / 0.6914 GB, free: 145.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/1.021, allocations: 3.875 kB / 0.6914 GB, free: 145.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003815/1.024, allocations: 2.402 MB / 0.6938 GB, free: 144.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/1.026, allocations: 258.2 kB / 0.694 GB, free: 144.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007165/1.033, allocations: 5.73 MB / 0.6996 GB, free: 141.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006808/1.034, allocations: 1.225 MB / 0.7008 GB, free: 141 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0009264/1.034, allocations: 207.9 kB / 0.701 GB, free: 141 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/1.035, allocations: 68.38 kB / 0.7011 GB, free: 141 MB / 474.7 MB Notification: Performance of SimCode: time 8.91e-07/1.035, allocations: 0 / 0.7011 GB, free: 141 MB / 474.7 MB Notification: Performance of Templates: time 0.05121/1.086, allocations: 37.07 MB / 0.7373 GB, free: 116.8 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)