Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.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.RXline,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline",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.00117/0.001171, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.657/1.657, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009109/0.0009108, allocations: 74.78 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1709/0.1709, allocations: 37.98 MB / 353.5 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.59e-05/3.593e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1284, allocations: 56.32 MB / 474.2 MB, free: 4.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5285/0.6569, allocations: 102.6 MB / 0.5632 GB, free: 228 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.6573, allocations: 89.94 kB / 0.5633 GB, free: 184 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06266/0.7199, allocations: 22 MB / 0.5848 GB, free: 13.22 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.72, allocations: 0 / 0.5848 GB, free: 13.22 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.145e-05/0.7201, allocations: 16 kB / 0.5848 GB, free: 13.21 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002385/0.7225, allocations: 1.174 MB / 0.586 GB, free: 12.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/0.7225, allocations: 8.031 kB / 0.586 GB, free: 12.01 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002143/0.7228, allocations: 145 kB / 0.5861 GB, free: 11.91 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008624/0.7236, allocations: 162.6 kB / 0.5863 GB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003374/0.727, allocations: 1.206 MB / 0.5874 GB, free: 10.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.86e-05/0.7271, allocations: 77.55 kB / 0.5875 GB, free: 10.67 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001616/0.7273, allocations: 83.5 kB / 0.5876 GB, free: 10.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002136/0.7294, allocations: 1.255 MB / 0.5888 GB, free: 9.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.872e-05/0.7295, allocations: 11.91 kB / 0.5888 GB, free: 9.648 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.421e-05/0.7296, allocations: 38.42 kB / 0.5889 GB, free: 9.637 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-05/0.7297, allocations: 57.11 kB / 0.5889 GB, free: 9.582 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001685/0.7314, allocations: 1.104 MB / 0.59 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006256/0.7376, allocations: 4.57 MB / 0.5945 GB, free: 4.883 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.7389, allocations: 0.8174 MB / 0.5953 GB, free: 4.309 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008235/0.7397, allocations: 0.6487 MB / 0.5959 GB, free: 3.891 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.628e-05/0.7398, allocations: 21.69 kB / 0.5959 GB, free: 3.871 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001266/0.7411, allocations: 0.8941 MB / 0.5968 GB, free: 3.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=126): time 3.066e-06/0.7411, allocations: 0 / 0.5968 GB, free: 3.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=127): time 0.004746/0.7458, allocations: 3.071 MB / 0.5998 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001811/0.746, allocations: 237.8 kB / 0.6 GB, free: 408 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005572/0.7466, allocations: 427.2 kB / 0.6004 GB, free: 56 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.338e-05/0.7467, allocations: 53.33 kB / 0.6005 GB, free: 16 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003437/0.747, allocations: 402.2 kB / 0.6009 GB, free: 15.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003126/0.7474, allocations: 375 kB / 0.6012 GB, free: 15.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.352e-05/0.7474, allocations: 24.38 kB / 0.6012 GB, free: 15.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002072/0.7476, allocations: 402.9 kB / 0.6016 GB, free: 15.01 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007664/0.7484, allocations: 0.5162 MB / 0.6021 GB, free: 14.67 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.7495, allocations: 0.7652 MB / 0.6029 GB, free: 14.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.7506, allocations: 0.6599 MB / 0.6035 GB, free: 13.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.7506, allocations: 4 kB / 0.6035 GB, free: 13.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003852/0.7544, allocations: 2.05 MB / 0.6055 GB, free: 11.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.178e-05/0.7545, allocations: 59.41 kB / 0.6056 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003005/0.7576, allocations: 1.661 MB / 0.6072 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00192/0.7595, allocations: 0.6606 MB / 0.6079 GB, free: 9.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005179/0.76, allocations: 135.7 kB / 0.608 GB, free: 9.598 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008948/0.769, allocations: 5.911 MB / 0.6138 GB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00087/0.7699, allocations: 71.78 kB / 0.6138 GB, free: 3.477 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.895e-05/0.77, allocations: 44.08 kB / 0.6139 GB, free: 3.434 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 116 * Array equations: 3 * 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 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004024/0.7704, allocations: 273.2 kB / 0.6141 GB, free: 3.148 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.7707, allocations: 83.05 kB / 0.6142 GB, free: 3.066 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002434/0.7731, allocations: 1.438 MB / 0.6156 GB, free: 1.609 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-05/0.7732, allocations: 24 kB / 0.6156 GB, free: 1.586 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.7732, allocations: 3.984 kB / 0.6156 GB, free: 1.582 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.7732, allocations: 3.984 kB / 0.6156 GB, free: 1.578 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00459/0.7778, allocations: 2.811 MB / 0.6184 GB, free: 14.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.7778, allocations: 4.094 kB / 0.6184 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.7789, allocations: 227.7 kB / 0.6186 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.75e-05/0.7789, allocations: 11.95 kB / 0.6186 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.581e-05/0.779, allocations: 23.98 kB / 0.6186 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.245e-06/0.779, allocations: 8 kB / 0.6186 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.7791, allocations: 4 kB / 0.6187 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003443/0.7825, allocations: 2.34 MB / 0.6209 GB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000393/0.7829, allocations: 152.2 kB / 0.6211 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.7831, allocations: 31.98 kB / 0.6211 GB, free: 11.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004991/0.7836, allocations: 51.94 kB / 0.6212 GB, free: 11.76 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002717/0.7839, allocations: 112.6 kB / 0.6213 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.114e-05/0.784, allocations: 32 kB / 0.6213 GB, free: 11.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005015/0.7845, allocations: 337.5 kB / 0.6216 GB, free: 11.29 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7845, allocations: 0 / 0.6216 GB, free: 11.29 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001176/0.7857, allocations: 323.9 kB / 0.6219 GB, free: 10.97 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_b.closed,switch1.switch_c.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_b.closed,switch2.switch_c.closed,$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,system.initime) * Number of discrete states: 16 (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_c.open,switch2.switch_a.open,switch2.switch_b.open,switch1.switch_b.open,switch1.switch_c.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 88 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004295/0.79, allocations: 3.257 MB / 0.6251 GB, free: 7.641 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004133/0.7941, allocations: 1.847 MB / 0.6269 GB, free: 5.758 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.876e-06/0.7942, allocations: 0 / 0.6269 GB, free: 5.758 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001446/0.7956, allocations: 0.9132 MB / 0.6278 GB, free: 4.82 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.7968, allocations: 117.2 kB / 0.6279 GB, free: 4.711 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005485/0.8023, allocations: 2.121 MB / 0.63 GB, free: 2.543 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001097/0.8034, allocations: 1.121 MB / 0.6311 GB, free: 1.395 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008172/0.8043, allocations: 230.9 kB / 0.6313 GB, free: 1.164 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006584/0.805, allocations: 339.3 kB / 0.6316 GB, free: 0.832 MB / 426.7 MB Notification: Performance of SimCode: time 1.002e-06/0.805, allocations: 4 kB / 0.6316 GB, free: 0.8281 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05035/0.8553, allocations: 20.45 MB / 0.6516 GB, free: 12.4 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/0.8556, allocations: 178 kB / 0.6518 GB, free: 12.18 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.73/3.586, allocations: 0 / 0.6518 GB, free: 12.18 MB / 458.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline_res.mat does not exist to compare? outputFormat=mat