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.001069/0.001069, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.685/1.685, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008644/0.0008645, allocations: 92.11 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1767/0.1767, allocations: 37.99 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.14e-05/2.141e-05, allocations: 0 / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1101, allocations: 56.33 MB / 467 MB, free: 6.465 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4942/0.6043, allocations: 105.4 MB / 0.559 GB, free: 5.434 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/0.6046, allocations: 83.95 kB / 0.5591 GB, free: 5.352 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07856/0.6832, allocations: 24.98 MB / 0.5835 GB, free: 12.09 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.6833, allocations: 0 / 0.5835 GB, free: 12.09 MB / 427.1 MB Notification: Performance of Transformations before backend: time 7.101e-05/0.6834, allocations: 24 kB / 0.5835 GB, free: 12.07 MB / 427.1 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.003877/0.6872, allocations: 1.388 MB / 0.5848 GB, free: 10.6 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.76e-05/0.6873, allocations: 8.031 kB / 0.5848 GB, free: 10.59 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001769/0.6891, allocations: 203 kB / 0.585 GB, free: 10.39 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004976/0.6941, allocations: 1.292 MB / 0.5863 GB, free: 9.055 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.411e-05/0.6942, allocations: 44 kB / 0.5863 GB, free: 9.012 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002507/0.6945, allocations: 71.89 kB / 0.5864 GB, free: 8.941 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003314/0.6978, allocations: 1.281 MB / 0.5877 GB, free: 7.66 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003427/0.7013, allocations: 1.431 MB / 0.5891 GB, free: 6.141 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.751e-05/0.7013, allocations: 11.94 kB / 0.5891 GB, free: 6.129 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/0.7015, allocations: 7.984 kB / 0.5891 GB, free: 6.121 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001628/0.7017, allocations: 65.98 kB / 0.5891 GB, free: 6.059 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01182/0.7135, allocations: 5.567 MB / 0.5946 GB, free: 340 kB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002078/0.7156, allocations: 1.04 MB / 0.5956 GB, free: 15.27 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001537/0.7172, allocations: 0.8 MB / 0.5964 GB, free: 14.47 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001025/0.7173, allocations: 21.2 kB / 0.5964 GB, free: 14.45 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001804/0.7191, allocations: 1.085 MB / 0.5975 GB, free: 13.33 MB / 443.1 MB Notification: Performance of pre-optimization done (n=161): time 3.426e-06/0.7192, allocations: 0 / 0.5975 GB, free: 13.33 MB / 443.1 MB Notification: Performance of matching and sorting (n=162): time 0.006655/0.7258, allocations: 3.572 MB / 0.6009 GB, free: 9.699 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001575/0.726, allocations: 246.9 kB / 0.6012 GB, free: 9.406 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006411/0.7266, allocations: 454.1 kB / 0.6016 GB, free: 8.953 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 8.692e-05/0.7267, allocations: 37.7 kB / 0.6016 GB, free: 8.91 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003724/0.7271, allocations: 460.5 kB / 0.6021 GB, free: 8.453 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003839/0.7275, allocations: 481.3 kB / 0.6025 GB, free: 7.977 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.176e-05/0.7276, allocations: 0 / 0.6025 GB, free: 7.977 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0002182/0.7278, allocations: 414.7 kB / 0.6029 GB, free: 7.562 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009194/0.7287, allocations: 0.6599 MB / 0.6036 GB, free: 6.902 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/0.7299, allocations: 0.9444 MB / 0.6045 GB, free: 5.855 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.731, allocations: 0.778 MB / 0.6053 GB, free: 5.082 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.731, allocations: 0 / 0.6053 GB, free: 5.082 MB / 443.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005008/0.7361, allocations: 2.64 MB / 0.6078 GB, free: 2.43 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.22e-05/0.7361, allocations: 59.41 kB / 0.6079 GB, free: 2.359 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004195/0.7403, allocations: 2.247 MB / 0.6101 GB, free: 112 kB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003228/0.7436, allocations: 1.039 MB / 0.6111 GB, free: 15.07 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006956/0.7443, allocations: 155.6 kB / 0.6113 GB, free: 14.92 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01308/0.7574, allocations: 7.879 MB / 0.619 GB, free: 6.914 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.7586, allocations: 63.91 kB / 0.619 GB, free: 6.852 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.7587, allocations: 52 kB / 0.6191 GB, free: 6.801 MB / 459.1 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.0004594/0.7592, allocations: 241.9 kB / 0.6193 GB, free: 6.547 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002728/0.7619, allocations: 1.602 MB / 0.6209 GB, free: 4.938 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.7621, allocations: 106.7 kB / 0.621 GB, free: 4.832 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002779/0.7649, allocations: 1.703 MB / 0.6226 GB, free: 3.113 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-05/0.765, allocations: 39.98 kB / 0.6227 GB, free: 3.074 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.765, allocations: 0 / 0.6227 GB, free: 3.074 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-05/0.765, allocations: 7.969 kB / 0.6227 GB, free: 3.066 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005463/0.7705, allocations: 3.22 MB / 0.6258 GB, free: 15.79 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.7705, allocations: 4 kB / 0.6258 GB, free: 15.79 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001916/0.7725, allocations: 375.7 kB / 0.6262 GB, free: 15.42 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001697/0.7727, allocations: 60.69 kB / 0.6262 GB, free: 15.36 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.099e-05/0.7728, allocations: 23.95 kB / 0.6263 GB, free: 15.34 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001436/0.7742, allocations: 1.505 MB / 0.6277 GB, free: 13.71 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/0.7742, allocations: 3.938 kB / 0.6277 GB, free: 13.71 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004234/0.7785, allocations: 2.807 MB / 0.6305 GB, free: 10.84 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006575/0.7791, allocations: 307.8 kB / 0.6308 GB, free: 10.52 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.7793, allocations: 19.98 kB / 0.6308 GB, free: 10.5 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006165/0.7799, allocations: 59.91 kB / 0.6308 GB, free: 10.45 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002996/0.7803, allocations: 141.2 kB / 0.631 GB, free: 10.31 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.513e-05/0.7804, allocations: 39.98 kB / 0.631 GB, free: 10.27 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0005254/0.7809, allocations: 342.9 kB / 0.6313 GB, free: 9.938 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7809, allocations: 0 / 0.6313 GB, free: 9.938 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.00175/0.7827, allocations: 363.9 kB / 0.6317 GB, free: 9.582 MB / 475.1 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.004575/0.7873, allocations: 3.733 MB / 0.6353 GB, free: 5.789 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.004763/0.792, allocations: 2.403 MB / 0.6377 GB, free: 3.348 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.7921, allocations: 128 / 0.6377 GB, free: 3.348 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00167/0.7937, allocations: 1.212 MB / 0.6389 GB, free: 2.105 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.7948, allocations: 114.5 kB / 0.639 GB, free: 1.988 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2819/1.077, allocations: 2.691 MB / 0.6416 GB, free: 139.4 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001118/1.078, allocations: 1.245 MB / 0.6428 GB, free: 138.7 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0009416/1.079, allocations: 275.5 kB / 0.6431 GB, free: 138.7 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008075/1.08, allocations: 419.6 kB / 0.6435 GB, free: 138.7 MB / 475.1 MB Notification: Performance of SimCode: time 2.915e-06/1.08, allocations: 2.688 kB / 0.6435 GB, free: 138.7 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06569/1.145, allocations: 25 MB / 0.6679 GB, free: 137.7 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/1.146, allocations: 143.6 kB / 0.668 GB, free: 137.5 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.045/4.19, allocations: 1.641 kB / 0.668 GB, free: 137.5 MB / 475.1 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