Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC3ph_Transmission_RXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_cpp_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.00142/0.00142, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.029/2.029, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001522/0.001522, allocations: 90.64 kB / 261.8 MB, free: 1.691 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2597/0.2597, allocations: 37.99 MB / 347.7 MB, free: 5.777 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.236e-05/2.236e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1077, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4909/0.5987, allocations: 101.9 MB / 0.5549 GB, free: 9.004 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003011/0.599, allocations: 91.95 kB / 0.555 GB, free: 8.992 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09325/0.6923, allocations: 21.81 MB / 0.5763 GB, free: 7.051 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.6923, allocations: 0 / 0.5763 GB, free: 7.051 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.978e-05/0.6924, allocations: 16 kB / 0.5763 GB, free: 7.035 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.005495/0.698, allocations: 1.182 MB / 0.5774 GB, free: 5.844 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.221e-05/0.6981, allocations: 8.031 kB / 0.5774 GB, free: 5.836 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002277/0.7003, allocations: 158.6 kB / 0.5776 GB, free: 5.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006967/0.7073, allocations: 1.2 MB / 0.5788 GB, free: 4.656 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/0.7075, allocations: 35.27 kB / 0.5788 GB, free: 4.625 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003645/0.7079, allocations: 55.94 kB / 0.5789 GB, free: 4.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004388/0.7123, allocations: 1.011 MB / 0.5798 GB, free: 3.887 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004582/0.717, allocations: 1.142 MB / 0.581 GB, free: 2.977 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.195e-05/0.7171, allocations: 7.844 kB / 0.581 GB, free: 2.969 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002026/0.7173, allocations: 7.984 kB / 0.581 GB, free: 2.961 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002003/0.7175, allocations: 56.92 kB / 0.581 GB, free: 2.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01609/0.7336, allocations: 4.394 MB / 0.5853 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003062/0.7367, allocations: 0.7798 MB / 0.5861 GB, free: 14.58 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00163/0.7384, allocations: 0.6189 MB / 0.5867 GB, free: 14.19 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/0.7386, allocations: 16.05 kB / 0.5867 GB, free: 14.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001882/0.7405, allocations: 0.8748 MB / 0.5876 GB, free: 13.47 MB / 394.7 MB Notification: Performance of pre-optimization done (n=126): time 5.471e-06/0.7405, allocations: 4 kB / 0.5876 GB, free: 13.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=127): time 0.007316/0.7478, allocations: 2.763 MB / 0.5903 GB, free: 11.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001628/0.748, allocations: 238 kB / 0.5905 GB, free: 10.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007171/0.7488, allocations: 379.9 kB / 0.5908 GB, free: 10.68 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002202/0.749, allocations: 45.62 kB / 0.5909 GB, free: 10.63 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004018/0.7494, allocations: 428.4 kB / 0.5913 GB, free: 10.28 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005279/0.75, allocations: 364.4 kB / 0.5916 GB, free: 9.969 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.081e-05/0.7501, allocations: 0 / 0.5916 GB, free: 9.969 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.7503, allocations: 371.2 kB / 0.592 GB, free: 9.621 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/0.7515, allocations: 0.4944 MB / 0.5925 GB, free: 9.301 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.7529, allocations: 0.731 MB / 0.5932 GB, free: 8.684 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001619/0.7545, allocations: 0.5794 MB / 0.5938 GB, free: 8.277 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.708e-05/0.7546, allocations: 8 kB / 0.5938 GB, free: 8.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.006025/0.7606, allocations: 1.868 MB / 0.5956 GB, free: 6.812 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.404e-05/0.7607, allocations: 59.91 kB / 0.5957 GB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005242/0.766, allocations: 1.581 MB / 0.5972 GB, free: 5.555 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00322/0.7692, allocations: 0.6523 MB / 0.5978 GB, free: 5.031 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.7703, allocations: 134 kB / 0.598 GB, free: 4.906 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01427/0.7846, allocations: 5.675 MB / 0.6035 GB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.7858, allocations: 39.94 kB / 0.6035 GB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000143/0.786, allocations: 40 kB / 0.6036 GB, free: 15.18 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.0004487/0.7864, allocations: 237.3 kB / 0.6038 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003234/0.7897, allocations: 1.227 MB / 0.605 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002931/0.79, allocations: 79.06 kB / 0.6051 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003415/0.7934, allocations: 1.292 MB / 0.6063 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.648e-05/0.7936, allocations: 28 kB / 0.6064 GB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.7936, allocations: 3.984 kB / 0.6064 GB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/0.7936, allocations: 3.984 kB / 0.6064 GB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007081/0.8007, allocations: 2.529 MB / 0.6088 GB, free: 9.703 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/0.8008, allocations: 4 kB / 0.6088 GB, free: 9.699 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002233/0.803, allocations: 239.8 kB / 0.6091 GB, free: 9.465 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.026e-05/0.8031, allocations: 4 kB / 0.6091 GB, free: 9.461 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000161/0.8032, allocations: 15.94 kB / 0.6091 GB, free: 9.445 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.177e-06/0.8033, allocations: 7.938 kB / 0.6091 GB, free: 9.438 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.8033, allocations: 0 / 0.6091 GB, free: 9.438 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005048/0.8083, allocations: 2.2 MB / 0.6113 GB, free: 7.184 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003444/0.8087, allocations: 140.2 kB / 0.6114 GB, free: 7.027 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002247/0.809, allocations: 19.92 kB / 0.6114 GB, free: 7.008 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009022/0.8099, allocations: 43.94 kB / 0.6114 GB, free: 6.965 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003849/0.8103, allocations: 112.6 kB / 0.6116 GB, free: 6.855 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.8104, allocations: 35.98 kB / 0.6116 GB, free: 6.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005326/0.811, allocations: 282.9 kB / 0.6119 GB, free: 6.543 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.811, allocations: 8 kB / 0.6119 GB, free: 6.535 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001618/0.8126, allocations: 279.9 kB / 0.6121 GB, free: 6.262 MB / 410.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.005952/0.8186, allocations: 3.097 MB / 0.6152 GB, free: 3.109 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004887/0.8235, allocations: 1.768 MB / 0.6169 GB, free: 1.305 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.8236, allocations: 4.188 kB / 0.6169 GB, free: 1.301 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001923/0.8255, allocations: 0.8612 MB / 0.6177 GB, free: 424 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.8266, allocations: 99.7 kB / 0.6178 GB, free: 328 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006541/0.8331, allocations: 2.1 MB / 0.6199 GB, free: 14.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/0.8343, allocations: 1.132 MB / 0.621 GB, free: 13.01 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009837/0.8353, allocations: 339.3 kB / 0.6213 GB, free: 12.68 MB / 426.7 MB Notification: Performance of SimCode: time 1.373e-06/0.8353, allocations: 0 / 0.6213 GB, free: 12.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.551/4.387, allocations: 18 MB / 0.6389 GB, free: 10.63 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_RXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_RXline.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)