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.002345/0.002345, allocations: 186 kB / 13.19 MB, free: 2.125 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.996/1.996, allocations: 205.2 MB / 218.9 MB, free: 9.219 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.001085/0.001085, allocations: 93 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.288/0.288, allocations: 37.96 MB / 353.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.937e-05/3.945e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 56.31 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5016/0.6138, allocations: 102.6 MB / 0.5623 GB, free: 1.039 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003489/0.6142, allocations: 91.94 kB / 0.5624 GB, free: 0.9492 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.105/0.7192, allocations: 21.99 MB / 0.5839 GB, free: 10.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.7193, allocations: 4 kB / 0.5839 GB, free: 10.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.109e-05/0.7194, allocations: 16 kB / 0.5839 GB, free: 10.68 MB / 426.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.003783/0.7231, allocations: 1.176 MB / 0.5851 GB, free: 9.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.011e-05/0.7232, allocations: 12.02 kB / 0.5851 GB, free: 9.418 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000486/0.7237, allocations: 144 kB / 0.5852 GB, free: 9.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001344/0.7251, allocations: 158.6 kB / 0.5854 GB, free: 9.113 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005251/0.7304, allocations: 1.203 MB / 0.5865 GB, free: 7.875 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.7305, allocations: 73.89 kB / 0.5866 GB, free: 7.801 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002588/0.7308, allocations: 84 kB / 0.5867 GB, free: 7.719 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003326/0.7341, allocations: 1.256 MB / 0.5879 GB, free: 6.402 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.765e-05/0.7343, allocations: 11.84 kB / 0.5879 GB, free: 6.391 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001555/0.7344, allocations: 43.97 kB / 0.588 GB, free: 6.348 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000129/0.7346, allocations: 57.98 kB / 0.588 GB, free: 6.289 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003411/0.738, allocations: 1.109 MB / 0.5891 GB, free: 5.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01181/0.7498, allocations: 4.569 MB / 0.5936 GB, free: 464 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0023/0.7522, allocations: 0.8145 MB / 0.5944 GB, free: 15.62 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001664/0.7539, allocations: 0.6512 MB / 0.595 GB, free: 14.96 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/0.7541, allocations: 16.78 kB / 0.595 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002124/0.7562, allocations: 0.8906 MB / 0.5959 GB, free: 14.02 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 4.388e-06/0.7562, allocations: 0 / 0.5959 GB, free: 14.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=127): time 0.008049/0.7643, allocations: 3.069 MB / 0.5989 GB, free: 10.86 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001936/0.7646, allocations: 242.5 kB / 0.5991 GB, free: 10.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008823/0.7655, allocations: 427.7 kB / 0.5995 GB, free: 10.15 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000188/0.7657, allocations: 57.69 kB / 0.5996 GB, free: 10.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000438/0.7661, allocations: 426.6 kB / 0.6 GB, free: 9.664 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005481/0.7667, allocations: 382.8 kB / 0.6003 GB, free: 9.285 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.7668, allocations: 27.98 kB / 0.6004 GB, free: 9.258 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002373/0.767, allocations: 366.7 kB / 0.6007 GB, free: 8.891 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/0.7685, allocations: 0.5265 MB / 0.6012 GB, free: 8.367 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001754/0.7703, allocations: 0.7584 MB / 0.602 GB, free: 7.523 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00175/0.7721, allocations: 0.6559 MB / 0.6026 GB, free: 6.855 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.7721, allocations: 7.938 kB / 0.6026 GB, free: 6.848 MB / 442.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.006535/0.7787, allocations: 2.02 MB / 0.6046 GB, free: 4.805 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.731e-05/0.7788, allocations: 59.41 kB / 0.6047 GB, free: 4.734 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005593/0.7844, allocations: 1.662 MB / 0.6063 GB, free: 3.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003561/0.788, allocations: 0.6526 MB / 0.6069 GB, free: 2.414 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.7892, allocations: 139.7 kB / 0.607 GB, free: 2.277 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01588/0.8051, allocations: 5.911 MB / 0.6128 GB, free: 12.23 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.8064, allocations: 63.94 kB / 0.6129 GB, free: 12.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.8065, allocations: 52.08 kB / 0.6129 GB, free: 12.11 MB / 458.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.0004932/0.807, allocations: 269.2 kB / 0.6132 GB, free: 11.83 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002679/0.8073, allocations: 86.95 kB / 0.6133 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003682/0.811, allocations: 1.434 MB / 0.6147 GB, free: 10.29 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.591e-05/0.8111, allocations: 27.98 kB / 0.6147 GB, free: 10.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.8111, allocations: 0 / 0.6147 GB, free: 10.27 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.895e-05/0.8111, allocations: 3.984 kB / 0.6147 GB, free: 10.26 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0073/0.8185, allocations: 2.819 MB / 0.6175 GB, free: 7.363 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/0.8185, allocations: 4 kB / 0.6175 GB, free: 7.359 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002198/0.8207, allocations: 227.8 kB / 0.6177 GB, free: 7.137 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.093e-05/0.8208, allocations: 11.95 kB / 0.6177 GB, free: 7.125 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.8209, allocations: 31.97 kB / 0.6177 GB, free: 7.094 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.115e-05/0.8209, allocations: 4 kB / 0.6177 GB, free: 7.09 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/0.8209, allocations: 7.984 kB / 0.6177 GB, free: 7.082 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005477/0.8264, allocations: 2.332 MB / 0.62 GB, free: 4.684 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003113/0.8268, allocations: 148.1 kB / 0.6201 GB, free: 4.52 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/0.827, allocations: 31.98 kB / 0.6202 GB, free: 4.488 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008727/0.8279, allocations: 55.94 kB / 0.6202 GB, free: 4.434 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003862/0.8283, allocations: 116.6 kB / 0.6203 GB, free: 4.316 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/0.8285, allocations: 31.98 kB / 0.6204 GB, free: 4.285 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006409/0.8291, allocations: 329.6 kB / 0.6207 GB, free: 3.965 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8291, allocations: 0 / 0.6207 GB, free: 3.965 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001446/0.8306, allocations: 327.9 kB / 0.621 GB, free: 3.645 MB / 458.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.006364/0.837, allocations: 3.257 MB / 0.6242 GB, free: 324 kB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005208/0.8422, allocations: 1.85 MB / 0.626 GB, free: 14.43 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.8423, allocations: 0.5625 kB / 0.626 GB, free: 14.43 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002003/0.8443, allocations: 0.8899 MB / 0.6269 GB, free: 13.52 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009919/0.8453, allocations: 113.9 kB / 0.627 GB, free: 13.41 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006453/0.8518, allocations: 2.191 MB / 0.6291 GB, free: 11.16 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/0.8529, allocations: 1.121 MB / 0.6302 GB, free: 10.01 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009198/0.8539, allocations: 347.3 kB / 0.6305 GB, free: 9.672 MB / 474.7 MB Notification: Performance of SimCode: time 1.392e-06/0.8539, allocations: 0 / 0.6305 GB, free: 9.672 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.587/4.441, allocations: 18.16 MB / 0.6483 GB, free: 134.6 MB / 474.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)