Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.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.Elementary.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault",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.0009671/0.0009668, allocations: 180.9 kB / 16.38 MB, free: 5.766 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.228/1.228, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0008023/0.0008022, allocations: 84.16 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.159/0.159, allocations: 38.06 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002677/0.0002677, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2344, allocations: 56.33 MB / 480.4 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1285/0.3629, allocations: 107 MB / 0.5737 GB, free: 11.34 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.3632, allocations: 87.95 kB / 0.5738 GB, free: 11.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06466/0.4279, allocations: 25.1 MB / 0.5983 GB, free: 1.863 MB / 426.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.4279, allocations: 0 / 0.5983 GB, free: 1.863 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.394e-05/0.428, allocations: 20 kB / 0.5983 GB, free: 1.844 MB / 426.7 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.002632/0.4306, allocations: 1.486 MB / 0.5998 GB, free: 284 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.4307, allocations: 8.031 kB / 0.5998 GB, free: 276 kB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002239/0.4309, allocations: 177.3 kB / 0.5999 GB, free: 88 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009651/0.4319, allocations: 190.5 kB / 0.6001 GB, free: 15.89 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002771/0.4347, allocations: 1.227 MB / 0.6013 GB, free: 14.63 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.895e-05/0.4348, allocations: 85.98 kB / 0.6014 GB, free: 14.54 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000167/0.435, allocations: 107.9 kB / 0.6015 GB, free: 14.44 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002388/0.4374, allocations: 1.571 MB / 0.603 GB, free: 12.78 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.705e-05/0.4374, allocations: 7.938 kB / 0.603 GB, free: 12.77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.4375, allocations: 40 kB / 0.6031 GB, free: 12.73 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.527e-05/0.4376, allocations: 73.97 kB / 0.6031 GB, free: 12.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00213/0.4397, allocations: 1.386 MB / 0.6045 GB, free: 11.27 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007585/0.4473, allocations: 5.697 MB / 0.6101 GB, free: 5.41 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.4488, allocations: 1.081 MB / 0.6111 GB, free: 4.301 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.667e-05/0.4489, allocations: 10.92 kB / 0.6111 GB, free: 4.293 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001398/0.4503, allocations: 1.111 MB / 0.6122 GB, free: 3.152 MB / 442.7 MB Notification: Performance of pre-optimization done (n=157): time 2.946e-06/0.4503, allocations: 0 / 0.6122 GB, free: 3.152 MB / 442.7 MB Notification: Performance of matching and sorting (n=158): time 0.006643/0.457, allocations: 5.068 MB / 0.6172 GB, free: 13.86 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.4571, allocations: 217.3 kB / 0.6174 GB, free: 13.61 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005394/0.4576, allocations: 494 kB / 0.6178 GB, free: 13.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.072e-05/0.4577, allocations: 61.69 kB / 0.6179 GB, free: 13.05 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002968/0.458, allocations: 448.4 kB / 0.6183 GB, free: 12.61 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003848/0.4584, allocations: 477.4 kB / 0.6188 GB, free: 12.13 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.305e-05/0.4585, allocations: 35.98 kB / 0.6188 GB, free: 12.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.4587, allocations: 414.7 kB / 0.6192 GB, free: 11.68 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009855/0.4597, allocations: 0.691 MB / 0.6199 GB, free: 10.99 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.4609, allocations: 0.9604 MB / 0.6208 GB, free: 9.938 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.462, allocations: 0.856 MB / 0.6217 GB, free: 9.07 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.462, allocations: 0 / 0.6217 GB, free: 9.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005107/0.4671, allocations: 2.835 MB / 0.6244 GB, free: 6.211 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.503e-05/0.4672, allocations: 59.41 kB / 0.6245 GB, free: 6.141 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004295/0.4715, allocations: 2.388 MB / 0.6268 GB, free: 3.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003129/0.4746, allocations: 1.094 MB / 0.6279 GB, free: 2.652 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005061/0.4751, allocations: 147.7 kB / 0.628 GB, free: 2.508 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01267/0.4878, allocations: 8.694 MB / 0.6365 GB, free: 9.668 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008572/0.4887, allocations: 87.89 kB / 0.6366 GB, free: 9.582 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.893e-05/0.4888, allocations: 52 kB / 0.6366 GB, free: 9.531 MB / 474.7 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 () * Number of clocked 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,84.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00075/0.4896, allocations: 488.8 kB / 0.6371 GB, free: 9.031 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.4898, allocations: 106.7 kB / 0.6372 GB, free: 8.926 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002619/0.4924, allocations: 1.857 MB / 0.639 GB, free: 7.043 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.153e-05/0.4925, allocations: 35.98 kB / 0.6391 GB, free: 7.008 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.4925, allocations: 8 kB / 0.6391 GB, free: 7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.4925, allocations: 7.969 kB / 0.6391 GB, free: 6.992 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004903/0.4974, allocations: 3.387 MB / 0.6424 GB, free: 3.527 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.4974, allocations: 0 / 0.6424 GB, free: 3.527 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001906/0.4993, allocations: 387.6 kB / 0.6428 GB, free: 3.148 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001104/0.4995, allocations: 32.8 kB / 0.6428 GB, free: 3.113 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.849e-05/0.4996, allocations: 31.98 kB / 0.6428 GB, free: 3.082 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008305/0.5004, allocations: 1.338 MB / 0.6441 GB, free: 1.613 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.5004, allocations: 0 / 0.6441 GB, free: 1.613 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1678/0.6682, allocations: 2.948 MB / 0.647 GB, free: 137.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007108/0.669, allocations: 296.5 kB / 0.6473 GB, free: 137.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000165/0.6692, allocations: 39.34 kB / 0.6473 GB, free: 137.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006366/0.6698, allocations: 78.67 kB / 0.6474 GB, free: 137.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002768/0.6701, allocations: 136.7 kB / 0.6475 GB, free: 137.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.021e-05/0.6702, allocations: 40.12 kB / 0.6476 GB, free: 137.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004581/0.6707, allocations: 383.3 kB / 0.6479 GB, free: 137 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6707, allocations: 0 / 0.6479 GB, free: 137 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001216/0.6719, allocations: 406.3 kB / 0.6483 GB, free: 137 MB / 474.7 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) * Number of clocked states: 0 () * 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.004567/0.6765, allocations: 3.817 MB / 0.652 GB, free: 135.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005003/0.6815, allocations: 2.536 MB / 0.6545 GB, free: 135.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.6815, allocations: 0 / 0.6545 GB, free: 135.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001608/0.6831, allocations: 1.211 MB / 0.6557 GB, free: 135.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008188/0.684, allocations: 148.4 kB / 0.6558 GB, free: 135.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/0.6982, allocations: 13.48 MB / 0.669 GB, free: 127.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000801/0.6991, allocations: 1.236 MB / 0.6702 GB, free: 127.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007841/0.6999, allocations: 274.2 kB / 0.6705 GB, free: 127.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005116/0.7004, allocations: 403.6 kB / 0.6709 GB, free: 126.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.062e-06/0.7004, allocations: 4 kB / 0.6709 GB, free: 126.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03681/0.7372, allocations: 25.91 MB / 0.6962 GB, free: 122 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001443/0.7374, allocations: 203.4 kB / 0.6964 GB, free: 121.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.421/3.158, allocations: 0 / 0.6964 GB, free: 121.8 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault_res.mat does not exist to compare? outputFormat=mat