Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.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.Elementary.Fault,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001852/0.001851, 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.888/1.888, allocations: 194.3 MB / 208.4 MB, free: 6.711 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.00183/0.00183, allocations: 124.6 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1715/0.1715, allocations: 37.91 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.07e-05/5.074e-05, allocations: 11.94 kB / 397.6 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3657, allocations: 53.2 MB / 450.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5257/0.8915, allocations: 101.9 MB / 0.5398 GB, free: 34.16 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004044/0.892, allocations: 92.55 kB / 0.5399 GB, free: 34.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07113/0.9632, allocations: 25.06 MB / 0.5643 GB, free: 30.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.9632, allocations: 0 / 0.5643 GB, free: 30.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.399e-05/0.9633, allocations: 27.44 kB / 0.5644 GB, free: 30.07 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.002956/0.9663, allocations: 1.382 MB / 0.5657 GB, free: 29.1 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.9663, allocations: 7.719 kB / 0.5657 GB, free: 29.1 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002455/0.9666, allocations: 181.1 kB / 0.5659 GB, free: 29.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001168/0.9678, allocations: 196.4 kB / 0.5661 GB, free: 28.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003414/0.9712, allocations: 1.203 MB / 0.5672 GB, free: 28.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.859e-05/0.9713, allocations: 84.44 kB / 0.5673 GB, free: 28.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002134/0.9715, allocations: 99.03 kB / 0.5674 GB, free: 28.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002448/0.974, allocations: 1.549 MB / 0.5689 GB, free: 27.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.57e-05/0.974, allocations: 11.75 kB / 0.5689 GB, free: 27.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001141/0.9742, allocations: 48.19 kB / 0.569 GB, free: 27.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.695e-05/0.9743, allocations: 68.52 kB / 0.5691 GB, free: 27.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.9762, allocations: 1.369 MB / 0.5704 GB, free: 27.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008937/0.9852, allocations: 5.683 MB / 0.5759 GB, free: 24.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001661/0.9869, allocations: 1.059 MB / 0.577 GB, free: 24.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009492/0.9879, allocations: 0.8071 MB / 0.5778 GB, free: 24.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.139e-05/0.988, allocations: 16.7 kB / 0.5778 GB, free: 24.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001554/0.9895, allocations: 1.105 MB / 0.5789 GB, free: 23.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=157): time 6.392e-06/0.9896, allocations: 0 / 0.5789 GB, free: 23.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=158): time 0.006866/0.9964, allocations: 3.757 MB / 0.5825 GB, free: 22.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.9966, allocations: 215.9 kB / 0.5827 GB, free: 22.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008326/0.9974, allocations: 493 kB / 0.5832 GB, free: 22.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.9976, allocations: 62.19 kB / 0.5833 GB, free: 22.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004426/0.998, allocations: 439.4 kB / 0.5837 GB, free: 21.85 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004985/0.9985, allocations: 479.3 kB / 0.5841 GB, free: 21.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.634e-05/0.9986, allocations: 32.78 kB / 0.5842 GB, free: 21.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001924/0.9988, allocations: 412.5 kB / 0.5846 GB, free: 21.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.9999, allocations: 0.6773 MB / 0.5852 GB, free: 21.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/1.001, allocations: 0.959 MB / 0.5862 GB, free: 20.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/1.002, allocations: 0.8449 MB / 0.587 GB, free: 20.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/1.002, allocations: 7.906 kB / 0.587 GB, free: 20.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005636/1.008, allocations: 2.8 MB / 0.5897 GB, free: 19.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.593e-05/1.008, allocations: 70.94 kB / 0.5898 GB, free: 19.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004548/1.013, allocations: 2.366 MB / 0.5921 GB, free: 19.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003297/1.016, allocations: 1.089 MB / 0.5932 GB, free: 18.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007334/1.017, allocations: 146.3 kB / 0.5933 GB, free: 18.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01396/1.031, allocations: 8.268 MB / 0.6014 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/1.032, allocations: 91.91 kB / 0.6015 GB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002835/1.033, allocations: 55.98 kB / 0.6015 GB, free: 14.8 MB / 378.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 () * 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.0006061/1.033, allocations: 299.7 kB / 0.6018 GB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004677/1.034, allocations: 102.8 kB / 0.6019 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003341/1.037, allocations: 1.838 MB / 0.6037 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.015e-05/1.037, allocations: 35.98 kB / 0.6037 GB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/1.037, allocations: 0 / 0.6037 GB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/1.037, allocations: 7.969 kB / 0.6037 GB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005892/1.043, allocations: 3.375 MB / 0.607 GB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/1.043, allocations: 3.984 kB / 0.607 GB, free: 9.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001902/1.045, allocations: 375.6 kB / 0.6074 GB, free: 8.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001739/1.045, allocations: 28.84 kB / 0.6074 GB, free: 8.621 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/1.045, allocations: 35.98 kB / 0.6075 GB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008404/1.046, allocations: 1.331 MB / 0.6088 GB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.046, allocations: 3.938 kB / 0.6088 GB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004354/1.051, allocations: 2.921 MB / 0.6116 GB, free: 4.133 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008664/1.051, allocations: 295.9 kB / 0.6119 GB, free: 3.824 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003279/1.052, allocations: 39.94 kB / 0.6119 GB, free: 3.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009087/1.053, allocations: 79.91 kB / 0.612 GB, free: 3.707 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003794/1.053, allocations: 132.8 kB / 0.6121 GB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/1.053, allocations: 35.98 kB / 0.6122 GB, free: 3.543 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007188/1.054, allocations: 377.5 kB / 0.6125 GB, free: 3.176 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.054, allocations: 0 / 0.6125 GB, free: 3.176 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00206/1.056, allocations: 411.9 kB / 0.6129 GB, free: 2.773 MB / 378.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) * 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.004813/1.061, allocations: 3.789 MB / 0.6166 GB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005769/1.067, allocations: 2.486 MB / 0.6191 GB, free: 12.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/1.067, allocations: 0 / 0.6191 GB, free: 12.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002259/1.069, allocations: 1.198 MB / 0.6202 GB, free: 11.17 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/1.07, allocations: 146.6 kB / 0.6204 GB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007311/1.078, allocations: 2.774 MB / 0.6231 GB, free: 8.199 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001281/1.079, allocations: 1.238 MB / 0.6243 GB, free: 6.926 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001216/1.08, allocations: 284 kB / 0.6246 GB, free: 6.645 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000813/1.081, allocations: 399.3 kB / 0.6249 GB, free: 6.254 MB / 394.7 MB Notification: Performance of SimCode: time 1.733e-06/1.081, allocations: 0 / 0.6249 GB, free: 6.254 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06607/1.147, allocations: 26.08 MB / 0.6504 GB, free: 12.15 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002349/1.148, allocations: 167.2 kB / 0.6506 GB, free: 11.92 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.89/4.038, allocations: 4 kB / 0.6506 GB, free: 11.92 MB / 426.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Fault.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)