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.0009477/0.0009477, allocations: 179.6 kB / 8.35 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.677/1.677, allocations: 194.3 MB / 203.1 MB, free: 13.03 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.00166/0.001661, allocations: 112.6 kB / 248.1 MB, free: 36 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1904/0.1904, allocations: 37.93 MB / 330.9 MB, free: 2.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.939e-05/1.94e-05, allocations: 0 / 390.5 MB, free: 7.012 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.372, allocations: 53.23 MB / 443.7 MB, free: 17.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5168/0.8889, allocations: 101.2 MB / 0.5321 GB, free: 36.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003538/0.8893, allocations: 87.2 kB / 0.5322 GB, free: 36.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06669/0.956, allocations: 24.85 MB / 0.5565 GB, free: 33.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.9561, allocations: 0 / 0.5565 GB, free: 33.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.061e-05/0.9561, allocations: 30.91 kB / 0.5565 GB, free: 33.35 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.002375/0.9585, allocations: 1.375 MB / 0.5578 GB, free: 32.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.9585, allocations: 12.47 kB / 0.5579 GB, free: 32.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009657/0.9595, allocations: 206.1 kB / 0.558 GB, free: 32.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002504/0.962, allocations: 1.19 MB / 0.5592 GB, free: 32.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.904e-05/0.9621, allocations: 38.78 kB / 0.5592 GB, free: 32.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.9623, allocations: 62.69 kB / 0.5593 GB, free: 32.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001745/0.964, allocations: 1.27 MB / 0.5605 GB, free: 32.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001845/0.9659, allocations: 1.413 MB / 0.5619 GB, free: 31.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.003e-05/0.9659, allocations: 11.81 kB / 0.5619 GB, free: 31.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.524e-05/0.966, allocations: 7.906 kB / 0.5619 GB, free: 31.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-05/0.9661, allocations: 75.83 kB / 0.562 GB, free: 31.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00686/0.973, allocations: 5.502 MB / 0.5674 GB, free: 29.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.9742, allocations: 1.007 MB / 0.5684 GB, free: 29.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007804/0.975, allocations: 0.7713 MB / 0.5691 GB, free: 29.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.881e-05/0.9751, allocations: 20.44 kB / 0.5691 GB, free: 29.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001273/0.9764, allocations: 1.059 MB / 0.5702 GB, free: 29.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=157): time 2.946e-06/0.9764, allocations: 0 / 0.5702 GB, free: 29.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=158): time 0.004849/0.9812, allocations: 3.42 MB / 0.5735 GB, free: 28.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.878e-05/0.9813, allocations: 215.9 kB / 0.5737 GB, free: 27.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004901/0.9818, allocations: 443.6 kB / 0.5742 GB, free: 27.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.329e-05/0.9819, allocations: 33.11 kB / 0.5742 GB, free: 27.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002886/0.9822, allocations: 441.1 kB / 0.5746 GB, free: 27.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002894/0.9825, allocations: 462.7 kB / 0.575 GB, free: 27.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.183e-05/0.9826, allocations: 0 / 0.575 GB, free: 27.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.9828, allocations: 416.9 kB / 0.5754 GB, free: 26.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007477/0.9835, allocations: 0.6437 MB / 0.5761 GB, free: 26.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008813/0.9844, allocations: 0.9152 MB / 0.577 GB, free: 26.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009282/0.9853, allocations: 0.7668 MB / 0.5777 GB, free: 26.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.9854, allocations: 3.875 kB / 0.5777 GB, free: 26.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004412/0.9898, allocations: 2.616 MB / 0.5803 GB, free: 25.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.497e-05/0.9899, allocations: 62.59 kB / 0.5803 GB, free: 25.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003807/0.9937, allocations: 2.26 MB / 0.5825 GB, free: 24.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002919/0.9966, allocations: 1.058 MB / 0.5836 GB, free: 24.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006647/0.9973, allocations: 152.4 kB / 0.5837 GB, free: 24.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/1.009, allocations: 7.926 MB / 0.5915 GB, free: 21.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/1.01, allocations: 63.91 kB / 0.5915 GB, free: 21.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/1.01, allocations: 53.47 kB / 0.5916 GB, free: 21.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,97.2%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003826/1.01, allocations: 242 kB / 0.5918 GB, free: 21.58 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002291/1.013, allocations: 1.568 MB / 0.5933 GB, free: 20.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/1.013, allocations: 96.5 kB / 0.5934 GB, free: 20.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002358/1.015, allocations: 1.672 MB / 0.5951 GB, free: 19.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.751e-05/1.015, allocations: 36.95 kB / 0.5951 GB, free: 19.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.208e-06/1.015, allocations: 7.719 kB / 0.5951 GB, free: 19.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.572e-05/1.015, allocations: 11.92 kB / 0.5951 GB, free: 19.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004698/1.02, allocations: 3.062 MB / 0.5981 GB, free: 18.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/1.02, allocations: 4 kB / 0.5981 GB, free: 18.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001886/1.022, allocations: 379.6 kB / 0.5985 GB, free: 17.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000125/1.022, allocations: 28.84 kB / 0.5985 GB, free: 17.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.373e-05/1.022, allocations: 11.98 kB / 0.5985 GB, free: 17.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008315/1.023, allocations: 1.28 MB / 0.5998 GB, free: 16.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/1.023, allocations: 7.875 kB / 0.5998 GB, free: 16.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003443/1.027, allocations: 2.761 MB / 0.6025 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005074/1.027, allocations: 287.9 kB / 0.6027 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/1.027, allocations: 31.94 kB / 0.6028 GB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000596/1.028, allocations: 55.91 kB / 0.6028 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000254/1.028, allocations: 137 kB / 0.6029 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.282e-05/1.028, allocations: 39.98 kB / 0.603 GB, free: 13.01 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004023/1.029, allocations: 326.9 kB / 0.6033 GB, free: 12.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.029, allocations: 0 / 0.6033 GB, free: 12.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001526/1.03, allocations: 356 kB / 0.6036 GB, free: 12.34 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.003619/1.034, allocations: 3.607 MB / 0.6072 GB, free: 8.691 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003718/1.038, allocations: 2.375 MB / 0.6095 GB, free: 6.285 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/1.038, allocations: 0.5 kB / 0.6095 GB, free: 6.285 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0011/1.039, allocations: 1.165 MB / 0.6106 GB, free: 5.086 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007495/1.039, allocations: 138.3 kB / 0.6107 GB, free: 4.949 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004262/1.044, allocations: 2.647 MB / 0.6133 GB, free: 2.254 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006686/1.044, allocations: 1.234 MB / 0.6145 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007255/1.045, allocations: 279.9 kB / 0.6148 GB, free: 0.707 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005152/1.046, allocations: 407.3 kB / 0.6152 GB, free: 316 kB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/1.046, allocations: 0 / 0.6152 GB, free: 316 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05923/1.105, allocations: 24.8 MB / 0.6394 GB, free: 7.473 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002554/1.105, allocations: 140.1 kB / 0.6395 GB, free: 7.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.817/3.922, allocations: 3.938 kB / 0.6396 GB, free: 7.266 MB / 410.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)