Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.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.Elementary.Fault,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Fault",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.002196/0.002196, allocations: 183.7 kB / 15.76 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001117/0.001116, allocations: 98.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2588/0.2588, allocations: 38.04 MB / 356.5 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006251/0.0006248, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1123, allocations: 56.33 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4961/0.6085, allocations: 107 MB / 0.5724 GB, free: 8.551 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/0.6088, allocations: 89.7 kB / 0.5725 GB, free: 8.504 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1111/0.7199, allocations: 25.09 MB / 0.597 GB, free: 2.852 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.72, allocations: 0 / 0.597 GB, free: 2.852 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.947e-05/0.7201, allocations: 24 kB / 0.597 GB, free: 2.828 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.005036/0.7251, allocations: 1.492 MB / 0.5985 GB, free: 1.336 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.7252, allocations: 8.031 kB / 0.5985 GB, free: 1.328 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005353/0.7257, allocations: 173.5 kB / 0.5987 GB, free: 1.211 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001782/0.7275, allocations: 201.5 kB / 0.5989 GB, free: 1.016 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004924/0.7325, allocations: 1.222 MB / 0.6001 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/0.7326, allocations: 77.38 kB / 0.6001 GB, free: 15.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000336/0.733, allocations: 111 kB / 0.6002 GB, free: 15.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004183/0.7372, allocations: 1.571 MB / 0.6018 GB, free: 14.63 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.903e-05/0.7373, allocations: 3.938 kB / 0.6018 GB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001813/0.7375, allocations: 51.03 kB / 0.6018 GB, free: 14.61 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001845/0.7377, allocations: 73.34 kB / 0.6019 GB, free: 14.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004195/0.7419, allocations: 1.389 MB / 0.6033 GB, free: 13.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01556/0.7575, allocations: 5.689 MB / 0.6088 GB, free: 8.703 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002906/0.7604, allocations: 1.076 MB / 0.6099 GB, free: 7.961 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001579/0.7606, allocations: 14.92 kB / 0.6099 GB, free: 7.949 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002865/0.7635, allocations: 1.122 MB / 0.611 GB, free: 7.074 MB / 410.7 MB Notification: Performance of pre-optimization done (n=157): time 5.13e-06/0.7636, allocations: 0 / 0.611 GB, free: 7.074 MB / 410.7 MB Notification: Performance of matching and sorting (n=158): time 0.01307/0.7766, allocations: 5.058 MB / 0.6159 GB, free: 3.012 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001744/0.7768, allocations: 215.9 kB / 0.6161 GB, free: 2.766 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/0.7779, allocations: 495.7 kB / 0.6166 GB, free: 2.371 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003234/0.7782, allocations: 62.44 kB / 0.6166 GB, free: 2.324 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004602/0.7787, allocations: 473.3 kB / 0.6171 GB, free: 1.949 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007554/0.7795, allocations: 486.9 kB / 0.6176 GB, free: 1.535 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.7796, allocations: 24.38 kB / 0.6176 GB, free: 1.531 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.7799, allocations: 383.4 kB / 0.618 GB, free: 1.176 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002052/0.7819, allocations: 0.6971 MB / 0.6186 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002375/0.7843, allocations: 0.9644 MB / 0.6196 GB, free: 15.59 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002392/0.7867, allocations: 0.8521 MB / 0.6204 GB, free: 14.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.497e-05/0.7868, allocations: 4 kB / 0.6204 GB, free: 14.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.01012/0.7969, allocations: 2.796 MB / 0.6231 GB, free: 11.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.33e-05/0.7971, allocations: 59.41 kB / 0.6232 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008708/0.8058, allocations: 2.384 MB / 0.6255 GB, free: 9.453 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006327/0.8121, allocations: 1.09 MB / 0.6266 GB, free: 8.363 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.8133, allocations: 151.7 kB / 0.6267 GB, free: 8.215 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02567/0.839, allocations: 8.69 MB / 0.6352 GB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001562/0.8406, allocations: 99.91 kB / 0.6353 GB, free: 15.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001968/0.8408, allocations: 52 kB / 0.6354 GB, free: 15.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 79 (system.initime,$PRE.fault_ab.fault_pp.t0,fault_ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$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.fault_ab.theta_zero,fault_ab.theta_zero,$PRE.fault_ab.v_pos,fault_ab.v_pos,$PRE.fault_ab.first,fault_ab.first,$PRE.fault_ab.fault_pp.on,fault_ab.fault_pp.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 133 * 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,84.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001239/0.8421, allocations: 480.8 kB / 0.6358 GB, free: 14.74 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003865/0.8425, allocations: 106.7 kB / 0.6359 GB, free: 14.63 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005289/0.8478, allocations: 1.857 MB / 0.6377 GB, free: 12.75 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.64e-05/0.8479, allocations: 35.98 kB / 0.6378 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.8479, allocations: 0 / 0.6378 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.24e-05/0.848, allocations: 11.97 kB / 0.6378 GB, free: 12.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.8583, allocations: 3.399 MB / 0.6411 GB, free: 9.223 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/0.8584, allocations: 0 / 0.6411 GB, free: 9.223 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003984/0.8624, allocations: 383.6 kB / 0.6415 GB, free: 8.848 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002164/0.8626, allocations: 32.8 kB / 0.6415 GB, free: 8.812 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003364/0.863, allocations: 31.97 kB / 0.6415 GB, free: 8.781 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001426/0.8644, allocations: 1.339 MB / 0.6428 GB, free: 7.312 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.8644, allocations: 0 / 0.6428 GB, free: 7.312 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007966/0.8724, allocations: 2.944 MB / 0.6457 GB, free: 4.309 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001074/0.8735, allocations: 299.8 kB / 0.646 GB, free: 3.996 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002851/0.8738, allocations: 35.98 kB / 0.646 GB, free: 3.961 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.875, allocations: 83.89 kB / 0.6461 GB, free: 3.879 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004823/0.8756, allocations: 136.8 kB / 0.6462 GB, free: 3.742 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/0.8757, allocations: 35.98 kB / 0.6463 GB, free: 3.707 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000764/0.8765, allocations: 382.8 kB / 0.6466 GB, free: 3.332 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.8765, allocations: 0 / 0.6466 GB, free: 3.332 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002029/0.8785, allocations: 407.9 kB / 0.647 GB, free: 2.934 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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: 54 (switch1.switch_c.closed,switch1.switch_b.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$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,fault_ab.theta_zero,fault_ab.v_pos,fault_ab.first,fault_ab.fault_pp.on,fault_ab.fault_pp.t0,system.initime) * Number of discrete states: 20 (fault_ab.theta_zero,fault_ab.fault_pp.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_a.open,switch2.switch_b.open,switch2.switch_c.open,fault_ab.v_pos,fault_ab.first,switch1.switch_c.open,switch1.switch_a.open,switch1.switch_b.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 105 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 10 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008562/0.8871, allocations: 3.816 MB / 0.6508 GB, free: 15.06 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008454/0.8956, allocations: 2.546 MB / 0.6532 GB, free: 12.47 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.8957, allocations: 0.5 kB / 0.6532 GB, free: 12.47 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00314/0.8988, allocations: 1.198 MB / 0.6544 GB, free: 11.24 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.9002, allocations: 147.1 kB / 0.6546 GB, free: 11.09 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02877/0.929, allocations: 13.58 MB / 0.6678 GB, free: 13.18 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/0.9305, allocations: 1.242 MB / 0.669 GB, free: 11.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001313/0.9318, allocations: 407.3 kB / 0.6694 GB, free: 11.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.613e-06/0.9319, allocations: 0 / 0.6694 GB, free: 11.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.413/4.344, allocations: 23.64 MB / 0.6925 GB, free: 3.828 MB / 490.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Fault.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)