Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="Time|meterF.i|meterF.p|meterF.v|meterL.i|meterL.p|meterL.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="Time|meterF.i|meterF.p|meterF.v|meterL.i|meterL.p|meterL.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001525/0.001525, allocations: 172.4 kB / 17.4 MB, free: 4.297 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.4 MB / 223.5 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007384/0.0007386, allocations: 89.36 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1657/0.1657, allocations: 38.08 MB / 358.3 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003576/0.0003579, allocations: 12 kB / 425.2 MB, free: 37.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2964, allocations: 56.33 MB / 481.6 MB, free: 9.586 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.4519, allocations: 110.6 MB / 0.5783 GB, free: 7.613 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003038/0.4523, allocations: 99.81 kB / 0.5784 GB, free: 7.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07248/0.5248, allocations: 24.44 MB / 0.6023 GB, free: 14.77 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.5248, allocations: 0 / 0.6023 GB, free: 14.77 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.613e-05/0.5249, allocations: 20 kB / 0.6023 GB, free: 14.75 MB / 442.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.005045/0.53, allocations: 1.706 MB / 0.604 GB, free: 12.97 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/0.5301, allocations: 8.031 kB / 0.604 GB, free: 12.96 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006355/0.5307, allocations: 131.4 kB / 0.6041 GB, free: 12.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004783/0.5355, allocations: 1.844 MB / 0.6059 GB, free: 10.95 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.387e-05/0.5356, allocations: 70 kB / 0.606 GB, free: 10.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004183/0.5361, allocations: 123.9 kB / 0.6061 GB, free: 10.76 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00319/0.5393, allocations: 1.785 MB / 0.6078 GB, free: 8.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.92e-05/0.5393, allocations: 0 / 0.6078 GB, free: 8.93 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001415/0.5394, allocations: 36 kB / 0.6078 GB, free: 8.895 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-05/0.5395, allocations: 33.98 kB / 0.6079 GB, free: 8.859 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001967/0.5415, allocations: 1.124 MB / 0.609 GB, free: 7.738 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009309/0.5508, allocations: 5.788 MB / 0.6146 GB, free: 1.805 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001698/0.5525, allocations: 1.264 MB / 0.6159 GB, free: 0.5 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.5539, allocations: 1.002 MB / 0.6168 GB, free: 15.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.417e-05/0.554, allocations: 9.859 kB / 0.6169 GB, free: 15.49 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001829/0.5558, allocations: 1.362 MB / 0.6182 GB, free: 14.1 MB / 458.7 MB Notification: Performance of pre-optimization done (n=101): time 4.168e-06/0.5558, allocations: 0 / 0.6182 GB, free: 14.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=105): time 0.0209/0.5767, allocations: 9.124 MB / 0.6271 GB, free: 4.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/0.5769, allocations: 204.9 kB / 0.6273 GB, free: 4.508 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/0.5782, allocations: 0.743 MB / 0.628 GB, free: 3.754 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002787/0.5785, allocations: 57.7 kB / 0.6281 GB, free: 3.691 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005136/0.579, allocations: 488.2 kB / 0.6285 GB, free: 3.207 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000677/0.5797, allocations: 418.8 kB / 0.6289 GB, free: 2.793 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.5799, allocations: 32 kB / 0.629 GB, free: 2.762 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.5801, allocations: 365.9 kB / 0.6293 GB, free: 2.398 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001646/0.5818, allocations: 1.015 MB / 0.6303 GB, free: 1.383 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001993/0.5838, allocations: 1.299 MB / 0.6316 GB, free: 15.99 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02743/0.6112, allocations: 10.85 MB / 0.6422 GB, free: 4.977 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/0.6113, allocations: 7.938 kB / 0.6422 GB, free: 4.969 MB / 474.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.2222/0.8335, allocations: 5.138 MB / 0.6472 GB, free: 135.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.839e-05/0.8336, allocations: 61.78 kB / 0.6472 GB, free: 135.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.2e-05/0.8337, allocations: 8.406 kB / 0.6473 GB, free: 135.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01525/0.8489, allocations: 6.48 MB / 0.6536 GB, free: 135.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007795/0.8498, allocations: 177.5 kB / 0.6538 GB, free: 135.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02532/0.8751, allocations: 15.55 MB / 0.6689 GB, free: 132.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009977/0.8761, allocations: 95.16 kB / 0.669 GB, free: 132.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000261/0.8764, allocations: 151.8 kB / 0.6692 GB, free: 132.4 MB / 474.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.0009113/0.8773, allocations: 445.4 kB / 0.6696 GB, free: 132.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002901/0.8776, allocations: 107.7 kB / 0.6697 GB, free: 132.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01061/0.8883, allocations: 5.122 MB / 0.6747 GB, free: 131 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/0.8883, allocations: 10.19 kB / 0.6747 GB, free: 131 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.8883, allocations: 1.125 kB / 0.6747 GB, free: 131 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.829e-05/0.8884, allocations: 3.328 kB / 0.6747 GB, free: 131 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01352/0.9019, allocations: 6.989 MB / 0.6815 GB, free: 129.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.9019, allocations: 0 / 0.6815 GB, free: 129.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005371/0.9025, allocations: 122.6 kB / 0.6817 GB, free: 129.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01655/0.919, allocations: 6.647 MB / 0.6881 GB, free: 128.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007032/0.9198, allocations: 223.8 kB / 0.6884 GB, free: 128.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03797/0.9578, allocations: 20.87 MB / 0.7087 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/0.9579, allocations: 6.062 kB / 0.7087 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02378/0.9817, allocations: 6.093 MB / 0.7147 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001497/0.9833, allocations: 407.7 kB / 0.7151 GB, free: 103.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000821/0.9841, allocations: 183.9 kB / 0.7153 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001385/0.9855, allocations: 78.09 kB / 0.7153 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009756/0.9865, allocations: 192.6 kB / 0.7155 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003588/0.9869, allocations: 153.8 kB / 0.7157 GB, free: 102.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001038/0.988, allocations: 0.4989 MB / 0.7162 GB, free: 102.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.988, allocations: 0 / 0.7162 GB, free: 102.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003128/0.9912, allocations: 0.5352 MB / 0.7167 GB, free: 101.5 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.0005584/0.9917, allocations: 223 kB / 0.7169 GB, free: 101.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006452/0.9982, allocations: 3.063 MB / 0.7199 GB, free: 98.24 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.9982, allocations: 0 / 0.7199 GB, free: 98.24 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00419/1.002, allocations: 2.411 MB / 0.7222 GB, free: 95.74 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/1.004, allocations: 258.9 kB / 0.7225 GB, free: 95.49 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007093/1.011, allocations: 5.718 MB / 0.7281 GB, free: 89.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000838/1.012, allocations: 1.229 MB / 0.7293 GB, free: 88.64 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007146/1.013, allocations: 210.2 kB / 0.7295 GB, free: 88.44 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001998/1.013, allocations: 71.44 kB / 0.7295 GB, free: 88.37 MB / 474.7 MB Notification: Performance of SimCode: time 1.272e-06/1.013, allocations: 0 / 0.7295 GB, free: 88.37 MB / 474.7 MB Notification: Performance of Templates: time 0.04969/1.063, allocations: 37.05 MB / 0.7657 GB, free: 51.35 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.pipe 2>&1)