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.000888/0.0008879, allocations: 179.7 kB / 16.38 MB, free: 5.762 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.2/1.2, allocations: 194.5 MB / 211.6 MB, free: 3.062 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.001556/0.001556, allocations: 119.4 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1532/0.1532, allocations: 38 MB / 340.1 MB, free: 1.367 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003546, allocations: 8 kB / 403.9 MB, free: 68.72 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06912/0.06949, allocations: 53.23 MB / 457.1 MB, free: 15.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2711/0.3406, allocations: 101.1 MB / 0.5451 GB, free: 10.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.3409, allocations: 90.89 kB / 0.5452 GB, free: 10.37 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06093/0.4018, allocations: 25.19 MB / 0.5698 GB, free: 4.641 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4018, allocations: 0 / 0.5698 GB, free: 4.641 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.259e-05/0.4019, allocations: 20 kB / 0.5698 GB, free: 4.621 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.002673/0.4046, allocations: 1.501 MB / 0.5713 GB, free: 3.113 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.4046, allocations: 12.02 kB / 0.5713 GB, free: 3.102 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002428/0.4049, allocations: 171.9 kB / 0.5715 GB, free: 2.988 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000947/0.4058, allocations: 210.2 kB / 0.5717 GB, free: 2.781 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002839/0.4087, allocations: 1.302 MB / 0.5729 GB, free: 1.668 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.699e-05/0.4087, allocations: 85.72 kB / 0.573 GB, free: 1.613 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.4089, allocations: 109 kB / 0.5731 GB, free: 1.539 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00212/0.411, allocations: 1.586 MB / 0.5747 GB, free: 324 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.4111, allocations: 7.938 kB / 0.5747 GB, free: 316 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/0.4112, allocations: 47.59 kB / 0.5747 GB, free: 296 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.651e-05/0.4113, allocations: 73.16 kB / 0.5748 GB, free: 232 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001925/0.4132, allocations: 1.412 MB / 0.5762 GB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006771/0.42, allocations: 5.768 MB / 0.5818 GB, free: 10.33 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.4213, allocations: 1.095 MB / 0.5829 GB, free: 9.59 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.604e-05/0.4214, allocations: 9.062 kB / 0.5829 GB, free: 9.582 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001304/0.4227, allocations: 1.143 MB / 0.584 GB, free: 8.691 MB / 394.7 MB Notification: Performance of pre-optimization done (n=161): time 2.815e-06/0.4227, allocations: 0 / 0.584 GB, free: 8.691 MB / 394.7 MB Notification: Performance of matching and sorting (n=162): time 0.006335/0.4291, allocations: 5.27 MB / 0.5891 GB, free: 4.238 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.948e-05/0.4292, allocations: 234.9 kB / 0.5894 GB, free: 3.961 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005151/0.4297, allocations: 0.5021 MB / 0.5899 GB, free: 3.453 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.059e-05/0.4298, allocations: 69.75 kB / 0.5899 GB, free: 3.379 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002749/0.4301, allocations: 452.6 kB / 0.5904 GB, free: 2.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003395/0.4304, allocations: 493.3 kB / 0.5908 GB, free: 2.441 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.053e-05/0.4305, allocations: 28 kB / 0.5909 GB, free: 2.414 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.4307, allocations: 418.7 kB / 0.5913 GB, free: 1.996 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009527/0.4316, allocations: 0.7028 MB / 0.5919 GB, free: 1.293 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.4328, allocations: 1.003 MB / 0.5929 GB, free: 192 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.4338, allocations: 0.8599 MB / 0.5938 GB, free: 15.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/0.4338, allocations: 4 kB / 0.5938 GB, free: 15.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.00484/0.4387, allocations: 2.862 MB / 0.5966 GB, free: 12.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.859e-05/0.4387, allocations: 59.41 kB / 0.5966 GB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004047/0.4428, allocations: 2.38 MB / 0.5989 GB, free: 9.973 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002985/0.4458, allocations: 1.07 MB / 0.6 GB, free: 8.898 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004494/0.4463, allocations: 151.7 kB / 0.6001 GB, free: 8.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01185/0.4581, allocations: 8.607 MB / 0.6085 GB, free: 4 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008087/0.459, allocations: 103.8 kB / 0.6086 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.785e-05/0.4591, allocations: 55.98 kB / 0.6087 GB, free: 15.84 MB / 426.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 () * Number of clocked 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.0006786/0.4598, allocations: 496.8 kB / 0.6092 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.46, allocations: 102.8 kB / 0.6093 GB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002607/0.4626, allocations: 1.889 MB / 0.6111 GB, free: 13.33 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.991e-05/0.4626, allocations: 35.98 kB / 0.6111 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.4626, allocations: 0 / 0.6111 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.4626, allocations: 7.969 kB / 0.6111 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004992/0.4676, allocations: 3.558 MB / 0.6146 GB, free: 9.641 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4677, allocations: 0 / 0.6146 GB, free: 9.641 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001857/0.4695, allocations: 375.7 kB / 0.615 GB, free: 9.273 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001463/0.4697, allocations: 60.81 kB / 0.615 GB, free: 9.211 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.834e-05/0.4698, allocations: 31.98 kB / 0.6151 GB, free: 9.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.4709, allocations: 1.576 MB / 0.6166 GB, free: 7.473 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.4709, allocations: 4 kB / 0.6166 GB, free: 7.469 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003617/0.4745, allocations: 3.023 MB / 0.6196 GB, free: 4.371 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005284/0.4751, allocations: 295.8 kB / 0.6198 GB, free: 4.062 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.4752, allocations: 39.98 kB / 0.6199 GB, free: 4.023 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005802/0.4758, allocations: 83.91 kB / 0.62 GB, free: 3.941 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002493/0.4761, allocations: 132.8 kB / 0.6201 GB, free: 3.812 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.458e-05/0.4762, allocations: 39.98 kB / 0.6201 GB, free: 3.773 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004315/0.4766, allocations: 403 kB / 0.6205 GB, free: 3.379 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4766, allocations: 0 / 0.6205 GB, free: 3.379 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001121/0.4777, allocations: 412 kB / 0.6209 GB, free: 2.977 MB / 426.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) * Number of clocked states: 0 () * 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.00413/0.4819, allocations: 3.956 MB / 0.6248 GB, free: 14.96 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003896/0.4858, allocations: 2.55 MB / 0.6273 GB, free: 12.36 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4858, allocations: 3.938 kB / 0.6273 GB, free: 12.36 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.4872, allocations: 1.261 MB / 0.6285 GB, free: 11.06 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006101/0.4879, allocations: 135.8 kB / 0.6286 GB, free: 10.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01338/0.5012, allocations: 14.09 MB / 0.6424 GB, free: 12.47 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007549/0.502, allocations: 1.261 MB / 0.6436 GB, free: 11.18 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0007241/0.5028, allocations: 280.3 kB / 0.6439 GB, free: 10.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005581/0.5033, allocations: 419.3 kB / 0.6443 GB, free: 10.5 MB / 458.7 MB Notification: Performance of SimCode: time 3.416e-06/0.5033, allocations: 0 / 0.6443 GB, free: 10.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4226/0.926, allocations: 26.1 MB / 0.6698 GB, free: 388 kB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001961/0.9262, allocations: 204.9 kB / 0.67 GB, free: 136 kB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.663/3.589, allocations: 4.062 kB / 0.67 GB, free: 132 kB / 474.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)