Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.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.DoublelLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002618/0.002623, allocations: 361.4 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.74/3.74, allocations: 388.9 MB / 406.8 MB, free: 11.89 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.003522/0.003522, allocations: 229.6 kB / 452.2 MB, free: 14.49 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.7413/0.7413, allocations: 76.01 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004536/0.0004538, allocations: 11.98 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09151/0.09199, allocations: 53.23 MB / 0.6742 GB, free: 60.83 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4605/0.5525, allocations: 104.8 MB / 0.7766 GB, free: 81.39 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.5529, allocations: 103.8 kB / 0.7767 GB, free: 81.39 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1067/0.6596, allocations: 24.35 MB / 0.8004 GB, free: 71.79 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.6597, allocations: 0 / 0.8004 GB, free: 71.79 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001178/0.6598, allocations: 27.53 kB / 0.8005 GB, free: 71.78 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.007561/0.6674, allocations: 1.714 MB / 0.8021 GB, free: 70.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.6675, allocations: 8.938 kB / 0.8022 GB, free: 70.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009002/0.6684, allocations: 133.8 kB / 0.8023 GB, free: 70.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006954/0.6753, allocations: 1.798 MB / 0.804 GB, free: 69.79 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.6755, allocations: 81.16 kB / 0.8041 GB, free: 69.78 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005967/0.6761, allocations: 124.5 kB / 0.8042 GB, free: 69.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00438/0.6805, allocations: 1.779 MB / 0.806 GB, free: 69.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.782e-05/0.6806, allocations: 0 / 0.806 GB, free: 69.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002073/0.6808, allocations: 36.22 kB / 0.806 GB, free: 69.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.715e-05/0.6809, allocations: 35.8 kB / 0.806 GB, free: 69.19 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003066/0.684, allocations: 1.123 MB / 0.8071 GB, free: 68.98 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01383/0.6979, allocations: 5.805 MB / 0.8128 GB, free: 64.63 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00254/0.7005, allocations: 1.258 MB / 0.814 GB, free: 63.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00215/0.7027, allocations: 0.9946 MB / 0.815 GB, free: 63.08 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001156/0.7028, allocations: 13 kB / 0.815 GB, free: 63.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002724/0.7055, allocations: 1.36 MB / 0.8163 GB, free: 61.98 MB / 442.7 MB Notification: Performance of pre-optimization done (n=101): time 4.238e-06/0.7056, allocations: 0 / 0.8163 GB, free: 61.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=105): time 0.03721/0.7428, allocations: 9.127 MB / 0.8253 GB, free: 54.12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.743, allocations: 204.8 kB / 0.8255 GB, free: 53.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00129/0.7443, allocations: 0.7477 MB / 0.8262 GB, free: 53.29 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004053/0.7447, allocations: 55.58 kB / 0.8262 GB, free: 53.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004152/0.7451, allocations: 493.1 kB / 0.8267 GB, free: 52.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005518/0.7457, allocations: 415.3 kB / 0.8271 GB, free: 52.58 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001687/0.7459, allocations: 30.38 kB / 0.8271 GB, free: 52.57 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.746, allocations: 364.2 kB / 0.8275 GB, free: 52.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002198/0.7482, allocations: 1.019 MB / 0.8285 GB, free: 51.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002477/0.7507, allocations: 1.3 MB / 0.8297 GB, free: 50.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04441/0.7951, allocations: 8.606 MB / 0.8381 GB, free: 41.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.387e-06/0.7952, allocations: 7.938 kB / 0.8382 GB, free: 41.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01559/0.8108, allocations: 5.141 MB / 0.8432 GB, free: 36.72 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.131e-05/0.8109, allocations: 59.41 kB / 0.8432 GB, free: 36.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.112e-05/0.8109, allocations: 8 kB / 0.8432 GB, free: 36.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02414/0.8351, allocations: 6.481 MB / 0.8496 GB, free: 30.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/0.8363, allocations: 179.7 kB / 0.8497 GB, free: 29.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03543/0.8718, allocations: 15.62 MB / 0.865 GB, free: 14.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/0.8734, allocations: 91.81 kB / 0.8651 GB, free: 14.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003038/0.8737, allocations: 162.5 kB / 0.8652 GB, free: 13.96 MB / 442.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: $DER.trafo.i1 = 0.0 $DER.line.i[1,1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 41 (system.initime,$PRE.ab.fault_pp.t0,ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,trafo.tap_2_internal,trafo.tap_1_internal,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.ab.t_zero,ab.t_zero,$PRE.ab.v_pos,ab.v_pos,$PRE.ab.first,ab.first,$PRE.ab.fault_pp.on,ab.fault_pp.on,$PRE.relay1.y[1],relay1.y[1],$PRE.relay2.y[1],relay2.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(29,10.6%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001054/0.8748, allocations: 448.8 kB / 0.8657 GB, free: 13.51 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003101/0.8751, allocations: 102.8 kB / 0.8658 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02139/0.8965, allocations: 5.117 MB / 0.8708 GB, free: 8.238 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/0.8965, allocations: 11.98 kB / 0.8708 GB, free: 8.227 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.8966, allocations: 4 kB / 0.8708 GB, free: 8.223 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.868e-05/0.8966, allocations: 3.984 kB / 0.8708 GB, free: 8.219 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02575/0.9224, allocations: 6.975 MB / 0.8776 GB, free: 1.152 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.899e-05/0.9224, allocations: 0 / 0.8776 GB, free: 1.152 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.9236, allocations: 127.8 kB / 0.8777 GB, free: 1.027 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03664/0.9602, allocations: 6.65 MB / 0.8842 GB, free: 10.35 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007396/0.961, allocations: 219.8 kB / 0.8844 GB, free: 10.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0441/1.005, allocations: 20.86 MB / 0.9048 GB, free: 4.609 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/1.005, allocations: 4 kB / 0.9048 GB, free: 4.605 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3239/1.329, allocations: 6.086 MB / 0.9107 GB, free: 133 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001334/1.33, allocations: 414.8 kB / 0.9111 GB, free: 132.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006873/1.331, allocations: 183.8 kB / 0.9113 GB, free: 132.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/1.333, allocations: 77.86 kB / 0.9114 GB, free: 132.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009989/1.334, allocations: 190.6 kB / 0.9116 GB, free: 132.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000356/1.334, allocations: 149.3 kB / 0.9117 GB, free: 132.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001021/1.335, allocations: 0.4997 MB / 0.9122 GB, free: 132.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.335, allocations: 4.688 kB / 0.9122 GB, free: 132.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002752/1.338, allocations: 0.5261 MB / 0.9127 GB, free: 132.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],lineF.v[1,1],lineF.v[1,2],lineF.v[1,3],lineF.v[2,1],lineF.v[2,2],lineF.v[2,3],lineF.i[1,1],lineF.i[1,2],lineF.i[1,3],lineF.i[1,4],lineF.i[2,1],lineF.i[2,2],lineF.i[2,3],lineF.i[2,4],lineF.iF[1],lineF.iF[2]) * Number of discrete variables: 26 (switch1.switch_1.closed,switch2.switch_1.closed,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_1.arc,switch1.switch_1.open,switch2.switch_1.arc,switch2.switch_1.open,ab.t_zero,ab.v_pos,ab.first,ab.fault_pp.on,ab.fault_pp.t0,relay1.y[1],relay1.cnt,relay2.y[1],relay2.cnt,system.initime) * Number of discrete states: 12 (relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {6,6} * Without analytic Jacobian: 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: 1 {16 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005947/1.338, allocations: 216.8 kB / 0.9129 GB, free: 132.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009446/1.348, allocations: 3.072 MB / 0.9159 GB, free: 132.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/1.348, allocations: 0 / 0.9159 GB, free: 132.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008016/1.356, allocations: 2.412 MB / 0.9183 GB, free: 131.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/1.358, allocations: 252.1 kB / 0.9185 GB, free: 131.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/1.371, allocations: 5.73 MB / 0.9241 GB, free: 129.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0013/1.373, allocations: 1.252 MB / 0.9253 GB, free: 128.8 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001304/1.374, allocations: 204.1 kB / 0.9255 GB, free: 128.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003504/1.375, allocations: 73.36 kB / 0.9256 GB, free: 128.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.373e-06/1.375, allocations: 0 / 0.9256 GB, free: 128.8 MB / 474.7 MB Notification: Performance of Templates: time 0.08146/1.456, allocations: 37.08 MB / 0.9618 GB, free: 123.9 MB / 474.7 MB