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.002426/0.00243, allocations: 353.2 kB / 16.57 MB, free: 5.59 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.474/3.474, allocations: 388.9 MB / 406.2 MB, free: 12 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.003506/0.003505, allocations: 227.8 kB / 451.6 MB, free: 14.59 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.6556/0.6556, allocations: 76.01 MB / 0.5594 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004694/0.0004695, allocations: 12 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06618/0.06667, allocations: 53.24 MB / 0.6736 GB, free: 60.82 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Fault): time 0.006603/0.07332, allocations: 7.044 MB / 0.6805 GB, free: 53.74 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002674/0.07601, allocations: 1.864 MB / 0.6823 GB, free: 51.87 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000365/0.0764, allocations: 35.75 kB / 0.6823 GB, free: 51.84 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003644/0.07678, allocations: 139 kB / 0.6825 GB, free: 51.7 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008647/0.07766, allocations: 469.4 kB / 0.6829 GB, free: 51.24 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005986/0.07828, allocations: 287.4 kB / 0.6832 GB, free: 50.96 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001051/0.07935, allocations: 1.367 MB / 0.6845 GB, free: 49.59 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003123/0.07967, allocations: 212.8 kB / 0.6847 GB, free: 49.37 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004564/0.08015, allocations: 414.1 kB / 0.6851 GB, free: 48.96 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006535/0.08082, allocations: 0.5334 MB / 0.6857 GB, free: 48.43 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 9.87e-05/0.08093, allocations: 32 kB / 0.6857 GB, free: 48.4 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001293/0.08108, allocations: 36 kB / 0.6857 GB, free: 48.36 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002844/0.08137, allocations: 315.1 kB / 0.686 GB, free: 48.05 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001608/0.08155, allocations: 165.3 kB / 0.6862 GB, free: 47.89 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006121/0.08217, allocations: 0.6858 MB / 0.6868 GB, free: 47.2 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.572e-06/0.08219, allocations: 0 / 0.6868 GB, free: 47.2 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.691e-06/0.08221, allocations: 4 kB / 0.6869 GB, free: 47.2 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.08223, allocations: 0 / 0.6869 GB, free: 47.2 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.001792/0.08403, allocations: 1.032 MB / 0.6879 GB, free: 46.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.08407, allocations: 12.83 kB / 0.6879 GB, free: 46.09 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.08424, allocations: 90.95 kB / 0.688 GB, free: 46 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009288/0.08518, allocations: 0.5485 MB / 0.6885 GB, free: 45.41 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.318e-05/0.08526, allocations: 53.31 kB / 0.6885 GB, free: 45.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.08539, allocations: 60 kB / 0.6886 GB, free: 45.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.08676, allocations: 0.8397 MB / 0.6894 GB, free: 44.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/0.08679, allocations: 3.938 kB / 0.6894 GB, free: 44.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-05/0.08688, allocations: 31.92 kB / 0.6895 GB, free: 44.38 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001947/0.08709, allocations: 53.27 kB / 0.6895 GB, free: 44.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.0883, allocations: 0.6217 MB / 0.6901 GB, free: 43.7 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004082/0.0924, allocations: 2.99 MB / 0.693 GB, free: 40.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.09355, allocations: 0.923 MB / 0.6939 GB, free: 39.59 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006829/0.09425, allocations: 423.2 kB / 0.6943 GB, free: 39.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.119e-05/0.09431, allocations: 12.56 kB / 0.6943 GB, free: 39.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009485/0.09527, allocations: 0.6311 MB / 0.695 GB, free: 38.49 MB / 442.7 MB Notification: Performance of pre-optimization done (n=81): time 3.542e-06/0.09529, allocations: 0 / 0.695 GB, free: 38.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=82): time 0.004782/0.1001, allocations: 2.611 MB / 0.6975 GB, free: 35.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.471e-05/0.1002, allocations: 204.6 kB / 0.6977 GB, free: 35.51 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005375/0.1007, allocations: 485.9 kB / 0.6982 GB, free: 35.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.798e-05/0.1008, allocations: 53.69 kB / 0.6982 GB, free: 34.96 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002174/0.101, allocations: 344.1 kB / 0.6986 GB, free: 34.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.1012, allocations: 232.9 kB / 0.6988 GB, free: 34.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-05/0.1013, allocations: 20 kB / 0.6988 GB, free: 34.37 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1014, allocations: 386.8 kB / 0.6992 GB, free: 33.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006233/0.1021, allocations: 317.8 kB / 0.6995 GB, free: 33.67 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007172/0.1028, allocations: 0.5021 MB / 0.7 GB, free: 33.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006514/0.1035, allocations: 398.2 kB / 0.7003 GB, free: 32.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.778e-06/0.1035, allocations: 0 / 0.7003 GB, free: 32.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002029/0.1055, allocations: 1.095 MB / 0.7014 GB, free: 31.58 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.1056, allocations: 71.28 kB / 0.7015 GB, free: 31.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.1056, allocations: 4 kB / 0.7015 GB, free: 31.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000579/0.1062, allocations: 137.7 kB / 0.7016 GB, free: 31.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009936/0.1072, allocations: 207.7 kB / 0.7018 GB, free: 31.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002905/0.1101, allocations: 3.091 MB / 0.7048 GB, free: 27.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005001/0.1106, allocations: 55.89 kB / 0.7049 GB, free: 27.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.267e-05/0.1107, allocations: 36 kB / 0.7049 GB, free: 27.71 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.0004058/0.1111, allocations: 354.3 kB / 0.7053 GB, free: 27.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.1113, allocations: 79.09 kB / 0.7053 GB, free: 27.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001904/0.1132, allocations: 1.035 MB / 0.7063 GB, free: 26.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.1133, allocations: 12 kB / 0.7063 GB, free: 26.19 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.148e-06/0.1133, allocations: 0 / 0.7063 GB, free: 26.19 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.1133, allocations: 3.984 kB / 0.7064 GB, free: 26.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003275/0.1166, allocations: 1.933 MB / 0.7082 GB, free: 24.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.237e-06/0.1166, allocations: 3.953 kB / 0.7082 GB, free: 24.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008204/0.1174, allocations: 159.8 kB / 0.7084 GB, free: 24.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000738/0.1182, allocations: 169.4 kB / 0.7086 GB, free: 23.84 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.359e-05/0.1183, allocations: 23.98 kB / 0.7086 GB, free: 23.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002728/0.121, allocations: 3.091 MB / 0.7116 GB, free: 20.46 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.757e-06/0.121, allocations: 0 / 0.7116 GB, free: 20.46 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002658/0.1237, allocations: 1.583 MB / 0.7131 GB, free: 18.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003125/0.124, allocations: 216.2 kB / 0.7134 GB, free: 18.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.1242, allocations: 27.98 kB / 0.7134 GB, free: 18.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004792/0.1247, allocations: 47.91 kB / 0.7134 GB, free: 18.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002237/0.1249, allocations: 88.52 kB / 0.7135 GB, free: 18.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.246e-05/0.125, allocations: 31.94 kB / 0.7135 GB, free: 18.41 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003722/0.1254, allocations: 326.9 kB / 0.7139 GB, free: 18.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.07e-07/0.1254, allocations: 0 / 0.7139 GB, free: 18.09 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000751/0.1262, allocations: 216 kB / 0.7141 GB, free: 17.88 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_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.0001824/0.1264, allocations: 152 kB / 0.7142 GB, free: 17.72 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002177/0.1286, allocations: 1.224 MB / 0.7154 GB, free: 16.45 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.999e-06/0.1286, allocations: 0 / 0.7154 GB, free: 16.45 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00161/0.1302, allocations: 0.8869 MB / 0.7163 GB, free: 15.51 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009117/0.1311, allocations: 142.1 kB / 0.7164 GB, free: 15.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.1346, allocations: 2.095 MB / 0.7184 GB, free: 13.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004931/0.1351, allocations: 1.005 MB / 0.7194 GB, free: 12.21 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005462/0.1357, allocations: 145.9 kB / 0.7196 GB, free: 12.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001987/0.1359, allocations: 51.44 kB / 0.7196 GB, free: 12.02 MB / 442.7 MB Notification: Performance of SimCode: time 1.307e-06/0.1359, allocations: 0 / 0.7196 GB, free: 12.02 MB / 442.7 MB Notification: Performance of Templates: time 0.01862/0.1545, allocations: 8.928 MB / 0.7283 GB, free: 3.121 MB / 442.7 MB