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.002305/0.002305, allocations: 185.7 kB / 8.01 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.264/2.264, 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.001076/0.001076, allocations: 90.22 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2678/0.2678, allocations: 37.99 MB / 347.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.263e-05/2.267e-05, allocations: 0 / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5091/0.6202, allocations: 105.4 MB / 0.5583 GB, free: 5.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/0.6206, allocations: 88.8 kB / 0.5584 GB, free: 5.938 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1107/0.7312, allocations: 24.97 MB / 0.5827 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.7313, allocations: 0 / 0.5827 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.69e-05/0.7314, allocations: 28 kB / 0.5828 GB, free: 0.6562 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: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.005116/0.7365, allocations: 1.394 MB / 0.5841 GB, free: 15.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.7366, allocations: 8.031 kB / 0.5841 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002122/0.7387, allocations: 195 kB / 0.5843 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005555/0.7443, allocations: 1.296 MB / 0.5856 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.7445, allocations: 43.73 kB / 0.5856 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000444/0.745, allocations: 71.22 kB / 0.5857 GB, free: 13.85 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003968/0.749, allocations: 1.28 MB / 0.5869 GB, free: 12.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004344/0.7533, allocations: 1.433 MB / 0.5883 GB, free: 11.83 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.363e-05/0.7535, allocations: 0 / 0.5883 GB, free: 11.83 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001542/0.7536, allocations: 15.92 kB / 0.5884 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000159/0.7538, allocations: 69.28 kB / 0.5884 GB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01537/0.7692, allocations: 5.568 MB / 0.5939 GB, free: 6.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002571/0.7718, allocations: 1.038 MB / 0.5949 GB, free: 6.301 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002022/0.7739, allocations: 0.7995 MB / 0.5957 GB, free: 5.793 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001334/0.7741, allocations: 19.91 kB / 0.5957 GB, free: 5.773 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00267/0.7768, allocations: 1.088 MB / 0.5967 GB, free: 4.914 MB / 394.7 MB Notification: Performance of pre-optimization done (n=161): time 6.863e-06/0.7768, allocations: 0 / 0.5967 GB, free: 4.914 MB / 394.7 MB Notification: Performance of matching and sorting (n=162): time 0.01052/0.7874, allocations: 3.58 MB / 0.6002 GB, free: 2.086 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001954/0.7876, allocations: 238.5 kB / 0.6005 GB, free: 1.805 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009492/0.7886, allocations: 463 kB / 0.6009 GB, free: 1.441 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003478/0.789, allocations: 40.81 kB / 0.6009 GB, free: 1.398 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005032/0.7895, allocations: 486.5 kB / 0.6014 GB, free: 1.012 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000806/0.7903, allocations: 478.7 kB / 0.6019 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.7904, allocations: 0 / 0.6019 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.7907, allocations: 381.7 kB / 0.6022 GB, free: 252 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001839/0.7925, allocations: 0.6604 MB / 0.6029 GB, free: 15.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002425/0.795, allocations: 0.9384 MB / 0.6038 GB, free: 14.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002448/0.7975, allocations: 0.7819 MB / 0.6046 GB, free: 14.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.881e-05/0.7976, allocations: 0 / 0.6046 GB, free: 14.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.009969/0.8076, allocations: 2.606 MB / 0.6071 GB, free: 11.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.728e-05/0.8077, allocations: 59.41 kB / 0.6072 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008435/0.8161, allocations: 2.247 MB / 0.6093 GB, free: 9.203 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00616/0.8224, allocations: 1.039 MB / 0.6104 GB, free: 8.164 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.8235, allocations: 159.5 kB / 0.6105 GB, free: 8.008 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02286/0.8464, allocations: 7.875 MB / 0.6182 GB, free: 8 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00161/0.8481, allocations: 67.91 kB / 0.6183 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000255/0.8484, allocations: 52 kB / 0.6183 GB, free: 15.89 MB / 426.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 () * 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.0005722/0.8489, allocations: 248 kB / 0.6186 GB, free: 15.63 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004743/0.8537, allocations: 1.598 MB / 0.6201 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005392/0.8543, allocations: 98.86 kB / 0.6202 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00532/0.8596, allocations: 1.711 MB / 0.6219 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.962e-05/0.8598, allocations: 35.98 kB / 0.6219 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.8598, allocations: 0 / 0.6219 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.708e-05/0.8598, allocations: 3.984 kB / 0.6219 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01049/0.8703, allocations: 3.224 MB / 0.6251 GB, free: 8.883 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-05/0.8704, allocations: 4 kB / 0.6251 GB, free: 8.879 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004105/0.8745, allocations: 379.7 kB / 0.6254 GB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003004/0.8749, allocations: 56.75 kB / 0.6255 GB, free: 8.449 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003217/0.8752, allocations: 19.98 kB / 0.6255 GB, free: 8.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002012/0.8772, allocations: 1.509 MB / 0.627 GB, free: 6.805 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.8773, allocations: 4.094 kB / 0.627 GB, free: 6.801 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007433/0.8847, allocations: 2.811 MB / 0.6297 GB, free: 3.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/0.886, allocations: 303.8 kB / 0.63 GB, free: 3.613 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003126/0.8863, allocations: 23.98 kB / 0.63 GB, free: 3.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.8876, allocations: 59.91 kB / 0.6301 GB, free: 3.531 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004919/0.8881, allocations: 141 kB / 0.6302 GB, free: 3.395 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001553/0.8883, allocations: 39.98 kB / 0.6303 GB, free: 3.355 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000711/0.889, allocations: 338.9 kB / 0.6306 GB, free: 3.027 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.889, allocations: 0 / 0.6306 GB, free: 3.027 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002341/0.8913, allocations: 367.9 kB / 0.6309 GB, free: 2.668 MB / 426.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) * 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.008573/0.9, allocations: 3.736 MB / 0.6346 GB, free: 14.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01022/0.9102, allocations: 2.391 MB / 0.6369 GB, free: 12.45 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.337e-06/0.9103, allocations: 0 / 0.6369 GB, free: 12.45 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004378/0.9147, allocations: 1.197 MB / 0.6381 GB, free: 11.22 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.9163, allocations: 110 kB / 0.6382 GB, free: 11.11 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009274/0.9256, allocations: 2.798 MB / 0.6409 GB, free: 8.242 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001395/0.927, allocations: 1.241 MB / 0.6421 GB, free: 6.973 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/0.9283, allocations: 431.3 kB / 0.6426 GB, free: 6.551 MB / 442.7 MB Notification: Performance of SimCode: time 1.312e-06/0.9284, allocations: 0 / 0.6426 GB, free: 6.551 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.344/4.272, allocations: 24.07 MB / 0.6661 GB, free: 14.45 MB / 474.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)