Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault") translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001517/0.001517, allocations: 182.8 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.052/2.052, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001122/0.001122, allocations: 102.7 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2613/0.2613, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000451/0.0004511, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.107, allocations: 56.33 MB / 479.1 MB, free: 2.027 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4963/0.6033, allocations: 107 MB / 0.5723 GB, free: 8.992 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000353/0.6037, allocations: 94.5 kB / 0.5724 GB, free: 8.941 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1141/0.7178, allocations: 25.09 MB / 0.5969 GB, free: 3.281 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.018e-06/0.7179, allocations: 0 / 0.5969 GB, free: 3.281 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.873e-05/0.718, allocations: 24 kB / 0.597 GB, free: 3.258 MB / 394.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.005576/0.7236, allocations: 1.486 MB / 0.5984 GB, free: 1.773 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.7236, allocations: 12.03 kB / 0.5984 GB, free: 1.762 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002116/0.7258, allocations: 190.4 kB / 0.5986 GB, free: 1.574 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005076/0.7309, allocations: 1.225 MB / 0.5998 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.7311, allocations: 78.31 kB / 0.5999 GB, free: 484 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003677/0.7314, allocations: 106.4 kB / 0.6 GB, free: 408 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004439/0.7359, allocations: 1.574 MB / 0.6015 GB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.151e-05/0.736, allocations: 11.25 kB / 0.6015 GB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001793/0.7362, allocations: 46.67 kB / 0.6016 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/0.7364, allocations: 69.72 kB / 0.6016 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004294/0.7407, allocations: 1.394 MB / 0.603 GB, free: 14.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01474/0.7555, allocations: 5.685 MB / 0.6086 GB, free: 9.258 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002817/0.7584, allocations: 1.076 MB / 0.6096 GB, free: 8.516 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001525/0.7586, allocations: 21.05 kB / 0.6096 GB, free: 8.496 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002782/0.7614, allocations: 1.11 MB / 0.6107 GB, free: 7.633 MB / 410.7 MB Notification: Performance of pre-optimization done (n=157): time 5.35e-06/0.7614, allocations: 4 kB / 0.6107 GB, free: 7.629 MB / 410.7 MB Notification: Performance of matching and sorting (n=158): time 0.01275/0.7742, allocations: 5.06 MB / 0.6157 GB, free: 3.566 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001621/0.7744, allocations: 223.7 kB / 0.6159 GB, free: 3.312 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009773/0.7754, allocations: 491.8 kB / 0.6163 GB, free: 2.922 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003329/0.7757, allocations: 59.95 kB / 0.6164 GB, free: 2.879 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004565/0.7762, allocations: 476.1 kB / 0.6168 GB, free: 2.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007916/0.777, allocations: 484.5 kB / 0.6173 GB, free: 2.086 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.7772, allocations: 30.31 kB / 0.6173 GB, free: 2.078 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002197/0.7774, allocations: 378.8 kB / 0.6177 GB, free: 1.715 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00192/0.7794, allocations: 0.691 MB / 0.6184 GB, free: 1.023 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002299/0.7817, allocations: 0.9643 MB / 0.6193 GB, free: 15.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002362/0.7841, allocations: 0.8521 MB / 0.6201 GB, free: 15.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-05/0.7842, allocations: 4 kB / 0.6201 GB, free: 15.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.01028/0.7944, allocations: 2.804 MB / 0.6229 GB, free: 12.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.663e-05/0.7946, allocations: 59.41 kB / 0.6229 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008787/0.8034, allocations: 2.38 MB / 0.6253 GB, free: 9.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006383/0.8098, allocations: 1.087 MB / 0.6263 GB, free: 8.734 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.8109, allocations: 155.7 kB / 0.6265 GB, free: 8.582 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02514/0.8361, allocations: 8.69 MB / 0.635 GB, free: 15.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/0.8378, allocations: 99.89 kB / 0.6351 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001883/0.838, allocations: 52 kB / 0.6351 GB, free: 15.59 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (140): * Single equations (assignments): 133 * Array equations: 4 * 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.001151/0.8392, allocations: 480.8 kB / 0.6356 GB, free: 15.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004411/0.8396, allocations: 106.7 kB / 0.6357 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005196/0.8448, allocations: 1.857 MB / 0.6375 GB, free: 13.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.307e-05/0.845, allocations: 35.98 kB / 0.6375 GB, free: 13.08 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.845, allocations: 0 / 0.6375 GB, free: 13.08 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.985e-05/0.845, allocations: 3.984 kB / 0.6375 GB, free: 13.08 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.8557, allocations: 3.402 MB / 0.6408 GB, free: 9.594 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.512e-05/0.8558, allocations: 4 kB / 0.6408 GB, free: 9.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004099/0.8599, allocations: 379.6 kB / 0.6412 GB, free: 9.219 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002051/0.8602, allocations: 28.84 kB / 0.6412 GB, free: 9.188 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002318/0.8604, allocations: 43.91 kB / 0.6413 GB, free: 9.145 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001327/0.8618, allocations: 1.342 MB / 0.6426 GB, free: 7.672 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.8618, allocations: 8 kB / 0.6426 GB, free: 7.664 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007329/0.8691, allocations: 2.944 MB / 0.6455 GB, free: 4.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009299/0.8701, allocations: 295.8 kB / 0.6458 GB, free: 4.352 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002701/0.8704, allocations: 39.98 kB / 0.6458 GB, free: 4.312 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/0.8716, allocations: 71.91 kB / 0.6459 GB, free: 4.242 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004697/0.8721, allocations: 140.8 kB / 0.646 GB, free: 4.102 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/0.8722, allocations: 43.97 kB / 0.646 GB, free: 4.059 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007406/0.873, allocations: 378.8 kB / 0.6464 GB, free: 3.688 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.873, allocations: 0 / 0.6464 GB, free: 3.688 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001832/0.8748, allocations: 403.9 kB / 0.6468 GB, free: 3.293 MB / 442.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_c.closed,switch1.switch_b.closed,switch1.switch_a.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,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_a.open,switch2.switch_b.open,switch2.switch_c.open,fault_ab.v_pos,fault_ab.first,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 (122): * Single equations (assignments): 105 * Array equations: 4 * 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.0005407/0.8754, allocations: 222.9 kB / 0.647 GB, free: 3.066 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00794/0.8834, allocations: 2.529 MB / 0.6495 GB, free: 0.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.351e-06/0.8834, allocations: 0.5 kB / 0.6495 GB, free: 0.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002802/0.8862, allocations: 1.21 MB / 0.6506 GB, free: 15.25 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.8876, allocations: 145.2 kB / 0.6508 GB, free: 15.11 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008323/0.8959, allocations: 3.514 MB / 0.6542 GB, free: 11.55 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00123/0.8972, allocations: 1.23 MB / 0.6554 GB, free: 10.29 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007658/0.898, allocations: 83.42 kB / 0.6555 GB, free: 10.21 MB / 458.7 MB Notification: Performance of SimCode: time 1.082e-06/0.898, allocations: 0 / 0.6555 GB, free: 10.21 MB / 458.7 MB Notification: Performance of Templates: time 0.04091/0.9389, allocations: 18.71 MB / 0.6738 GB, free: 7.484 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)