Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC3ph_Transmission_FaultRXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,fileNamePrefix="PowerSystems_cpp_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.001651/0.001651, allocations: 179.5 kB / 15.76 MB, free: 6.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.166/2.166, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001269/0.001269, allocations: 102.8 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3/0.3, allocations: 38.06 MB / 356.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006534/0.0006534, allocations: 8 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.127, allocations: 56.33 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5347/0.6618, allocations: 106.2 MB / 0.5716 GB, free: 9.375 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003584/0.6622, allocations: 102.2 kB / 0.5717 GB, free: 9.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1262/0.7885, allocations: 25.19 MB / 0.5963 GB, free: 3.586 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.531e-06/0.7886, allocations: 4 kB / 0.5963 GB, free: 3.582 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001098/0.7887, allocations: 23.94 kB / 0.5963 GB, free: 3.559 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.006421/0.7951, allocations: 1.497 MB / 0.5978 GB, free: 2.055 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.015e-05/0.7952, allocations: 12.03 kB / 0.5978 GB, free: 2.043 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000875/0.7961, allocations: 177.5 kB / 0.5979 GB, free: 1.926 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002263/0.7984, allocations: 199 kB / 0.5981 GB, free: 1.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006205/0.8046, allocations: 1.319 MB / 0.5994 GB, free: 0.5977 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001832/0.8049, allocations: 80.81 kB / 0.5995 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006612/0.8056, allocations: 116.2 kB / 0.5996 GB, free: 480 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005395/0.811, allocations: 1.586 MB / 0.6012 GB, free: 15.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.305e-05/0.8111, allocations: 3.938 kB / 0.6012 GB, free: 15.24 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001938/0.8113, allocations: 48.92 kB / 0.6012 GB, free: 15.22 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001642/0.8115, allocations: 69.66 kB / 0.6013 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004918/0.8164, allocations: 1.409 MB / 0.6026 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01784/0.8343, allocations: 5.768 MB / 0.6083 GB, free: 9.258 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00323/0.8376, allocations: 1.103 MB / 0.6094 GB, free: 8.516 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001803/0.8378, allocations: 17.05 kB / 0.6094 GB, free: 8.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003255/0.8411, allocations: 1.143 MB / 0.6105 GB, free: 7.605 MB / 410.7 MB Notification: Performance of pre-optimization done (n=161): time 6.111e-06/0.8412, allocations: 0 / 0.6105 GB, free: 7.605 MB / 410.7 MB Notification: Performance of matching and sorting (n=162): time 0.01596/0.8571, allocations: 5.26 MB / 0.6156 GB, free: 3.355 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002166/0.8574, allocations: 245.1 kB / 0.6159 GB, free: 3.074 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.8585, allocations: 0.5022 MB / 0.6163 GB, free: 2.668 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004122/0.859, allocations: 66 kB / 0.6164 GB, free: 2.617 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005358/0.8595, allocations: 487.4 kB / 0.6169 GB, free: 2.234 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009598/0.8605, allocations: 487.1 kB / 0.6173 GB, free: 1.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.8608, allocations: 36.05 kB / 0.6174 GB, free: 1.809 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002746/0.8611, allocations: 378.5 kB / 0.6177 GB, free: 1.457 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002356/0.8634, allocations: 0.7042 MB / 0.6184 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002763/0.8662, allocations: 0.995 MB / 0.6194 GB, free: 15.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002663/0.869, allocations: 0.8599 MB / 0.6202 GB, free: 14.83 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.578e-05/0.869, allocations: 4 kB / 0.6202 GB, free: 14.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.01153/0.8806, allocations: 2.82 MB / 0.623 GB, free: 11.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.834e-05/0.8807, allocations: 67.36 kB / 0.6231 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009711/0.8905, allocations: 2.38 MB / 0.6254 GB, free: 9.523 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006674/0.8972, allocations: 1.074 MB / 0.6264 GB, free: 8.449 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.8984, allocations: 151.6 kB / 0.6266 GB, free: 8.301 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02718/0.9257, allocations: 8.596 MB / 0.635 GB, free: 15.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.9275, allocations: 95.81 kB / 0.6351 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003756/0.928, allocations: 63.98 kB / 0.6351 GB, free: 15.4 MB / 442.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 () * Number of clocked 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.001566/0.9295, allocations: 492.7 kB / 0.6356 GB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004603/0.93, allocations: 106.8 kB / 0.6357 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006121/0.9362, allocations: 1.893 MB / 0.6375 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.125e-05/0.9363, allocations: 35.97 kB / 0.6376 GB, free: 12.84 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.9363, allocations: 4 kB / 0.6376 GB, free: 12.84 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.365e-05/0.9364, allocations: 11.92 kB / 0.6376 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/0.9484, allocations: 3.554 MB / 0.6411 GB, free: 9.184 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.692e-05/0.9485, allocations: 4 kB / 0.6411 GB, free: 9.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004253/0.9528, allocations: 375.7 kB / 0.6414 GB, free: 8.812 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003285/0.9532, allocations: 60.75 kB / 0.6415 GB, free: 8.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000413/0.9536, allocations: 31.98 kB / 0.6415 GB, free: 8.719 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002126/0.9557, allocations: 1.572 MB / 0.643 GB, free: 7.016 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.9558, allocations: 0 / 0.643 GB, free: 7.016 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008831/0.9646, allocations: 3.015 MB / 0.646 GB, free: 3.926 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.966, allocations: 299.8 kB / 0.6463 GB, free: 3.613 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004316/0.9665, allocations: 43.94 kB / 0.6463 GB, free: 3.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001463/0.968, allocations: 83.84 kB / 0.6464 GB, free: 3.488 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000632/0.9686, allocations: 132.8 kB / 0.6465 GB, free: 3.359 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001904/0.9689, allocations: 43.97 kB / 0.6466 GB, free: 3.316 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008933/0.9698, allocations: 403 kB / 0.647 GB, free: 2.926 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.464e-06/0.9698, allocations: 3.938 kB / 0.647 GB, free: 2.922 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002538/0.9723, allocations: 419.9 kB / 0.6474 GB, free: 2.512 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) * Number of clocked states: 0 () * 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.009946/0.9823, allocations: 3.952 MB / 0.6512 GB, free: 14.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009188/0.9916, allocations: 2.546 MB / 0.6537 GB, free: 11.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.9917, allocations: 0 / 0.6537 GB, free: 11.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003584/0.9953, allocations: 1.233 MB / 0.6549 GB, free: 10.64 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001607/0.9969, allocations: 136.8 kB / 0.655 GB, free: 10.51 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03193/1.029, allocations: 14.2 MB / 0.6689 GB, free: 11.93 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001625/1.031, allocations: 1.25 MB / 0.6701 GB, free: 10.66 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001415/1.032, allocations: 427.3 kB / 0.6705 GB, free: 10.24 MB / 474.7 MB Notification: Performance of SimCode: time 1.533e-06/1.032, allocations: 0 / 0.6705 GB, free: 10.24 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.505/4.538, allocations: 24.04 MB / 0.694 GB, free: 2.164 MB / 490.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_FaultRXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_FaultRXline.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe 2>&1)