Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_FaultRXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,fileNamePrefix="PowerSystems_latest_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.3+maint.om/package.mo): time 0.001115/0.001115, allocations: 175 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.748/1.748, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 82.77 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2036/0.2036, allocations: 37.97 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.338e-05/3.341e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.128, allocations: 56.31 MB / 474.1 MB, free: 4.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4725/0.6005, allocations: 106.1 MB / 0.5666 GB, free: 12.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.6009, allocations: 91.38 kB / 0.5667 GB, free: 12.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0706/0.6715, allocations: 25.19 MB / 0.5913 GB, free: 7.027 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.6716, allocations: 0 / 0.5913 GB, free: 7.027 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.006e-05/0.6716, allocations: 20 kB / 0.5913 GB, free: 7.008 MB / 394.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.002786/0.6744, allocations: 1.393 MB / 0.5927 GB, free: 5.605 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.6745, allocations: 12.03 kB / 0.5927 GB, free: 5.594 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002645/0.6748, allocations: 178 kB / 0.5929 GB, free: 5.473 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001059/0.6758, allocations: 195 kB / 0.593 GB, free: 5.281 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003361/0.6792, allocations: 1.304 MB / 0.5943 GB, free: 4.168 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-05/0.6793, allocations: 82.11 kB / 0.5944 GB, free: 4.117 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001916/0.6795, allocations: 111.2 kB / 0.5945 GB, free: 4.039 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002445/0.682, allocations: 1.57 MB / 0.596 GB, free: 2.832 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.138e-05/0.682, allocations: 7.625 kB / 0.596 GB, free: 2.828 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/0.6821, allocations: 40.81 kB / 0.5961 GB, free: 2.816 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.433e-05/0.6822, allocations: 73.41 kB / 0.5962 GB, free: 2.75 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002066/0.6843, allocations: 1.386 MB / 0.5975 GB, free: 1.781 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008315/0.6926, allocations: 5.762 MB / 0.6031 GB, free: 12.87 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/0.6942, allocations: 1.085 MB / 0.6042 GB, free: 12.13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/0.6953, allocations: 0.8353 MB / 0.605 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.561e-05/0.6954, allocations: 12.98 kB / 0.605 GB, free: 11.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001532/0.697, allocations: 1.13 MB / 0.6061 GB, free: 10.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=161): time 3.356e-06/0.697, allocations: 3.938 kB / 0.6061 GB, free: 10.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=162): time 0.005866/0.7029, allocations: 3.918 MB / 0.61 GB, free: 7.582 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/0.703, allocations: 254 kB / 0.6102 GB, free: 7.289 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006884/0.7037, allocations: 0.4895 MB / 0.6107 GB, free: 6.895 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.7038, allocations: 65.69 kB / 0.6107 GB, free: 6.824 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003825/0.7042, allocations: 456.5 kB / 0.6112 GB, free: 6.371 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004151/0.7047, allocations: 485.4 kB / 0.6116 GB, free: 5.891 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.802e-05/0.7047, allocations: 35.98 kB / 0.6117 GB, free: 5.855 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002094/0.705, allocations: 414.7 kB / 0.6121 GB, free: 5.441 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001013/0.706, allocations: 0.6951 MB / 0.6127 GB, free: 4.746 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/0.7072, allocations: 0.9834 MB / 0.6137 GB, free: 3.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.7085, allocations: 0.8556 MB / 0.6145 GB, free: 2.797 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.7085, allocations: 4 kB / 0.6145 GB, free: 2.793 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005322/0.7138, allocations: 2.838 MB / 0.6173 GB, free: 15.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.187e-05/0.7139, allocations: 61.91 kB / 0.6174 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004323/0.7182, allocations: 2.357 MB / 0.6197 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003231/0.7214, allocations: 1.071 MB / 0.6207 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005116/0.722, allocations: 143.7 kB / 0.6209 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01287/0.7348, allocations: 8.191 MB / 0.6289 GB, free: 3.957 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.7359, allocations: 107.7 kB / 0.629 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002234/0.7362, allocations: 55.98 kB / 0.629 GB, free: 3.797 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 () * 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.0005498/0.7367, allocations: 299.9 kB / 0.6293 GB, free: 3.484 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000357/0.7371, allocations: 98.78 kB / 0.6294 GB, free: 3.387 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003419/0.7405, allocations: 1.873 MB / 0.6312 GB, free: 1.488 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.053e-05/0.7406, allocations: 35.98 kB / 0.6313 GB, free: 1.453 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.7406, allocations: 0 / 0.6313 GB, free: 1.453 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.7406, allocations: 11.92 kB / 0.6313 GB, free: 1.441 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006332/0.747, allocations: 3.535 MB / 0.6347 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.747, allocations: 0 / 0.6347 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001978/0.749, allocations: 379.7 kB / 0.6351 GB, free: 13.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001872/0.7492, allocations: 52.81 kB / 0.6351 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001186/0.7493, allocations: 43.97 kB / 0.6352 GB, free: 13.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001349/0.7507, allocations: 1.56 MB / 0.6367 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.7507, allocations: 3.938 kB / 0.6367 GB, free: 11.65 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004251/0.755, allocations: 2.976 MB / 0.6396 GB, free: 8.605 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000617/0.7556, allocations: 299.8 kB / 0.6399 GB, free: 8.293 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/0.7558, allocations: 47.88 kB / 0.6399 GB, free: 8.246 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000617/0.7564, allocations: 79.89 kB / 0.64 GB, free: 8.168 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002984/0.7567, allocations: 132.8 kB / 0.6401 GB, free: 8.035 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.524e-05/0.7568, allocations: 44.11 kB / 0.6402 GB, free: 7.992 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005015/0.7573, allocations: 399.1 kB / 0.6406 GB, free: 7.605 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7573, allocations: 0 / 0.6406 GB, free: 7.605 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001315/0.7587, allocations: 411.9 kB / 0.641 GB, free: 7.203 MB / 442.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.004844/0.7635, allocations: 3.926 MB / 0.6448 GB, free: 3.211 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004789/0.7683, allocations: 2.505 MB / 0.6472 GB, free: 0.668 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.7684, allocations: 0 / 0.6472 GB, free: 0.668 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001679/0.77, allocations: 1.249 MB / 0.6485 GB, free: 15.38 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009457/0.771, allocations: 140.9 kB / 0.6486 GB, free: 15.25 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005355/0.7764, allocations: 2.806 MB / 0.6513 GB, free: 12.39 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008836/0.7773, allocations: 1.245 MB / 0.6525 GB, free: 11.11 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008446/0.7781, allocations: 288.3 kB / 0.6528 GB, free: 10.82 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006641/0.7788, allocations: 419.3 kB / 0.6532 GB, free: 10.41 MB / 458.7 MB Notification: Performance of SimCode: time 1.132e-06/0.7788, allocations: 3.938 kB / 0.6532 GB, free: 10.41 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06694/0.8458, allocations: 26.34 MB / 0.6789 GB, free: 84 kB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001711/0.846, allocations: 179.5 kB / 0.6791 GB, free: 15.86 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.051/3.897, allocations: 0 / 0.6791 GB, free: 15.86 MB / 490.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_FaultRXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_FaultRXline.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.FaultRXline_res.mat does not exist to compare? outputFormat=mat