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.00138/0.00138, allocations: 183.3 kB / 16.38 MB, free: 5.598 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 1.732/1.732, allocations: 194.5 MB / 211.6 MB, free: 7.715 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001887/0.001886, allocations: 112.7 kB / 256.9 MB, free: 10.33 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.2343/0.2343, allocations: 38 MB / 340.1 MB, free: 13.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004529/0.0004531, allocations: 14.94 kB / 403.8 MB, free: 55.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06736/0.06784, allocations: 53.23 MB / 457 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Fault): time 0.00704/0.07492, allocations: 7.017 MB / 464 MB, free: 3.371 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003743/0.07869, allocations: 2.495 MB / 466.5 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003798/0.07909, allocations: 35.75 kB / 466.6 MB, free: 0.832 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004343/0.07954, allocations: 179 kB / 466.7 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001046/0.08062, allocations: 0.5024 MB / 467.2 MB, free: 156 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.08168, allocations: 407.1 kB / 467.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.08275, allocations: 0.7498 MB / 468.4 MB, free: 15 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001882/0.08465, allocations: 0.9684 MB / 469.4 MB, free: 14 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000722/0.08539, allocations: 462.4 kB / 469.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008298/0.08624, allocations: 0.5609 MB / 470.4 MB, free: 12.98 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001499/0.08641, allocations: 52 kB / 470.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008621/0.08728, allocations: 451.3 kB / 470.9 MB, free: 12.49 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006322/0.08793, allocations: 490.8 kB / 471.3 MB, free: 12.01 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002995/0.08824, allocations: 233.1 kB / 471.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001468/0.08973, allocations: 1.212 MB / 472.8 MB, free: 10.56 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.08975, allocations: 4 kB / 472.8 MB, free: 10.56 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.896e-06/0.08976, allocations: 4 kB / 472.8 MB, free: 10.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.08978, allocations: 0 / 472.8 MB, free: 10.55 MB / 314.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.003189/0.09298, allocations: 1.45 MB / 474.2 MB, free: 9.031 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.09303, allocations: 16.02 kB / 474.3 MB, free: 9.016 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/0.09433, allocations: 194.4 kB / 474.4 MB, free: 8.824 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001457/0.0958, allocations: 0.6813 MB / 475.1 MB, free: 8.102 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/0.09593, allocations: 81.98 kB / 475.2 MB, free: 8.023 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003709/0.09631, allocations: 120 kB / 475.3 MB, free: 7.906 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003312/0.09964, allocations: 1.604 MB / 476.9 MB, free: 6.219 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.447e-05/0.09969, allocations: 3.938 kB / 476.9 MB, free: 6.215 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001457/0.09985, allocations: 43.98 kB / 477 MB, free: 6.172 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002661/0.1001, allocations: 77.95 kB / 477 MB, free: 6.094 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003271/0.1034, allocations: 1.429 MB / 478.5 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01084/0.1143, allocations: 5.79 MB / 484.3 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002639/0.1169, allocations: 1.553 MB / 485.8 MB, free: 13 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.904e-05/0.117, allocations: 20.97 kB / 485.8 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00226/0.1193, allocations: 1.095 MB / 486.9 MB, free: 11.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=153): time 4.508e-06/0.1193, allocations: 0 / 486.9 MB, free: 11.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=154): time 0.009861/0.1292, allocations: 4.952 MB / 491.9 MB, free: 6.703 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001546/0.1294, allocations: 213.2 kB / 492.1 MB, free: 6.453 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009006/0.1303, allocations: 0.5575 MB / 492.7 MB, free: 5.883 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001302/0.1304, allocations: 61.62 kB / 492.7 MB, free: 5.816 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004521/0.1309, allocations: 464.3 kB / 493.2 MB, free: 5.355 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004994/0.1314, allocations: 465.6 kB / 493.6 MB, free: 4.895 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.1315, allocations: 35.98 kB / 493.7 MB, free: 4.859 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002741/0.1318, allocations: 410.7 kB / 494.1 MB, free: 4.449 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001487/0.1333, allocations: 0.6754 MB / 494.7 MB, free: 3.773 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001827/0.1352, allocations: 0.9638 MB / 495.7 MB, free: 2.703 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/0.1369, allocations: 0.8322 MB / 496.5 MB, free: 1.863 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.846e-06/0.1369, allocations: 4 kB / 496.5 MB, free: 1.859 MB / 330.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.007299/0.1442, allocations: 2.792 MB / 499.3 MB, free: 15.04 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.061e-05/0.1443, allocations: 67.25 kB / 499.4 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006054/0.1504, allocations: 2.317 MB / 0.49 GB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004486/0.1549, allocations: 1.079 MB / 0.491 GB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006597/0.1556, allocations: 155.6 kB / 0.4912 GB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.019/0.1746, allocations: 8.679 MB / 0.4996 GB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008859/0.1755, allocations: 91.91 kB / 0.4997 GB, free: 2.504 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.1756, allocations: 52 kB / 0.4998 GB, free: 2.453 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (142): * Single equations (assignments): 136 * Array equations: 3 * 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.0008816/0.1765, allocations: 488.5 kB / 0.5002 GB, free: 1.953 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002685/0.1768, allocations: 98.86 kB / 0.5003 GB, free: 1.855 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003895/0.1807, allocations: 1.842 MB / 0.5021 GB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-05/0.1808, allocations: 35.92 kB / 0.5022 GB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1808, allocations: 0 / 0.5022 GB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.831e-05/0.1808, allocations: 7.938 kB / 0.5022 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007315/0.1882, allocations: 3.312 MB / 0.5054 GB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.844e-06/0.1882, allocations: 0 / 0.5054 GB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002346/0.1905, allocations: 359.7 kB / 0.5057 GB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001461/0.1907, allocations: 32.78 kB / 0.5058 GB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/0.1909, allocations: 35.97 kB / 0.5058 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001344/0.1922, allocations: 1.342 MB / 0.5071 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.643e-06/0.1923, allocations: 4.25 kB / 0.5071 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006102/0.1984, allocations: 2.928 MB / 0.51 GB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006419/0.199, allocations: 299.8 kB / 0.5103 GB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002164/0.1993, allocations: 35.94 kB / 0.5103 GB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007374/0.2, allocations: 71.92 kB / 0.5104 GB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003512/0.2004, allocations: 128.8 kB / 0.5105 GB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.2005, allocations: 39.98 kB / 0.5105 GB, free: 7.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006547/0.2012, allocations: 386.8 kB / 0.5109 GB, free: 6.711 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.14e-07/0.2012, allocations: 4 kB / 0.5109 GB, free: 6.707 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001468/0.2027, allocations: 388 kB / 0.5113 GB, free: 6.328 MB / 362.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_b.closed,switch1.switch_a.closed,switch1.switch_c.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,fault_ab.v_pos,fault_ab.first,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_b.open,switch2.switch_c.open,switch2.switch_a.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,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 (121): * Single equations (assignments): 105 * Array equations: 3 * 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.0003843/0.2031, allocations: 190.9 kB / 0.5115 GB, free: 6.129 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005929/0.209, allocations: 2.495 MB / 0.5139 GB, free: 3.594 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.272e-06/0.2091, allocations: 4.062 kB / 0.5139 GB, free: 3.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002271/0.2113, allocations: 1.206 MB / 0.5151 GB, free: 2.344 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008305/0.2122, allocations: 147 kB / 0.5152 GB, free: 2.203 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006633/0.2189, allocations: 3.416 MB / 0.5186 GB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/0.2201, allocations: 1.237 MB / 0.5198 GB, free: 13.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009936/0.2212, allocations: 272.1 kB / 0.52 GB, free: 13.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003918/0.2216, allocations: 75.42 kB / 0.5201 GB, free: 13.14 MB / 378.7 MB Notification: Performance of SimCode: time 1.437e-06/0.2216, allocations: 0 / 0.5201 GB, free: 13.14 MB / 378.7 MB Notification: Performance of Templates: time 0.2634/0.485, allocations: 16.22 MB / 0.5359 GB, free: 79.45 MB / 378.7 MB