Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_FaultRXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_FaultRXline",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00216/0.00216, allocations: 179.4 kB / 8.351 MB, free: 0.7227 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.555/1.555, allocations: 194.3 MB / 203.1 MB, free: 13.02 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.001724/0.001724, allocations: 131.2 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1656/0.1656, allocations: 37.93 MB / 330.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.108e-05/2.11e-05, allocations: 4 kB / 390.5 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.267, allocations: 53.22 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4246/0.6916, allocations: 100.3 MB / 0.5313 GB, free: 35.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003833/0.6921, allocations: 88.03 kB / 0.5313 GB, free: 35.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06942/0.7616, allocations: 24.96 MB / 0.5557 GB, free: 32.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.7616, allocations: 0 / 0.5557 GB, free: 32.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.062e-05/0.7617, allocations: 23.06 kB / 0.5557 GB, free: 32.84 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: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.002469/0.7642, allocations: 1.389 MB / 0.5571 GB, free: 32.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.7642, allocations: 15.75 kB / 0.5571 GB, free: 32.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/0.7652, allocations: 201.7 kB / 0.5573 GB, free: 31.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00283/0.7681, allocations: 1.289 MB / 0.5586 GB, free: 31.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.205e-05/0.7681, allocations: 38.91 kB / 0.5586 GB, free: 31.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.7683, allocations: 65.83 kB / 0.5587 GB, free: 31.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001711/0.77, allocations: 1.283 MB / 0.5599 GB, free: 31.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/0.7718, allocations: 1.428 MB / 0.5613 GB, free: 31.33 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.7718, allocations: 15.75 kB / 0.5613 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.746e-05/0.7719, allocations: 3.812 kB / 0.5613 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.499e-05/0.772, allocations: 75.77 kB / 0.5614 GB, free: 31.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006617/0.7786, allocations: 5.555 MB / 0.5668 GB, free: 28.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.7798, allocations: 1.047 MB / 0.5679 GB, free: 28.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008261/0.7807, allocations: 0.7982 MB / 0.5686 GB, free: 28.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.241e-05/0.7808, allocations: 9.156 kB / 0.5686 GB, free: 28.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001265/0.782, allocations: 1.093 MB / 0.5697 GB, free: 28.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=161): time 2.715e-06/0.7821, allocations: 0 / 0.5697 GB, free: 28.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=162): time 0.004759/0.7868, allocations: 3.576 MB / 0.5732 GB, free: 27.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.147e-05/0.7869, allocations: 244 kB / 0.5734 GB, free: 27.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004732/0.7874, allocations: 455.1 kB / 0.5739 GB, free: 27.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.219e-05/0.7875, allocations: 40.95 kB / 0.5739 GB, free: 27.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002616/0.7878, allocations: 450.2 kB / 0.5743 GB, free: 27.06 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002837/0.7881, allocations: 476.3 kB / 0.5748 GB, free: 26.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.5e-05/0.7881, allocations: 7.875 kB / 0.5748 GB, free: 26.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.7883, allocations: 417.7 kB / 0.5752 GB, free: 26.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008067/0.7892, allocations: 0.6589 MB / 0.5758 GB, free: 26.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008927/0.7901, allocations: 0.9394 MB / 0.5768 GB, free: 25.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009614/0.791, allocations: 0.7779 MB / 0.5775 GB, free: 25.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.791, allocations: 7.844 kB / 0.5775 GB, free: 25.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004367/0.7954, allocations: 2.638 MB / 0.5801 GB, free: 25.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.364e-05/0.7955, allocations: 59.16 kB / 0.5802 GB, free: 25.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003675/0.7992, allocations: 2.254 MB / 0.5824 GB, free: 24.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002831/0.802, allocations: 1.033 MB / 0.5834 GB, free: 24.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005019/0.8025, allocations: 152.7 kB / 0.5835 GB, free: 24.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01105/0.8136, allocations: 7.88 MB / 0.5912 GB, free: 21.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/0.8147, allocations: 70.19 kB / 0.5913 GB, free: 21.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.8148, allocations: 54.12 kB / 0.5913 GB, free: 21.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 84 (system.initime,$PRE.abc.fault_pp1.t0,abc.fault_pp1.t0,$PRE.abc.fault_pp2.t0,abc.fault_pp2.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition23,$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.abc.theta_zero,abc.theta_zero,$PRE.abc.v_pos,abc.v_pos,$PRE.abc.first,abc.first,$PRE.abc.fault_pp1.on,abc.fault_pp1.on,$PRE.abc.fault_pp2.on,abc.fault_pp2.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 139 * 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,81.9%) 41} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000392/0.8152, allocations: 246.2 kB / 0.5916 GB, free: 21.02 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002598/0.8178, allocations: 1.601 MB / 0.5931 GB, free: 20.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002165/0.8181, allocations: 104.1 kB / 0.5932 GB, free: 20.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002485/0.8206, allocations: 1.697 MB / 0.5949 GB, free: 19.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.275e-05/0.8206, allocations: 35.11 kB / 0.5949 GB, free: 19.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.8206, allocations: 4.062 kB / 0.5949 GB, free: 19.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.8206, allocations: 7.969 kB / 0.5949 GB, free: 19.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004683/0.8253, allocations: 3.21 MB / 0.5981 GB, free: 17.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.8254, allocations: 11.84 kB / 0.5981 GB, free: 17.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00191/0.8273, allocations: 381.5 kB / 0.5984 GB, free: 17.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001741/0.8275, allocations: 56.77 kB / 0.5985 GB, free: 17.44 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.8276, allocations: 15.98 kB / 0.5985 GB, free: 17.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/0.8288, allocations: 1.505 MB / 0.6 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.8288, allocations: 0 / 0.6 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003646/0.8324, allocations: 2.815 MB / 0.6027 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006234/0.8331, allocations: 299.8 kB / 0.603 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000165/0.8333, allocations: 23.98 kB / 0.603 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006048/0.8339, allocations: 59.84 kB / 0.6031 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002615/0.8341, allocations: 129.1 kB / 0.6032 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.065e-05/0.8342, allocations: 43.98 kB / 0.6033 GB, free: 12.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004449/0.8347, allocations: 346.9 kB / 0.6036 GB, free: 12.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8347, allocations: 0 / 0.6036 GB, free: 12.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001618/0.8363, allocations: 367.9 kB / 0.6039 GB, free: 11.67 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 57 (switch1.switch_a.closed,switch1.switch_b.closed,switch1.switch_c.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$whenCondition23,$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,abc.theta_zero,abc.v_pos,abc.first,abc.fault_pp1.on,abc.fault_pp1.t0,abc.fault_pp2.on,abc.fault_pp2.t0,system.initime) * Number of discrete states: 21 (abc.theta_zero,abc.fault_pp1.on,abc.fault_pp2.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_b.open,switch2.switch_c.open,switch2.switch_a.open,abc.v_pos,abc.first,switch1.switch_c.open,switch1.switch_b.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 107 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 11 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003718/0.8401, allocations: 3.733 MB / 0.6076 GB, free: 7.879 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004269/0.8443, allocations: 2.41 MB / 0.6099 GB, free: 5.434 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.8444, allocations: 0 / 0.6099 GB, free: 5.434 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.8457, allocations: 1.201 MB / 0.6111 GB, free: 4.203 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009081/0.8466, allocations: 127.6 kB / 0.6112 GB, free: 4.078 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004716/0.8513, allocations: 2.699 MB / 0.6139 GB, free: 1.324 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000645/0.852, allocations: 1.245 MB / 0.6151 GB, free: 48 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008531/0.8529, allocations: 284.1 kB / 0.6154 GB, free: 15.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006594/0.8535, allocations: 423.3 kB / 0.6158 GB, free: 15.35 MB / 394.7 MB Notification: Performance of SimCode: time 9.22e-07/0.8535, allocations: 0 / 0.6158 GB, free: 15.35 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05958/0.9131, allocations: 24.97 MB / 0.6401 GB, free: 6.348 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.9134, allocations: 141.8 kB / 0.6403 GB, free: 6.152 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.935/3.848, allocations: 3.938 kB / 0.6403 GB, free: 6.148 MB / 410.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Transmission_FaultRXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Transmission_FaultRXline.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe 2>&1)