Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001417/0.001417, allocations: 184.5 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.786/1.786, allocations: 194.5 MB / 211.6 MB, free: 7.711 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.00184/0.00184, allocations: 112.6 kB / 256.9 MB, free: 10.34 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.2406/0.2406, allocations: 38.01 MB / 340.1 MB, free: 13.41 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004457/0.0004459, allocations: 20.17 kB / 403.8 MB, free: 55.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06847/0.06894, allocations: 53.23 MB / 457 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Fault): time 0.006519/0.0755, allocations: 6.744 MB / 463.8 MB, free: 3.621 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002711/0.07823, allocations: 1.899 MB / 465.7 MB, free: 1.715 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003794/0.07863, allocations: 35.75 kB / 465.7 MB, free: 1.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003824/0.07903, allocations: 151 kB / 465.9 MB, free: 1.531 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007708/0.07982, allocations: 390.7 kB / 466.2 MB, free: 1.148 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006075/0.08044, allocations: 271.5 kB / 466.5 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000616/0.08108, allocations: 0.6081 MB / 467.1 MB, free: 280 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003051/0.0814, allocations: 205 kB / 467.3 MB, free: 72 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006045/0.08202, allocations: 386.6 kB / 467.7 MB, free: 15.69 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006312/0.08267, allocations: 378.7 kB / 468.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.08279, allocations: 32 kB / 468.1 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.08294, allocations: 39.94 kB / 468.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003764/0.08333, allocations: 283.3 kB / 468.4 MB, free: 14.97 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.08357, allocations: 173.3 kB / 468.6 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008618/0.08445, allocations: 0.6741 MB / 469.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.012e-06/0.08446, allocations: 0 / 469.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.08448, allocations: 0 / 469.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.08449, allocations: 0 / 469.2 MB, free: 14.12 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002208/0.08672, allocations: 1.04 MB / 470.3 MB, free: 13.02 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.08677, allocations: 12.02 kB / 470.3 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.08697, allocations: 86.97 kB / 470.4 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.08811, allocations: 0.5484 MB / 470.9 MB, free: 12.33 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.193e-05/0.08821, allocations: 61.19 kB / 471 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/0.08838, allocations: 67.98 kB / 471.1 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/0.0901, allocations: 0.8241 MB / 471.9 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.09014, allocations: 3.953 kB / 471.9 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.869e-05/0.09024, allocations: 31.98 kB / 471.9 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002314/0.09048, allocations: 57.25 kB / 472 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.09194, allocations: 0.6179 MB / 472.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00533/0.09728, allocations: 2.986 MB / 475.6 MB, free: 7.527 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.0988, allocations: 0.9292 MB / 476.5 MB, free: 6.516 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.239e-05/0.09887, allocations: 16.48 kB / 476.5 MB, free: 6.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/0.1001, allocations: 0.6233 MB / 477.1 MB, free: 5.848 MB / 314.7 MB Notification: Performance of pre-optimization done (n=81): time 3.578e-06/0.1001, allocations: 0 / 477.1 MB, free: 5.848 MB / 314.7 MB Notification: Performance of matching and sorting (n=82): time 0.005936/0.106, allocations: 2.779 MB / 479.9 MB, free: 2.891 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.1062, allocations: 204.6 kB / 480.1 MB, free: 2.648 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007346/0.107, allocations: 493.9 kB / 480.6 MB, free: 2.156 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.619e-05/0.1071, allocations: 45.7 kB / 480.6 MB, free: 2.105 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003308/0.1074, allocations: 340.2 kB / 481 MB, free: 1.766 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002704/0.1077, allocations: 236.9 kB / 481.2 MB, free: 1.531 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.083e-05/0.1078, allocations: 24.03 kB / 481.2 MB, free: 1.508 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002445/0.108, allocations: 382.7 kB / 481.6 MB, free: 1.125 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007416/0.1088, allocations: 321.8 kB / 481.9 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009352/0.1097, allocations: 0.4943 MB / 482.4 MB, free: 256 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000818/0.1106, allocations: 394.2 kB / 482.8 MB, free: 15.86 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1106, allocations: 4 kB / 482.8 MB, free: 15.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002455/0.113, allocations: 1.083 MB / 483.9 MB, free: 14.74 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.444e-05/0.1131, allocations: 63.39 kB / 484 MB, free: 14.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.1131, allocations: 4 kB / 484 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006655/0.1138, allocations: 149.9 kB / 484.1 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.1149, allocations: 211.7 kB / 484.3 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004139/0.1191, allocations: 3.123 MB / 487.4 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005843/0.1197, allocations: 47.97 kB / 487.5 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.264e-05/0.1198, allocations: 36 kB / 487.5 MB, free: 10.83 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 64 (system.initime,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pg.t0,fault_Ab.fault_pg.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch1.switch_2.arc,switch1.switch_2.arc,$PRE.switch1.switch_2.open,switch1.switch_2.open,switch1.switch_2.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.switch2.switch_2.arc,switch2.switch_2.arc,$PRE.switch2.switch_2.open,switch2.switch_2.open,switch2.switch_2.closed,$PRE.fault_Ab.t_zero,fault_Ab.t_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,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pg.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * 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: 2 * Mixed (continuous/discrete) equation systems: 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006074/0.1204, allocations: 358.1 kB / 487.9 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.1206, allocations: 75.16 kB / 487.9 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002318/0.1229, allocations: 1.039 MB / 489 MB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.123, allocations: 11.98 kB / 489 MB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.152e-06/0.123, allocations: 0 / 489 MB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.123, allocations: 3.984 kB / 489 MB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004123/0.1271, allocations: 1.944 MB / 490.9 MB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.62e-06/0.1272, allocations: 0 / 490.9 MB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008702/0.128, allocations: 159.9 kB / 491.1 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008361/0.1289, allocations: 173.4 kB / 491.3 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.758e-05/0.129, allocations: 23.98 kB / 491.3 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004099/0.1331, allocations: 3.115 MB / 494.4 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.37e-06/0.1331, allocations: 4.188 kB / 494.4 MB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003418/0.1366, allocations: 1.617 MB / 496 MB, free: 1.867 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003972/0.137, allocations: 200.2 kB / 496.2 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.1372, allocations: 35.98 kB / 496.3 MB, free: 1.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005108/0.1377, allocations: 39.95 kB / 496.3 MB, free: 1.578 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002521/0.1379, allocations: 88.48 kB / 496.4 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.184e-05/0.1381, allocations: 27.98 kB / 496.4 MB, free: 1.465 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005239/0.1386, allocations: 334.8 kB / 496.7 MB, free: 1.137 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.23e-07/0.1386, allocations: 0 / 496.7 MB, free: 1.137 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009063/0.1395, allocations: 212 kB / 496.9 MB, free: 0.9297 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (line.i1[1],line.i1[2],line.i2[1],line.i2[2]) * Number of discrete variables: 43 (switch1.switch_1.closed,switch1.switch_2.closed,switch2.switch_1.closed,switch2.switch_2.closed,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,relay1.y[1],relay1.y[2],relay1.cnt,relay2.y[1],relay2.y[2],relay2.cnt,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_2.arc,switch1.switch_2.open,switch2.switch_1.arc,switch2.switch_1.open,switch2.switch_2.arc,switch2.switch_2.open,fault_Ab.t_zero,fault_Ab.v_pos,fault_Ab.first,fault_Ab.fault_pp.on,fault_Ab.fault_pp.t0,fault_Ab.fault_pg.on,fault_Ab.fault_pg.t0,system.initime) * Number of discrete states: 17 (fault_Ab.t_zero,fault_Ab.fault_pp.on,fault_Ab.fault_pg.on,fault_Ab.v_pos,fault_Ab.first,relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_2.open,switch2.switch_1.open,relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_2.open,switch1.switch_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002558/0.1398, allocations: 155 kB / 497.1 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002699/0.1425, allocations: 1.228 MB / 498.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.107e-06/0.1425, allocations: 0 / 498.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/0.1445, allocations: 0.8669 MB / 499.2 MB, free: 14.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007913/0.1453, allocations: 138 kB / 499.3 MB, free: 14.44 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004337/0.1496, allocations: 2.099 MB / 0.4897 GB, free: 12.3 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008695/0.1505, allocations: 1.001 MB / 0.4906 GB, free: 11.28 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006082/0.1512, allocations: 146 kB / 0.4908 GB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/0.1514, allocations: 51.44 kB / 0.4908 GB, free: 11.08 MB / 346.7 MB Notification: Performance of SimCode: time 1.598e-06/0.1514, allocations: 0 / 0.4908 GB, free: 11.08 MB / 346.7 MB Notification: Performance of Templates: time 0.02196/0.1734, allocations: 8.905 MB / 0.4995 GB, free: 2.199 MB / 346.7 MB