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.001696/0.001695, 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.724/1.724, 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.001639/0.001639, allocations: 122.2 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1792/0.1792, allocations: 37.91 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.702e-05/4.744e-05, allocations: 4 kB / 397.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.315, allocations: 53.22 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5091/0.8242, allocations: 101 MB / 0.5389 GB, free: 33.96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004818/0.8247, allocations: 90.98 kB / 0.539 GB, free: 33.96 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07006/0.8948, allocations: 25.17 MB / 0.5636 GB, free: 30.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.8949, allocations: 0 / 0.5636 GB, free: 30.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.92e-05/0.8949, allocations: 23.44 kB / 0.5636 GB, free: 30.08 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.002653/0.8976, allocations: 1.392 MB / 0.565 GB, free: 29.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.407e-05/0.8977, allocations: 11.81 kB / 0.565 GB, free: 29.25 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002181/0.8979, allocations: 174.5 kB / 0.5651 GB, free: 29.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001042/0.8989, allocations: 203.2 kB / 0.5653 GB, free: 29.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002812/0.9018, allocations: 1.298 MB / 0.5666 GB, free: 28.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.047e-05/0.9018, allocations: 85.73 kB / 0.5667 GB, free: 28.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001844/0.902, allocations: 99.41 kB / 0.5668 GB, free: 28.42 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002138/0.9042, allocations: 1.572 MB / 0.5683 GB, free: 27.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.329e-05/0.9042, allocations: 7.906 kB / 0.5683 GB, free: 27.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.9044, allocations: 42.81 kB / 0.5684 GB, free: 27.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.797e-05/0.9044, allocations: 80.02 kB / 0.5684 GB, free: 27.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001878/0.9063, allocations: 1.381 MB / 0.5698 GB, free: 27.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007278/0.9136, allocations: 5.759 MB / 0.5754 GB, free: 24.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/0.915, allocations: 1.084 MB / 0.5765 GB, free: 24.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008752/0.9159, allocations: 0.8255 MB / 0.5773 GB, free: 24.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.59e-05/0.916, allocations: 16.67 kB / 0.5773 GB, free: 24.19 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001283/0.9173, allocations: 1.123 MB / 0.5784 GB, free: 23.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=161): time 3.076e-06/0.9173, allocations: 0 / 0.5784 GB, free: 23.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=162): time 0.005261/0.9226, allocations: 3.925 MB / 0.5822 GB, free: 22.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.976e-05/0.9227, allocations: 249.8 kB / 0.5825 GB, free: 22.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006086/0.9233, allocations: 0.4927 MB / 0.5829 GB, free: 22.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.95e-05/0.9234, allocations: 62.81 kB / 0.583 GB, free: 22.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002974/0.9237, allocations: 455.4 kB / 0.5834 GB, free: 21.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003225/0.924, allocations: 494.2 kB / 0.5839 GB, free: 21.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.5e-05/0.9241, allocations: 29.06 kB / 0.5839 GB, free: 21.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.9243, allocations: 421.3 kB / 0.5843 GB, free: 21.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008786/0.9252, allocations: 0.6937 MB / 0.585 GB, free: 21.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.9262, allocations: 0.9853 MB / 0.586 GB, free: 20.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.9273, allocations: 0.8513 MB / 0.5868 GB, free: 20.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.9273, allocations: 0 / 0.5868 GB, free: 20.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004858/0.9322, allocations: 2.842 MB / 0.5896 GB, free: 19.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.383e-05/0.9322, allocations: 63.42 kB / 0.5896 GB, free: 19.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004221/0.9365, allocations: 2.355 MB / 0.5919 GB, free: 19.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003136/0.9396, allocations: 1.067 MB / 0.593 GB, free: 18.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005097/0.9401, allocations: 145.1 kB / 0.5931 GB, free: 18.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01181/0.952, allocations: 8.198 MB / 0.6011 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.9532, allocations: 91.91 kB / 0.6012 GB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002338/0.9534, allocations: 67.97 kB / 0.6013 GB, free: 14.91 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.0004368/0.9539, allocations: 295.8 kB / 0.6016 GB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003428/0.9542, allocations: 102.8 kB / 0.6017 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002877/0.9571, allocations: 1.873 MB / 0.6035 GB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.11e-05/0.9572, allocations: 35.98 kB / 0.6035 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.9572, allocations: 0 / 0.6035 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.9572, allocations: 7.969 kB / 0.6035 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005308/0.9625, allocations: 3.527 MB / 0.607 GB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.9625, allocations: 0 / 0.607 GB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001849/0.9644, allocations: 387.7 kB / 0.6073 GB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001731/0.9646, allocations: 52.81 kB / 0.6074 GB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/0.9647, allocations: 39.95 kB / 0.6074 GB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.9658, allocations: 1.564 MB / 0.609 GB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.9658, allocations: 3.984 kB / 0.609 GB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003652/0.9694, allocations: 2.98 MB / 0.6119 GB, free: 3.719 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007756/0.9702, allocations: 307.8 kB / 0.6122 GB, free: 3.398 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002746/0.9705, allocations: 35.98 kB / 0.6122 GB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000777/0.9713, allocations: 79.91 kB / 0.6123 GB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003223/0.9717, allocations: 136.8 kB / 0.6124 GB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.9718, allocations: 43.92 kB / 0.6125 GB, free: 3.105 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006232/0.9724, allocations: 403.1 kB / 0.6128 GB, free: 2.711 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9724, allocations: 3.938 kB / 0.6128 GB, free: 2.707 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001933/0.9744, allocations: 408 kB / 0.6132 GB, free: 2.309 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.004763/0.9791, allocations: 3.933 MB / 0.6171 GB, free: 14.31 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005276/0.9844, allocations: 2.499 MB / 0.6195 GB, free: 11.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.9845, allocations: 0 / 0.6195 GB, free: 11.77 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001962/0.9864, allocations: 1.246 MB / 0.6207 GB, free: 10.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.9876, allocations: 130.9 kB / 0.6209 GB, free: 10.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006061/0.9936, allocations: 2.812 MB / 0.6236 GB, free: 7.496 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/0.9947, allocations: 1.253 MB / 0.6248 GB, free: 6.211 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008647/0.9956, allocations: 276.3 kB / 0.6251 GB, free: 5.938 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007319/0.9963, allocations: 423.3 kB / 0.6255 GB, free: 5.523 MB / 394.7 MB Notification: Performance of SimCode: time 1.283e-06/0.9963, allocations: 0 / 0.6255 GB, free: 5.523 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05712/1.053, allocations: 26.31 MB / 0.6512 GB, free: 11.19 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/1.054, allocations: 175.8 kB / 0.6513 GB, free: 10.96 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.126/4.179, allocations: 4 kB / 0.6514 GB, free: 10.96 MB / 426.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)