Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.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.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault") translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009899/0.0009898, allocations: 179.6 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.196/1.196, allocations: 194.5 MB / 211.6 MB, free: 3.039 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.00156/0.00156, allocations: 114.7 kB / 256.9 MB, free: 4.359 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1602/0.1602, allocations: 38 MB / 340.1 MB, free: 1.363 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003339/0.000334, allocations: 12 kB / 403.8 MB, free: 68.81 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07699/0.07734, allocations: 53.23 MB / 457 MB, free: 15.57 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2773/0.3547, allocations: 102 MB / 0.5459 GB, free: 9.637 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/0.355, allocations: 101.6 kB / 0.546 GB, free: 9.582 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06841/0.4234, allocations: 25.06 MB / 0.5704 GB, free: 3.953 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4234, allocations: 0 / 0.5704 GB, free: 3.953 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.644e-05/0.4235, allocations: 24 kB / 0.5705 GB, free: 3.93 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.003209/0.4267, allocations: 1.485 MB / 0.5719 GB, free: 2.445 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.4268, allocations: 12.02 kB / 0.5719 GB, free: 2.434 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001173/0.428, allocations: 206.7 kB / 0.5721 GB, free: 2.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002923/0.4309, allocations: 1.211 MB / 0.5733 GB, free: 1.188 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.516e-05/0.431, allocations: 91.41 kB / 0.5734 GB, free: 1.129 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002201/0.4312, allocations: 98.31 kB / 0.5735 GB, free: 1.062 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/0.4336, allocations: 1.589 MB / 0.575 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.4336, allocations: 0 / 0.575 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/0.4337, allocations: 50.72 kB / 0.5751 GB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-05/0.4338, allocations: 69.73 kB / 0.5751 GB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001953/0.4358, allocations: 1.39 MB / 0.5765 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007596/0.4434, allocations: 5.704 MB / 0.5821 GB, free: 9.969 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001463/0.4449, allocations: 1.072 MB / 0.5831 GB, free: 9.227 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.628e-05/0.445, allocations: 17.03 kB / 0.5831 GB, free: 9.211 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/0.4464, allocations: 1.113 MB / 0.5842 GB, free: 8.348 MB / 394.7 MB Notification: Performance of pre-optimization done (n=157): time 3.787e-06/0.4465, allocations: 0 / 0.5842 GB, free: 8.348 MB / 394.7 MB Notification: Performance of matching and sorting (n=158): time 0.007048/0.4535, allocations: 5.066 MB / 0.5892 GB, free: 4.184 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.4537, allocations: 217.2 kB / 0.5894 GB, free: 3.93 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006549/0.4543, allocations: 494 kB / 0.5898 GB, free: 3.441 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.4544, allocations: 61.69 kB / 0.5899 GB, free: 3.375 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003793/0.4548, allocations: 452.4 kB / 0.5903 GB, free: 2.926 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004178/0.4553, allocations: 481.4 kB / 0.5908 GB, free: 2.449 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.682e-05/0.4554, allocations: 28 kB / 0.5908 GB, free: 2.422 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.4556, allocations: 414.7 kB / 0.5912 GB, free: 2.008 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.4566, allocations: 0.691 MB / 0.5919 GB, free: 1.316 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/0.4579, allocations: 0.9643 MB / 0.5928 GB, free: 264 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.4592, allocations: 0.856 MB / 0.5937 GB, free: 15.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.4592, allocations: 0 / 0.5937 GB, free: 15.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005652/0.4649, allocations: 2.831 MB / 0.5964 GB, free: 12.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.011e-05/0.465, allocations: 71.39 kB / 0.5965 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00459/0.4696, allocations: 2.379 MB / 0.5988 GB, free: 10.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003329/0.4729, allocations: 1.094 MB / 0.5999 GB, free: 8.973 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005605/0.4735, allocations: 147.7 kB / 0.6 GB, free: 8.828 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01332/0.4868, allocations: 8.683 MB / 0.6085 GB, free: 8 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000906/0.4877, allocations: 95.97 kB / 0.6086 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001664/0.4879, allocations: 52 kB / 0.6087 GB, free: 15.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 79 (system.initime,$PRE.fault_ab.fault_pp.t0,fault_ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition22,$whenCondition21,$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],$PRE.fault_ab.theta_zero,fault_ab.theta_zero,$PRE.fault_ab.v_pos,fault_ab.v_pos,$PRE.fault_ab.first,fault_ab.first,$PRE.fault_ab.fault_pp.on,fault_ab.fault_pp.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 133 * Array equations: 4 * 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 {(12,84.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000805/0.4887, allocations: 488.6 kB / 0.6091 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002472/0.489, allocations: 102.9 kB / 0.6092 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002879/0.4919, allocations: 1.865 MB / 0.611 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.682e-05/0.492, allocations: 35.98 kB / 0.6111 GB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.492, allocations: 4 kB / 0.6111 GB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.557e-06/0.492, allocations: 3.984 kB / 0.6111 GB, free: 13.33 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00539/0.4974, allocations: 3.402 MB / 0.6144 GB, free: 9.848 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.4974, allocations: 0 / 0.6144 GB, free: 9.848 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00201/0.4994, allocations: 375.7 kB / 0.6148 GB, free: 9.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001102/0.4995, allocations: 28.84 kB / 0.6148 GB, free: 9.449 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.4997, allocations: 47.89 kB / 0.6148 GB, free: 9.402 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009371/0.5006, allocations: 1.335 MB / 0.6161 GB, free: 7.934 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.5006, allocations: 3.938 kB / 0.6161 GB, free: 7.93 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003978/0.5046, allocations: 2.944 MB / 0.619 GB, free: 4.926 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005947/0.5052, allocations: 299.8 kB / 0.6193 GB, free: 4.613 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001919/0.5054, allocations: 43.94 kB / 0.6193 GB, free: 4.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006802/0.5061, allocations: 79.89 kB / 0.6194 GB, free: 4.492 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002664/0.5064, allocations: 128.8 kB / 0.6195 GB, free: 4.363 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.192e-05/0.5065, allocations: 39.98 kB / 0.6196 GB, free: 4.324 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004806/0.507, allocations: 386.8 kB / 0.62 GB, free: 3.945 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.507, allocations: 0 / 0.62 GB, free: 3.945 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001245/0.5082, allocations: 407.9 kB / 0.6203 GB, free: 3.547 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (line.i1[1],line.i1[2],line.i1[3],line.i2[1],line.i2[2],line.i2[3]) * Number of discrete variables: 54 (switch1.switch_c.closed,switch1.switch_b.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$whenCondition22,$whenCondition21,$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,fault_ab.theta_zero,fault_ab.v_pos,fault_ab.first,fault_ab.fault_pp.on,fault_ab.fault_pp.t0,system.initime) * Number of discrete states: 20 (fault_ab.theta_zero,fault_ab.fault_pp.on,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_a.open,switch2.switch_b.open,switch2.switch_c.open,fault_ab.v_pos,fault_ab.first,switch1.switch_c.open,switch1.switch_a.open,switch1.switch_b.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 105 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 10 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000369/0.5086, allocations: 202.9 kB / 0.6205 GB, free: 3.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004383/0.513, allocations: 2.537 MB / 0.623 GB, free: 0.7695 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.513, allocations: 0 / 0.623 GB, free: 0.7695 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001521/0.5145, allocations: 1.215 MB / 0.6242 GB, free: 15.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007464/0.5153, allocations: 142.2 kB / 0.6243 GB, free: 15.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005027/0.5203, allocations: 3.442 MB / 0.6277 GB, free: 11.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.5214, allocations: 1.238 MB / 0.6289 GB, free: 10.64 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007936/0.5222, allocations: 284.1 kB / 0.6292 GB, free: 10.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003167/0.5225, allocations: 71.42 kB / 0.6292 GB, free: 10.29 MB / 442.7 MB Notification: Performance of SimCode: time 6.42e-07/0.5225, allocations: 0 / 0.6292 GB, free: 10.29 MB / 442.7 MB Notification: Performance of Templates: time 0.02701/0.5495, allocations: 16.58 MB / 0.6454 GB, free: 9.707 MB / 458.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)