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.002377/0.002382, allocations: 180.7 kB / 8.012 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.145/2.145, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001051/0.001051, allocations: 74.67 kB / 261.8 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2928/0.2928, allocations: 38 MB / 347.7 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.738e-05/1.748e-05, allocations: 4 kB / 409.9 MB, free: 35.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 56.32 MB / 466.2 MB, free: 10.83 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5437/0.6558, allocations: 106.3 MB / 0.559 GB, free: 5.441 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.6561, allocations: 87.33 kB / 0.5591 GB, free: 5.398 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1127/0.7688, allocations: 24.86 MB / 0.5834 GB, free: 236 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.7689, allocations: 0 / 0.5834 GB, free: 236 kB / 378.7 MB Notification: Performance of Transformations before backend: time 7.578e-05/0.769, allocations: 27.94 kB / 0.5834 GB, free: 208 kB / 378.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.004747/0.7737, allocations: 1.39 MB / 0.5848 GB, free: 14.81 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.7738, allocations: 8.031 kB / 0.5848 GB, free: 14.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002054/0.7759, allocations: 198.3 kB / 0.585 GB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005042/0.7809, allocations: 1.202 MB / 0.5862 GB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.7811, allocations: 39.94 kB / 0.5862 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003209/0.7814, allocations: 67.59 kB / 0.5863 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003797/0.7852, allocations: 1.263 MB / 0.5875 GB, free: 12.63 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003813/0.7891, allocations: 1.412 MB / 0.5889 GB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.989e-05/0.7892, allocations: 3.984 kB / 0.5889 GB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001489/0.7894, allocations: 8 kB / 0.5889 GB, free: 11.49 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001512/0.7895, allocations: 69.59 kB / 0.589 GB, free: 11.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01402/0.8036, allocations: 5.496 MB / 0.5943 GB, free: 6.707 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002548/0.8062, allocations: 1.015 MB / 0.5953 GB, free: 6.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001778/0.808, allocations: 0.7806 MB / 0.5961 GB, free: 5.527 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.8081, allocations: 13.25 kB / 0.5961 GB, free: 5.516 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002527/0.8107, allocations: 1.071 MB / 0.5971 GB, free: 4.676 MB / 394.7 MB Notification: Performance of pre-optimization done (n=157): time 8.907e-06/0.8107, allocations: 0 / 0.5971 GB, free: 4.676 MB / 394.7 MB Notification: Performance of matching and sorting (n=158): time 0.009942/0.8207, allocations: 3.416 MB / 0.6005 GB, free: 1.996 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001769/0.8209, allocations: 210.9 kB / 0.6007 GB, free: 1.754 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009116/0.8218, allocations: 445 kB / 0.6011 GB, free: 1.402 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003878/0.8222, allocations: 36.5 kB / 0.6011 GB, free: 1.363 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007707/0.823, allocations: 481.9 kB / 0.6016 GB, free: 0.9766 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001321/0.8244, allocations: 454.6 kB / 0.602 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002335/0.8247, allocations: 4.031 kB / 0.602 GB, free: 0.582 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004064/0.8251, allocations: 379.2 kB / 0.6024 GB, free: 236 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003121/0.8283, allocations: 0.6493 MB / 0.603 GB, free: 15.81 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003857/0.8322, allocations: 0.9084 MB / 0.6039 GB, free: 14.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003602/0.8359, allocations: 0.7664 MB / 0.6047 GB, free: 14.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.824e-05/0.836, allocations: 0 / 0.6047 GB, free: 14.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.01005/0.846, allocations: 2.582 MB / 0.6072 GB, free: 11.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.086e-05/0.8462, allocations: 64.02 kB / 0.6072 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008378/0.8546, allocations: 2.274 MB / 0.6095 GB, free: 9.195 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006146/0.8608, allocations: 1.048 MB / 0.6105 GB, free: 8.145 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.8619, allocations: 151.7 kB / 0.6106 GB, free: 7.996 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02255/0.8845, allocations: 7.935 MB / 0.6184 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.8861, allocations: 59.86 kB / 0.6184 GB, free: 15.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002009/0.8863, allocations: 55.98 kB / 0.6185 GB, free: 15.83 MB / 426.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 () * 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,97.2%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005196/0.8869, allocations: 244.9 kB / 0.6187 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003527/0.8872, allocations: 94.88 kB / 0.6188 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005122/0.8924, allocations: 1.676 MB / 0.6205 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.429e-05/0.8925, allocations: 31.98 kB / 0.6205 GB, free: 13.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.8925, allocations: 4 kB / 0.6205 GB, free: 13.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.249e-05/0.8926, allocations: 7.969 kB / 0.6205 GB, free: 13.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01006/0.9027, allocations: 3.072 MB / 0.6235 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.546e-05/0.9027, allocations: 3.984 kB / 0.6235 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004013/0.9068, allocations: 379.7 kB / 0.6239 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002038/0.907, allocations: 32.78 kB / 0.6239 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000285/0.9073, allocations: 15.98 kB / 0.6239 GB, free: 10.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001382/0.9087, allocations: 1.272 MB / 0.6251 GB, free: 8.805 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.86e-06/0.9087, allocations: 0 / 0.6251 GB, free: 8.805 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006995/0.9157, allocations: 2.758 MB / 0.6278 GB, free: 6.004 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.9168, allocations: 299.8 kB / 0.6281 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002589/0.9171, allocations: 23.92 kB / 0.6281 GB, free: 5.668 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/0.9183, allocations: 59.91 kB / 0.6282 GB, free: 5.609 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004604/0.9188, allocations: 133.1 kB / 0.6283 GB, free: 5.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/0.9189, allocations: 39.98 kB / 0.6284 GB, free: 5.441 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006507/0.9196, allocations: 334.9 kB / 0.6287 GB, free: 5.113 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.9196, allocations: 3.938 kB / 0.6287 GB, free: 5.109 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001956/0.9216, allocations: 355.9 kB / 0.629 GB, free: 4.762 MB / 426.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) * 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.000549/0.9222, allocations: 198.5 kB / 0.6292 GB, free: 4.559 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007483/0.9297, allocations: 2.376 MB / 0.6315 GB, free: 2.152 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.9297, allocations: 0 / 0.6315 GB, free: 2.152 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002704/0.9324, allocations: 1.158 MB / 0.6327 GB, free: 0.9648 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.9337, allocations: 117.9 kB / 0.6328 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007114/0.9409, allocations: 2.499 MB / 0.6352 GB, free: 14.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001343/0.9423, allocations: 1.23 MB / 0.6364 GB, free: 13.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007925/0.9431, allocations: 83.42 kB / 0.6365 GB, free: 12.96 MB / 442.7 MB Notification: Performance of SimCode: time 9.72e-07/0.9431, allocations: 0 / 0.6365 GB, free: 12.96 MB / 442.7 MB Notification: Performance of Templates: time 0.04591/0.989, allocations: 18.56 MB / 0.6546 GB, free: 10.38 MB / 458.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)