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.002246/0.002246, allocations: 185.8 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 2.019/2.019, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.001147/0.001147, allocations: 94.64 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2813/0.2813, allocations: 37.97 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.114e-05/5.129e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1179, allocations: 56.32 MB / 473.2 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5424/0.6604, allocations: 106.9 MB / 0.5666 GB, free: 12.71 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000319/0.6608, allocations: 87.94 kB / 0.5666 GB, free: 12.63 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1128/0.7736, allocations: 25.07 MB / 0.5911 GB, free: 3.281 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.7736, allocations: 0 / 0.5911 GB, free: 3.281 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.322e-05/0.7737, allocations: 20 kB / 0.5911 GB, free: 3.262 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.004907/0.7786, allocations: 1.389 MB / 0.5925 GB, free: 1.797 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.7787, allocations: 11.97 kB / 0.5925 GB, free: 1.785 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005669/0.7793, allocations: 173.3 kB / 0.5927 GB, free: 1.605 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001932/0.7812, allocations: 198.3 kB / 0.5929 GB, free: 1.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005124/0.7864, allocations: 1.204 MB / 0.594 GB, free: 172 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.7866, allocations: 85.97 kB / 0.5941 GB, free: 84 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003513/0.7869, allocations: 108 kB / 0.5942 GB, free: 15.97 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00434/0.7913, allocations: 1.551 MB / 0.5957 GB, free: 14.34 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.74e-05/0.7914, allocations: 3.938 kB / 0.5957 GB, free: 14.34 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001891/0.7916, allocations: 47.97 kB / 0.5958 GB, free: 14.29 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001492/0.7918, allocations: 73.98 kB / 0.5959 GB, free: 14.22 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004179/0.7959, allocations: 1.359 MB / 0.5972 GB, free: 12.86 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01551/0.8115, allocations: 5.69 MB / 0.6027 GB, free: 6.988 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002915/0.8145, allocations: 1.072 MB / 0.6038 GB, free: 5.895 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002078/0.8166, allocations: 0.8026 MB / 0.6046 GB, free: 5.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001394/0.8168, allocations: 20.92 kB / 0.6046 GB, free: 5.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002772/0.8195, allocations: 1.095 MB / 0.6057 GB, free: 3.945 MB / 442.7 MB Notification: Performance of pre-optimization done (n=157): time 5.069e-06/0.8196, allocations: 0 / 0.6057 GB, free: 3.945 MB / 442.7 MB Notification: Performance of matching and sorting (n=158): time 0.01037/0.83, allocations: 3.753 MB / 0.6093 GB, free: 92 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002038/0.8302, allocations: 221.2 kB / 0.6095 GB, free: 15.83 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.8312, allocations: 488.8 kB / 0.61 GB, free: 15.35 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003266/0.8316, allocations: 61.69 kB / 0.6101 GB, free: 15.28 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005158/0.8321, allocations: 475 kB / 0.6105 GB, free: 14.81 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007623/0.8329, allocations: 477.4 kB / 0.611 GB, free: 14.34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.833, allocations: 32 kB / 0.611 GB, free: 14.31 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002446/0.8333, allocations: 378.8 kB / 0.6114 GB, free: 13.93 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001946/0.8353, allocations: 0.6756 MB / 0.612 GB, free: 13.25 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002309/0.8376, allocations: 0.9531 MB / 0.613 GB, free: 12.21 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002277/0.8399, allocations: 0.8478 MB / 0.6138 GB, free: 11.35 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.989e-06/0.84, allocations: 3.938 kB / 0.6138 GB, free: 11.35 MB / 458.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.009882/0.8498, allocations: 2.773 MB / 0.6165 GB, free: 8.547 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.191e-05/0.85, allocations: 63.94 kB / 0.6166 GB, free: 8.473 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008597/0.8586, allocations: 2.368 MB / 0.6189 GB, free: 6.102 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006069/0.8647, allocations: 1.083 MB / 0.6199 GB, free: 5.016 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.8658, allocations: 143.7 kB / 0.6201 GB, free: 4.875 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02412/0.89, allocations: 8.293 MB / 0.6282 GB, free: 12.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.8916, allocations: 95.84 kB / 0.6283 GB, free: 12.35 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/0.8918, allocations: 55.98 kB / 0.6283 GB, free: 12.29 MB / 474.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 () * 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.0005649/0.8924, allocations: 284 kB / 0.6286 GB, free: 12 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003633/0.8928, allocations: 102.8 kB / 0.6287 GB, free: 11.89 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00508/0.8979, allocations: 1.838 MB / 0.6305 GB, free: 10.03 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.547e-05/0.898, allocations: 35.97 kB / 0.6305 GB, free: 9.996 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.898, allocations: 0 / 0.6305 GB, free: 9.996 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.678e-05/0.8981, allocations: 11.92 kB / 0.6305 GB, free: 9.984 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01011/0.9082, allocations: 3.375 MB / 0.6338 GB, free: 6.527 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.9082, allocations: 3.938 kB / 0.6338 GB, free: 6.523 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00408/0.9123, allocations: 375.6 kB / 0.6342 GB, free: 6.156 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002244/0.9126, allocations: 36.8 kB / 0.6342 GB, free: 6.117 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003319/0.913, allocations: 31.97 kB / 0.6342 GB, free: 6.086 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001391/0.9144, allocations: 1.334 MB / 0.6355 GB, free: 4.621 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.696e-06/0.9144, allocations: 160 / 0.6355 GB, free: 4.621 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007792/0.9222, allocations: 2.917 MB / 0.6384 GB, free: 1.641 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001133/0.9234, allocations: 307.8 kB / 0.6387 GB, free: 1.32 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003063/0.9237, allocations: 39.98 kB / 0.6387 GB, free: 1.281 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001214/0.9249, allocations: 75.89 kB / 0.6388 GB, free: 1.207 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005009/0.9255, allocations: 132.8 kB / 0.6389 GB, free: 1.078 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/0.9256, allocations: 39.98 kB / 0.639 GB, free: 1.039 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007725/0.9264, allocations: 373.5 kB / 0.6393 GB, free: 0.6758 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.9264, allocations: 4 kB / 0.6393 GB, free: 0.6719 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002067/0.9285, allocations: 408 kB / 0.6397 GB, free: 280 kB / 474.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) * 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.3841/1.313, allocations: 3.767 MB / 0.6434 GB, free: 135 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008381/1.321, allocations: 2.487 MB / 0.6458 GB, free: 134.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/1.321, allocations: 0.9688 kB / 0.6458 GB, free: 134.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002738/1.324, allocations: 1.186 MB / 0.647 GB, free: 134.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/1.325, allocations: 140.5 kB / 0.6471 GB, free: 134.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008895/1.334, allocations: 2.845 MB / 0.6499 GB, free: 133.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/1.336, allocations: 1.233 MB / 0.6511 GB, free: 133.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/1.337, allocations: 409.8 kB / 0.6515 GB, free: 133.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.082e-06/1.337, allocations: 1.312 kB / 0.6515 GB, free: 133.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.349/4.685, allocations: 23.88 MB / 0.6748 GB, free: 131.6 MB / 474.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)