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.001434/0.001434, allocations: 179.4 kB / 17.4 MB, free: 4.422 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.434/1.434, allocations: 194.5 MB / 212.6 MB, free: 2.965 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.001637/0.001637, allocations: 120.8 kB / 257.9 MB, free: 4.277 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1774/0.1774, allocations: 38 MB / 341.1 MB, free: 1.223 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003299/0.00033, allocations: 8 kB / 405 MB, free: 68.51 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09102/0.09136, allocations: 53.23 MB / 458.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3599/0.4513, allocations: 102 MB / 0.5471 GB, free: 9.219 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/0.4517, allocations: 97.98 kB / 0.5472 GB, free: 9.172 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07181/0.5235, allocations: 25.06 MB / 0.5717 GB, free: 3.535 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5235, allocations: 0 / 0.5717 GB, free: 3.535 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.106e-05/0.5236, allocations: 24 kB / 0.5717 GB, free: 3.512 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.004076/0.5277, allocations: 1.478 MB / 0.5731 GB, free: 2.035 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.5278, allocations: 8.031 kB / 0.5732 GB, free: 2.027 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001353/0.5291, allocations: 195.3 kB / 0.5733 GB, free: 1.836 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002267/0.5314, allocations: 0.9023 MB / 0.5742 GB, free: 1.043 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.5315, allocations: 83.86 kB / 0.5743 GB, free: 0.9961 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003639/0.5319, allocations: 108.5 kB / 0.5744 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002907/0.5348, allocations: 1.58 MB / 0.5759 GB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.912e-05/0.5349, allocations: 3.938 kB / 0.576 GB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.535, allocations: 42.94 kB / 0.576 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.156e-05/0.5351, allocations: 73.78 kB / 0.5761 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002389/0.5375, allocations: 1.38 MB / 0.5774 GB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00875/0.5463, allocations: 5.72 MB / 0.583 GB, free: 9.758 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/0.548, allocations: 1.069 MB / 0.584 GB, free: 9.027 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.5491, allocations: 0.8157 MB / 0.5848 GB, free: 8.496 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.615e-05/0.5492, allocations: 16.38 kB / 0.5849 GB, free: 8.484 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001508/0.5507, allocations: 1.123 MB / 0.586 GB, free: 7.605 MB / 394.7 MB Notification: Performance of pre-optimization done (n=157): time 4.709e-06/0.5508, allocations: 4 kB / 0.586 GB, free: 7.602 MB / 394.7 MB Notification: Performance of matching and sorting (n=158): time 0.007669/0.5584, allocations: 4.565 MB / 0.5904 GB, free: 3.906 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.5586, allocations: 213.2 kB / 0.5906 GB, free: 3.656 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008681/0.5595, allocations: 0.5457 MB / 0.5911 GB, free: 3.098 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.5596, allocations: 57.83 kB / 0.5912 GB, free: 3.035 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003898/0.56, allocations: 452.5 kB / 0.5916 GB, free: 2.586 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004303/0.5604, allocations: 481.4 kB / 0.5921 GB, free: 2.109 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.245e-05/0.5605, allocations: 31.98 kB / 0.5921 GB, free: 2.078 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002191/0.5608, allocations: 414.7 kB / 0.5925 GB, free: 1.664 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.5619, allocations: 0.691 MB / 0.5932 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/0.5632, allocations: 0.976 MB / 0.5941 GB, free: 15.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002482/0.5657, allocations: 1.789 MB / 0.5959 GB, free: 13.99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/0.5658, allocations: 7.938 kB / 0.5959 GB, free: 13.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005773/0.5715, allocations: 2.838 MB / 0.5987 GB, free: 11.13 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.745e-05/0.5716, allocations: 63.34 kB / 0.5987 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004568/0.5762, allocations: 2.388 MB / 0.6011 GB, free: 8.656 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003318/0.5795, allocations: 1.09 MB / 0.6021 GB, free: 7.562 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006097/0.5802, allocations: 151.7 kB / 0.6023 GB, free: 7.414 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0136/0.5938, allocations: 8.313 MB / 0.6104 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.5949, allocations: 95.81 kB / 0.6105 GB, free: 14.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002385/0.5952, allocations: 52 kB / 0.6105 GB, free: 14.82 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 () * 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.001091/0.5963, allocations: 489.7 kB / 0.611 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003064/0.5966, allocations: 98.86 kB / 0.6111 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003109/0.5997, allocations: 1.857 MB / 0.6129 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.042e-05/0.5998, allocations: 35.98 kB / 0.6129 GB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.5998, allocations: 0 / 0.6129 GB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.5998, allocations: 7.969 kB / 0.613 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005621/0.6054, allocations: 3.394 MB / 0.6163 GB, free: 8.824 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.6055, allocations: 0 / 0.6163 GB, free: 8.824 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00197/0.6074, allocations: 383.6 kB / 0.6166 GB, free: 8.449 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001216/0.6076, allocations: 28.84 kB / 0.6167 GB, free: 8.418 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/0.6077, allocations: 31.98 kB / 0.6167 GB, free: 8.387 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.6088, allocations: 1.331 MB / 0.618 GB, free: 6.918 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.6089, allocations: 3.938 kB / 0.618 GB, free: 6.914 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004457/0.6133, allocations: 2.923 MB / 0.6208 GB, free: 3.949 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006095/0.6139, allocations: 299.9 kB / 0.6211 GB, free: 3.637 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002168/0.6142, allocations: 35.98 kB / 0.6212 GB, free: 3.602 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007947/0.615, allocations: 83.84 kB / 0.6212 GB, free: 3.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002939/0.6153, allocations: 124.8 kB / 0.6214 GB, free: 3.398 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-05/0.6154, allocations: 39.98 kB / 0.6214 GB, free: 3.359 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005957/0.616, allocations: 382.8 kB / 0.6218 GB, free: 2.984 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.616, allocations: 3.938 kB / 0.6218 GB, free: 2.98 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001556/0.6176, allocations: 412 kB / 0.6222 GB, free: 2.578 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) * 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.0004617/0.618, allocations: 210.9 kB / 0.6224 GB, free: 2.363 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004891/0.6229, allocations: 2.53 MB / 0.6248 GB, free: 15.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.623, allocations: 4.062 kB / 0.6248 GB, free: 15.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/0.6247, allocations: 1.218 MB / 0.626 GB, free: 14.54 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.6259, allocations: 157.1 kB / 0.6262 GB, free: 14.39 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005581/0.6314, allocations: 3.434 MB / 0.6295 GB, free: 10.92 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001172/0.6326, allocations: 1.214 MB / 0.6307 GB, free: 9.676 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0009317/0.6336, allocations: 284.1 kB / 0.631 GB, free: 9.395 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003322/0.6339, allocations: 71.44 kB / 0.6311 GB, free: 9.324 MB / 442.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6339, allocations: 0 / 0.6311 GB, free: 9.324 MB / 442.7 MB Notification: Performance of Templates: time 0.03034/0.6643, allocations: 16.64 MB / 0.6473 GB, free: 8.688 MB / 458.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)