Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Elementary.Fault.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/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_master_PowerSystems.Examples.AC3ph.Elementary.Fault") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002615/0.002621, allocations: 362.3 kB / 17.21 MB, free: 4.953 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.685/3.685, allocations: 388.9 MB / 406.8 MB, free: 11.91 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003635/0.003635, allocations: 233.6 kB / 452.2 MB, free: 14.51 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.7767/0.7767, allocations: 76.01 MB / 0.56 GB, free: 177.6 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006116/0.0006119, allocations: 15.98 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08947/0.09011, allocations: 53.23 MB / 0.6742 GB, free: 60.84 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4562/0.5464, allocations: 102 MB / 0.7738 GB, free: 81.64 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/0.5468, allocations: 93.97 kB / 0.7739 GB, free: 81.64 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1012/0.648, allocations: 25.03 MB / 0.7983 GB, free: 73.21 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.6481, allocations: 0 / 0.7983 GB, free: 73.21 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.911e-05/0.6481, allocations: 31.97 kB / 0.7984 GB, free: 73.21 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.004809/0.653, allocations: 1.483 MB / 0.7998 GB, free: 72.16 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.653, allocations: 12.19 kB / 0.7998 GB, free: 72.16 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001948/0.655, allocations: 197.2 kB / 0.8 GB, free: 72.07 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002827/0.6578, allocations: 0.8801 MB / 0.8009 GB, free: 71.59 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.658, allocations: 86.55 kB / 0.8009 GB, free: 71.58 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002889/0.6583, allocations: 104.3 kB / 0.801 GB, free: 71.58 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003701/0.662, allocations: 1.574 MB / 0.8026 GB, free: 71.03 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.139e-05/0.6621, allocations: 3.938 kB / 0.8026 GB, free: 71.03 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001681/0.6623, allocations: 45.94 kB / 0.8026 GB, free: 71.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001271/0.6624, allocations: 77.25 kB / 0.8027 GB, free: 71 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003574/0.666, allocations: 1.392 MB / 0.8041 GB, free: 70.77 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01223/0.6783, allocations: 5.699 MB / 0.8096 GB, free: 67.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002784/0.6811, allocations: 1.07 MB / 0.8107 GB, free: 67.29 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001824/0.683, allocations: 0.8164 MB / 0.8115 GB, free: 66.89 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000114/0.6831, allocations: 12.98 kB / 0.8115 GB, free: 66.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002227/0.6854, allocations: 1.12 MB / 0.8126 GB, free: 66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=157): time 4.889e-06/0.6854, allocations: 0 / 0.8126 GB, free: 66 MB / 442.7 MB Notification: Performance of matching and sorting (n=158): time 0.01033/0.6958, allocations: 4.566 MB / 0.817 GB, free: 62.55 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.987e-05/0.6959, allocations: 224.5 kB / 0.8172 GB, free: 62.29 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008631/0.6968, allocations: 0.5466 MB / 0.8178 GB, free: 61.85 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002207/0.697, allocations: 59.88 kB / 0.8178 GB, free: 61.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003501/0.6974, allocations: 448 kB / 0.8183 GB, free: 61.47 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004921/0.6979, allocations: 481.1 kB / 0.8187 GB, free: 61.06 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.698, allocations: 26.31 kB / 0.8188 GB, free: 61.05 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.6982, allocations: 421.3 kB / 0.8192 GB, free: 60.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.6998, allocations: 0.6904 MB / 0.8198 GB, free: 60.21 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001767/0.7016, allocations: 0.9697 MB / 0.8208 GB, free: 59.41 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001902/0.7035, allocations: 0.8513 MB / 0.8216 GB, free: 58.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.7036, allocations: 0 / 0.8216 GB, free: 58.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.008714/0.7123, allocations: 2.835 MB / 0.8244 GB, free: 56.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.867e-05/0.7124, allocations: 63.36 kB / 0.8244 GB, free: 56.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007572/0.72, allocations: 2.399 MB / 0.8268 GB, free: 53.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005627/0.7256, allocations: 1.087 MB / 0.8278 GB, free: 52.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.7267, allocations: 147.7 kB / 0.828 GB, free: 52.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02006/0.7468, allocations: 8.318 MB / 0.8361 GB, free: 43.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/0.7483, allocations: 87.91 kB / 0.8362 GB, free: 43.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000163/0.7485, allocations: 58.17 kB / 0.8362 GB, free: 43.82 MB / 442.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.0009779/0.7495, allocations: 498.2 kB / 0.8367 GB, free: 43.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003096/0.7498, allocations: 102.8 kB / 0.8368 GB, free: 43.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004418/0.7542, allocations: 1.85 MB / 0.8386 GB, free: 41.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.745e-05/0.7543, allocations: 32 kB / 0.8387 GB, free: 41.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/0.7544, allocations: 0 / 0.8387 GB, free: 41.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.218e-05/0.7544, allocations: 7.969 kB / 0.8387 GB, free: 41.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008028/0.7624, allocations: 3.398 MB / 0.842 GB, free: 37.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/0.7625, allocations: 8.031 kB / 0.842 GB, free: 37.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003743/0.7663, allocations: 375.6 kB / 0.8423 GB, free: 37.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001852/0.7665, allocations: 28.84 kB / 0.8424 GB, free: 37.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002782/0.7668, allocations: 35.97 kB / 0.8424 GB, free: 37.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.7678, allocations: 1.333 MB / 0.8437 GB, free: 35.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.7678, allocations: 2.25 kB / 0.8437 GB, free: 35.91 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006215/0.774, allocations: 2.923 MB / 0.8466 GB, free: 32.95 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007638/0.7749, allocations: 295.8 kB / 0.8468 GB, free: 32.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002531/0.7751, allocations: 39.97 kB / 0.8469 GB, free: 32.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.7763, allocations: 83.89 kB / 0.847 GB, free: 32.52 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004076/0.7767, allocations: 128.8 kB / 0.8471 GB, free: 32.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/0.7768, allocations: 39.98 kB / 0.8471 GB, free: 32.35 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006123/0.7775, allocations: 382.8 kB / 0.8475 GB, free: 31.98 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7775, allocations: 0 / 0.8475 GB, free: 31.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001656/0.7791, allocations: 408 kB / 0.8479 GB, free: 31.58 MB / 442.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.0004875/0.7797, allocations: 214 kB / 0.8481 GB, free: 31.36 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0069/0.7866, allocations: 2.539 MB / 0.8506 GB, free: 28.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.7866, allocations: 4.125 kB / 0.8506 GB, free: 28.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002607/0.7892, allocations: 1.206 MB / 0.8517 GB, free: 27.54 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00159/0.7909, allocations: 171.1 kB / 0.8519 GB, free: 27.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007224/0.7981, allocations: 3.438 MB / 0.8553 GB, free: 23.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008888/0.7991, allocations: 1.237 MB / 0.8565 GB, free: 22.66 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001425/0.8005, allocations: 276.2 kB / 0.8567 GB, free: 22.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000524/0.8011, allocations: 75.42 kB / 0.8568 GB, free: 22.32 MB / 442.7 MB Notification: Performance of SimCode: time 1.192e-06/0.8011, allocations: 0 / 0.8568 GB, free: 22.32 MB / 442.7 MB Notification: Performance of Templates: time 0.0397/0.8408, allocations: 16.61 MB / 0.873 GB, free: 5.836 MB / 442.7 MB