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.0009871/0.0009872, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.289/1.289, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001696/0.001696, allocations: 116.6 kB / 248.1 MB, free: 6.328 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1733/0.1733, allocations: 37.92 MB / 330.9 MB, free: 7.32 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.77e-05/1.774e-05, allocations: 4 kB / 390.4 MB, free: 78.24 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09115/0.09118, allocations: 53.24 MB / 443.6 MB, free: 25.1 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3786/0.4699, allocations: 101.2 MB / 0.532 GB, free: 7.117 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002521/0.4702, allocations: 90.64 kB / 0.5321 GB, free: 7.074 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06815/0.5383, allocations: 24.84 MB / 0.5564 GB, free: 1.926 MB / 363.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.5384, allocations: 0 / 0.5564 GB, free: 1.926 MB / 363.1 MB Notification: Performance of Transformations before backend: time 7.063e-05/0.5385, allocations: 31.94 kB / 0.5564 GB, free: 1.895 MB / 363.1 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.003967/0.5424, allocations: 1.378 MB / 0.5578 GB, free: 0.5156 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.5425, allocations: 8.031 kB / 0.5578 GB, free: 0.5078 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001544/0.5441, allocations: 203.3 kB / 0.558 GB, free: 316 kB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00309/0.5472, allocations: 1.194 MB / 0.5591 GB, free: 15.29 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.077e-05/0.5473, allocations: 47.62 kB / 0.5592 GB, free: 15.24 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002404/0.5475, allocations: 63.62 kB / 0.5592 GB, free: 15.18 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002056/0.5496, allocations: 1.263 MB / 0.5605 GB, free: 14.33 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002173/0.5518, allocations: 1.406 MB / 0.5618 GB, free: 13.2 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.5518, allocations: 7.938 kB / 0.5618 GB, free: 13.19 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001626/0.552, allocations: 11.98 kB / 0.5619 GB, free: 13.18 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.826e-05/0.5521, allocations: 73.34 kB / 0.5619 GB, free: 13.11 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007688/0.5598, allocations: 5.496 MB / 0.5673 GB, free: 8.391 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.5612, allocations: 1.015 MB / 0.5683 GB, free: 7.703 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009196/0.5621, allocations: 0.7702 MB / 0.569 GB, free: 7.219 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-05/0.5622, allocations: 13.31 kB / 0.569 GB, free: 7.207 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001389/0.5636, allocations: 1.069 MB / 0.5701 GB, free: 6.367 MB / 379.1 MB Notification: Performance of pre-optimization done (n=157): time 3.046e-06/0.5636, allocations: 0 / 0.5701 GB, free: 6.367 MB / 379.1 MB Notification: Performance of matching and sorting (n=158): time 0.005245/0.5689, allocations: 3.412 MB / 0.5734 GB, free: 3.695 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.569, allocations: 215.5 kB / 0.5736 GB, free: 3.449 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005074/0.5695, allocations: 443.6 kB / 0.5741 GB, free: 3.098 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 9.579e-05/0.5696, allocations: 37.23 kB / 0.5741 GB, free: 3.059 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003356/0.57, allocations: 444.8 kB / 0.5745 GB, free: 2.719 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004178/0.5704, allocations: 464 kB / 0.575 GB, free: 2.32 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.226e-05/0.5705, allocations: 0 / 0.575 GB, free: 2.32 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.5707, allocations: 416.7 kB / 0.5754 GB, free: 1.945 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009965/0.5717, allocations: 0.6459 MB / 0.576 GB, free: 1.32 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.573, allocations: 0.9137 MB / 0.5769 GB, free: 320 kB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.5742, allocations: 0.7702 MB / 0.5776 GB, free: 15.54 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.5742, allocations: 0 / 0.5776 GB, free: 15.54 MB / 395.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005185/0.5794, allocations: 2.617 MB / 0.5802 GB, free: 12.91 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.903e-05/0.5795, allocations: 59.41 kB / 0.5802 GB, free: 12.84 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004375/0.5839, allocations: 2.258 MB / 0.5824 GB, free: 10.58 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003235/0.5871, allocations: 1.051 MB / 0.5835 GB, free: 9.523 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005724/0.5877, allocations: 151.6 kB / 0.5836 GB, free: 9.375 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0128/0.6005, allocations: 7.939 MB / 0.5914 GB, free: 1.316 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000919/0.6015, allocations: 63.84 kB / 0.5914 GB, free: 1.254 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001869/0.6017, allocations: 52 kB / 0.5915 GB, free: 1.203 MB / 395.1 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.0004022/0.6021, allocations: 232 kB / 0.5917 GB, free: 0.957 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/0.6024, allocations: 106.7 kB / 0.5918 GB, free: 0.8516 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002858/0.6053, allocations: 1.66 MB / 0.5934 GB, free: 15.18 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.904e-05/0.6053, allocations: 39.98 kB / 0.5935 GB, free: 15.14 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.6053, allocations: 0 / 0.5935 GB, free: 15.14 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.6054, allocations: 4.094 kB / 0.5935 GB, free: 15.14 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005251/0.6106, allocations: 3.087 MB / 0.5965 GB, free: 12 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.6106, allocations: 0 / 0.5965 GB, free: 12 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002034/0.6127, allocations: 375.6 kB / 0.5968 GB, free: 11.63 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001183/0.6128, allocations: 28.84 kB / 0.5969 GB, free: 11.6 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.6129, allocations: 27.92 kB / 0.5969 GB, free: 11.57 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000976/0.6139, allocations: 1.279 MB / 0.5981 GB, free: 10.18 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.6139, allocations: 8.156 kB / 0.5981 GB, free: 10.17 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004039/0.618, allocations: 2.754 MB / 0.6008 GB, free: 7.367 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005955/0.6186, allocations: 287.9 kB / 0.6011 GB, free: 7.066 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000229/0.6188, allocations: 27.92 kB / 0.6011 GB, free: 7.039 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006685/0.6195, allocations: 63.89 kB / 0.6012 GB, free: 6.977 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002761/0.6198, allocations: 133.1 kB / 0.6013 GB, free: 6.848 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.6199, allocations: 35.98 kB / 0.6014 GB, free: 6.812 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0004323/0.6204, allocations: 330.9 kB / 0.6017 GB, free: 6.488 MB / 411.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6204, allocations: 4 kB / 0.6017 GB, free: 6.484 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.001347/0.6217, allocations: 356 kB / 0.602 GB, free: 6.137 MB / 411.1 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.0004117/0.6222, allocations: 201.6 kB / 0.6022 GB, free: 5.934 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.004243/0.6264, allocations: 2.373 MB / 0.6045 GB, free: 3.523 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.6264, allocations: 4.188 kB / 0.6045 GB, free: 3.52 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001429/0.6279, allocations: 1.165 MB / 0.6057 GB, free: 2.324 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007409/0.6286, allocations: 122.4 kB / 0.6058 GB, free: 2.199 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004174/0.6328, allocations: 2.403 MB / 0.6081 GB, free: 15.76 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009761/0.6338, allocations: 1.238 MB / 0.6093 GB, free: 14.49 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0008579/0.6347, allocations: 272 kB / 0.6096 GB, free: 14.22 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003393/0.635, allocations: 79.42 kB / 0.6097 GB, free: 14.14 MB / 427.1 MB Notification: Performance of SimCode: time 4.6e-07/0.635, allocations: 0 / 0.6097 GB, free: 14.14 MB / 427.1 MB Notification: Performance of Templates: time 0.02921/0.6642, allocations: 15.87 MB / 0.6252 GB, free: 14.3 MB / 443.1 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)