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.002649/0.00265, allocations: 360.9 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.657/3.657, 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.003548/0.003548, allocations: 235.8 kB / 452.2 MB, free: 14.52 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.743/0.743, allocations: 76.01 MB / 0.56 GB, free: 177.7 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004587/0.0004588, allocations: 12 kB / 0.6222 GB, free: 114.2 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09035/0.09083, allocations: 53.23 MB / 0.6742 GB, free: 60.96 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4409/0.5318, allocations: 95.19 MB / 0.7672 GB, free: 81.47 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/0.5322, allocations: 95.66 kB / 0.7673 GB, free: 81.47 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06021/0.5924, allocations: 14.91 MB / 0.7818 GB, free: 78.79 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5924, allocations: 0 / 0.7818 GB, free: 78.79 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.835e-05/0.5925, allocations: 18.56 kB / 0.7819 GB, free: 78.79 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.003052/0.5956, allocations: 1.074 MB / 0.7829 GB, free: 78 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.5956, allocations: 7.625 kB / 0.7829 GB, free: 78 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002747/0.5959, allocations: 89.12 kB / 0.783 GB, free: 77.96 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002378/0.5983, allocations: 0.7666 MB / 0.7837 GB, free: 77.53 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.473e-05/0.5984, allocations: 54 kB / 0.7838 GB, free: 77.53 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.5986, allocations: 64.45 kB / 0.7839 GB, free: 77.53 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.6006, allocations: 0.8189 MB / 0.7847 GB, free: 77.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.122e-05/0.6006, allocations: 4 kB / 0.7847 GB, free: 77.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001/0.6007, allocations: 29 kB / 0.7847 GB, free: 77.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.6008, allocations: 15.5 kB / 0.7847 GB, free: 77.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001613/0.6024, allocations: 0.5941 MB / 0.7853 GB, free: 77.1 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005807/0.6082, allocations: 2.976 MB / 0.7882 GB, free: 75.28 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.6096, allocations: 0.6001 MB / 0.7888 GB, free: 75.15 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008299/0.6105, allocations: 404.1 kB / 0.7892 GB, free: 75.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.764e-05/0.6105, allocations: 4.781 kB / 0.7892 GB, free: 75.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001169/0.6117, allocations: 0.6137 MB / 0.7898 GB, free: 74.81 MB / 442.7 MB Notification: Performance of pre-optimization done (n=81): time 3.056e-06/0.6117, allocations: 0 / 0.7898 GB, free: 74.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=82): time 0.006454/0.6182, allocations: 2.515 MB / 0.7922 GB, free: 73.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.98e-05/0.6184, allocations: 207.4 kB / 0.7924 GB, free: 73.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000763/0.6191, allocations: 497.1 kB / 0.7929 GB, free: 73.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000149/0.6193, allocations: 46.77 kB / 0.7929 GB, free: 73.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002661/0.6196, allocations: 342 kB / 0.7933 GB, free: 73.06 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002387/0.6198, allocations: 226.5 kB / 0.7935 GB, free: 72.92 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.47e-05/0.6199, allocations: 19.66 kB / 0.7935 GB, free: 72.92 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.6201, allocations: 389.4 kB / 0.7939 GB, free: 72.58 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007874/0.6208, allocations: 312.2 kB / 0.7942 GB, free: 72.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008815/0.6217, allocations: 0.4952 MB / 0.7947 GB, free: 72.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008212/0.6226, allocations: 395.5 kB / 0.795 GB, free: 72.18 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/0.6226, allocations: 3.844 kB / 0.795 GB, free: 72.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002639/0.6253, allocations: 1.07 MB / 0.7961 GB, free: 71.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.485e-05/0.6253, allocations: 63.02 kB / 0.7961 GB, free: 71.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.6254, allocations: 7.719 kB / 0.7961 GB, free: 71.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007887/0.6262, allocations: 132.6 kB / 0.7963 GB, free: 71.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/0.6278, allocations: 218.3 kB / 0.7965 GB, free: 71.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003552/0.6314, allocations: 3.038 MB / 0.7994 GB, free: 69.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009506/0.6324, allocations: 63.14 kB / 0.7995 GB, free: 69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.6325, allocations: 33.5 kB / 0.7995 GB, free: 69 MB / 442.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.0006735/0.6332, allocations: 358 kB / 0.7999 GB, free: 68.79 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.6334, allocations: 74.94 kB / 0.8 GB, free: 68.75 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002582/0.636, allocations: 0.9915 MB / 0.8009 GB, free: 68.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/0.6361, allocations: 12 kB / 0.8009 GB, free: 68.46 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.6361, allocations: 3.984 kB / 0.8009 GB, free: 68.45 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.6361, allocations: 3.719 kB / 0.8009 GB, free: 68.45 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004388/0.6405, allocations: 1.888 MB / 0.8028 GB, free: 67.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.6405, allocations: 0 / 0.8028 GB, free: 67.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/0.6419, allocations: 153.1 kB / 0.8029 GB, free: 67.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009125/0.6428, allocations: 147.9 kB / 0.8031 GB, free: 67.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001115/0.6429, allocations: 29.97 kB / 0.8031 GB, free: 67.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003317/0.6462, allocations: 3.045 MB / 0.8061 GB, free: 64.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.6463, allocations: 0 / 0.8061 GB, free: 64.91 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003726/0.65, allocations: 1.513 MB / 0.8075 GB, free: 64.45 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004989/0.6506, allocations: 202.4 kB / 0.8077 GB, free: 64.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001807/0.6508, allocations: 27.77 kB / 0.8078 GB, free: 64.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006817/0.6515, allocations: 42.25 kB / 0.8078 GB, free: 64.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002876/0.6518, allocations: 95.41 kB / 0.8079 GB, free: 64.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-05/0.6519, allocations: 31.77 kB / 0.8079 GB, free: 64.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005475/0.6524, allocations: 330.2 kB / 0.8082 GB, free: 64.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6524, allocations: 0 / 0.8082 GB, free: 64.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001012/0.6535, allocations: 219.2 kB / 0.8085 GB, free: 64.09 MB / 442.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_2.closed,switch1.switch_1.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_1.open,switch1.switch_2.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.0003596/0.6538, allocations: 177.8 kB / 0.8086 GB, free: 63.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003006/0.6569, allocations: 1.202 MB / 0.8098 GB, free: 63.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.6569, allocations: 1.062 kB / 0.8098 GB, free: 63.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00235/0.6593, allocations: 0.8529 MB / 0.8106 GB, free: 63.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/0.6607, allocations: 150.4 kB / 0.8108 GB, free: 63.01 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004891/0.6656, allocations: 2.086 MB / 0.8128 GB, free: 61.81 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005707/0.6662, allocations: 1.013 MB / 0.8138 GB, free: 60.98 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000822/0.667, allocations: 148.3 kB / 0.8139 GB, free: 60.92 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002764/0.6673, allocations: 56.45 kB / 0.814 GB, free: 60.91 MB / 442.7 MB Notification: Performance of SimCode: time 2.214e-06/0.6673, allocations: 0 / 0.814 GB, free: 60.91 MB / 442.7 MB Notification: Performance of Templates: time 0.02493/0.6923, allocations: 9.113 MB / 0.8229 GB, free: 53.77 MB / 442.7 MB