Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault") translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001547/0.001547, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.729/1.729, allocations: 194.3 MB / 208.4 MB, free: 6.703 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001775/0.001775, allocations: 108.7 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1644/0.1644, allocations: 37.9 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.256e-05/3.281e-05, allocations: 4 kB / 397.5 MB, free: 1.031 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2757, allocations: 53.23 MB / 450.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4704/0.7462, allocations: 101.9 MB / 0.5397 GB, free: 34.26 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.7465, allocations: 88.16 kB / 0.5398 GB, free: 34.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06488/0.8114, allocations: 25.05 MB / 0.5642 GB, free: 30.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.8114, allocations: 0 / 0.5642 GB, free: 30.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.996e-05/0.8115, allocations: 23.59 kB / 0.5642 GB, free: 30.16 MB / 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.002442/0.8139, allocations: 1.383 MB / 0.5656 GB, free: 29.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.814, allocations: 7.719 kB / 0.5656 GB, free: 29.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.815, allocations: 206.9 kB / 0.5658 GB, free: 29.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002867/0.8179, allocations: 1.207 MB / 0.567 GB, free: 28.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.818, allocations: 77.53 kB / 0.5671 GB, free: 28.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001967/0.8182, allocations: 108 kB / 0.5672 GB, free: 28.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002477/0.8207, allocations: 1.548 MB / 0.5687 GB, free: 27.97 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.613e-05/0.8208, allocations: 11.75 kB / 0.5687 GB, free: 27.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.8209, allocations: 40.84 kB / 0.5687 GB, free: 27.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.126e-05/0.821, allocations: 69.56 kB / 0.5688 GB, free: 27.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.8229, allocations: 1.356 MB / 0.5701 GB, free: 27.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007611/0.8305, allocations: 5.704 MB / 0.5757 GB, free: 24.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.832, allocations: 1.056 MB / 0.5767 GB, free: 24.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000907/0.8329, allocations: 0.8094 MB / 0.5775 GB, free: 24.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.213e-05/0.833, allocations: 8.812 kB / 0.5775 GB, free: 24.26 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001413/0.8344, allocations: 1.1 MB / 0.5786 GB, free: 23.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=157): time 2.905e-06/0.8344, allocations: 0 / 0.5786 GB, free: 23.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=158): time 0.005314/0.8397, allocations: 3.768 MB / 0.5823 GB, free: 22.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.8399, allocations: 212.2 kB / 0.5825 GB, free: 22.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005719/0.8404, allocations: 489.8 kB / 0.5829 GB, free: 22.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.075e-05/0.8405, allocations: 54.52 kB / 0.583 GB, free: 22.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003015/0.8409, allocations: 451.6 kB / 0.5834 GB, free: 22.01 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000292/0.8412, allocations: 476.1 kB / 0.5839 GB, free: 21.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.858e-05/0.8412, allocations: 33.02 kB / 0.5839 GB, free: 21.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.8414, allocations: 416.7 kB / 0.5843 GB, free: 21.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008284/0.8422, allocations: 0.677 MB / 0.585 GB, free: 21.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009668/0.8432, allocations: 0.9527 MB / 0.5859 GB, free: 20.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.8442, allocations: 0.8506 MB / 0.5867 GB, free: 20.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.8442, allocations: 3.625 kB / 0.5867 GB, free: 20.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004863/0.8491, allocations: 2.805 MB / 0.5895 GB, free: 19.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.661e-05/0.8492, allocations: 66.42 kB / 0.5895 GB, free: 19.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003964/0.8532, allocations: 2.366 MB / 0.5918 GB, free: 19.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002993/0.8562, allocations: 1.081 MB / 0.5929 GB, free: 19.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000574/0.8568, allocations: 149 kB / 0.593 GB, free: 19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01163/0.8684, allocations: 8.273 MB / 0.6011 GB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/0.8695, allocations: 99.89 kB / 0.6012 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.707e-05/0.8696, allocations: 52 kB / 0.6013 GB, free: 14.98 MB / 378.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,84.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000365/0.87, allocations: 296.6 kB / 0.6015 GB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002138/0.8702, allocations: 102.8 kB / 0.6016 GB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002664/0.8729, allocations: 1.838 MB / 0.6034 GB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.461e-05/0.8729, allocations: 35.98 kB / 0.6035 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.873, allocations: 0 / 0.6035 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.873, allocations: 11.97 kB / 0.6035 GB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004947/0.8779, allocations: 3.371 MB / 0.6068 GB, free: 9.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.878, allocations: 3.938 kB / 0.6068 GB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001858/0.8799, allocations: 379.6 kB / 0.6071 GB, free: 8.832 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001246/0.88, allocations: 36.84 kB / 0.6072 GB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/0.8801, allocations: 27.98 kB / 0.6072 GB, free: 8.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007185/0.8809, allocations: 1.327 MB / 0.6085 GB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.8809, allocations: 0 / 0.6085 GB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003524/0.8844, allocations: 2.928 MB / 0.6114 GB, free: 4.312 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007069/0.8851, allocations: 295.9 kB / 0.6116 GB, free: 4.004 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.8853, allocations: 40.06 kB / 0.6117 GB, free: 3.965 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006102/0.8859, allocations: 79.91 kB / 0.6118 GB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002914/0.8862, allocations: 132.8 kB / 0.6119 GB, free: 3.758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.984e-05/0.8863, allocations: 47.97 kB / 0.6119 GB, free: 3.711 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004577/0.8868, allocations: 369.5 kB / 0.6123 GB, free: 3.352 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.8868, allocations: 0 / 0.6123 GB, free: 3.352 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001413/0.8882, allocations: 407.9 kB / 0.6127 GB, free: 2.953 MB / 378.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.0003727/0.8886, allocations: 214.2 kB / 0.6129 GB, free: 2.738 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004044/0.8927, allocations: 2.495 MB / 0.6153 GB, free: 212 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.8927, allocations: 0 / 0.6153 GB, free: 212 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001592/0.8943, allocations: 1.199 MB / 0.6165 GB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009232/0.8952, allocations: 145.5 kB / 0.6166 GB, free: 14.83 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004539/0.8998, allocations: 2.468 MB / 0.619 GB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001/0.9008, allocations: 1.234 MB / 0.6202 GB, free: 11.06 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009664/0.9018, allocations: 284 kB / 0.6205 GB, free: 10.78 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003164/0.9021, allocations: 71.44 kB / 0.6206 GB, free: 10.71 MB / 394.7 MB Notification: Performance of SimCode: time 1.132e-06/0.9021, allocations: 4 kB / 0.6206 GB, free: 10.7 MB / 394.7 MB Notification: Performance of Templates: time 0.03204/0.9341, allocations: 16.64 MB / 0.6368 GB, free: 10.05 MB / 410.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)