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.002306/0.002306, allocations: 185.3 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.015/2.015, allocations: 205.2 MB / 218.9 MB, free: 9.145 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.001049/0.001048, allocations: 94.58 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2784/0.2784, allocations: 37.97 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.579e-05/3.6e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 56.32 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5182/0.6298, allocations: 106.1 MB / 0.5657 GB, free: 13.6 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003202/0.6302, allocations: 91.94 kB / 0.5658 GB, free: 13.51 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.114/0.7442, allocations: 25.18 MB / 0.5904 GB, free: 4.039 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.7443, allocations: 0 / 0.5904 GB, free: 4.039 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.051e-05/0.7444, allocations: 20 kB / 0.5904 GB, free: 4.02 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: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.004138/0.7485, allocations: 1.396 MB / 0.5918 GB, free: 2.539 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.7486, allocations: 12.03 kB / 0.5918 GB, free: 2.527 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003558/0.749, allocations: 169.4 kB / 0.5919 GB, free: 2.352 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001682/0.7507, allocations: 203 kB / 0.5921 GB, free: 2.152 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005109/0.7558, allocations: 1.309 MB / 0.5934 GB, free: 0.8008 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.756, allocations: 78 kB / 0.5935 GB, free: 0.7227 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003151/0.7563, allocations: 115.9 kB / 0.5936 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004021/0.7603, allocations: 1.567 MB / 0.5951 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.17e-05/0.7604, allocations: 3.938 kB / 0.5951 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001859/0.7606, allocations: 47.97 kB / 0.5952 GB, free: 14.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001507/0.7608, allocations: 77.95 kB / 0.5952 GB, free: 14.83 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003732/0.7645, allocations: 1.382 MB / 0.5966 GB, free: 13.44 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01388/0.7784, allocations: 5.76 MB / 0.6022 GB, free: 7.508 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002714/0.7812, allocations: 1.089 MB / 0.6033 GB, free: 6.398 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001951/0.7832, allocations: 0.8342 MB / 0.6041 GB, free: 5.559 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001269/0.7833, allocations: 16.98 kB / 0.6041 GB, free: 5.543 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002601/0.7859, allocations: 1.124 MB / 0.6052 GB, free: 4.387 MB / 442.7 MB Notification: Performance of pre-optimization done (n=161): time 6.602e-06/0.7859, allocations: 0 / 0.6052 GB, free: 4.387 MB / 442.7 MB Notification: Performance of matching and sorting (n=162): time 0.009932/0.7959, allocations: 3.931 MB / 0.6091 GB, free: 368 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000183/0.7961, allocations: 242.9 kB / 0.6093 GB, free: 72 kB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.7971, allocations: 0.493 MB / 0.6098 GB, free: 15.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000164/0.7973, allocations: 57.7 kB / 0.6098 GB, free: 15.51 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005303/0.7978, allocations: 495 kB / 0.6103 GB, free: 15.02 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006328/0.7985, allocations: 489.4 kB / 0.6108 GB, free: 14.54 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.7986, allocations: 35.98 kB / 0.6108 GB, free: 14.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002302/0.7989, allocations: 374.8 kB / 0.6111 GB, free: 14.13 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001836/0.8007, allocations: 0.6912 MB / 0.6118 GB, free: 13.44 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002148/0.8029, allocations: 0.9873 MB / 0.6128 GB, free: 12.35 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00207/0.805, allocations: 0.8555 MB / 0.6136 GB, free: 11.48 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.116e-06/0.805, allocations: 0 / 0.6136 GB, free: 11.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.009265/0.8143, allocations: 2.808 MB / 0.6164 GB, free: 8.652 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.684e-05/0.8144, allocations: 59.41 kB / 0.6164 GB, free: 8.582 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007895/0.8223, allocations: 2.352 MB / 0.6187 GB, free: 6.227 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005849/0.8282, allocations: 1.071 MB / 0.6198 GB, free: 5.152 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/0.8293, allocations: 143.7 kB / 0.6199 GB, free: 5.012 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02292/0.8522, allocations: 8.194 MB / 0.6279 GB, free: 12.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.8537, allocations: 103.8 kB / 0.628 GB, free: 12.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001622/0.8539, allocations: 56 kB / 0.6281 GB, free: 12.52 MB / 474.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.0005492/0.8545, allocations: 295.9 kB / 0.6283 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003283/0.8548, allocations: 106.8 kB / 0.6284 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004889/0.8597, allocations: 1.858 MB / 0.6303 GB, free: 10.23 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.613e-05/0.8598, allocations: 39.98 kB / 0.6303 GB, free: 10.19 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.8599, allocations: 0 / 0.6303 GB, free: 10.19 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.1e-05/0.8599, allocations: 11.94 kB / 0.6303 GB, free: 10.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009961/0.8699, allocations: 3.543 MB / 0.6338 GB, free: 6.547 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.519e-05/0.87, allocations: 7.938 kB / 0.6338 GB, free: 6.539 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004009/0.874, allocations: 379.7 kB / 0.6341 GB, free: 6.168 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002869/0.8743, allocations: 56.81 kB / 0.6342 GB, free: 6.109 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002022/0.8745, allocations: 31.98 kB / 0.6342 GB, free: 6.078 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002002/0.8765, allocations: 1.556 MB / 0.6357 GB, free: 4.387 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.084e-06/0.8766, allocations: 4 kB / 0.6357 GB, free: 4.383 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007533/0.8841, allocations: 2.98 MB / 0.6387 GB, free: 1.336 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/0.8853, allocations: 303.8 kB / 0.6389 GB, free: 1.02 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002985/0.8856, allocations: 47.92 kB / 0.639 GB, free: 0.9727 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.8868, allocations: 83.84 kB / 0.6391 GB, free: 0.8906 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004877/0.8873, allocations: 128.8 kB / 0.6392 GB, free: 0.7617 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/0.8875, allocations: 44.11 kB / 0.6392 GB, free: 0.7188 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008334/0.8883, allocations: 395.2 kB / 0.6396 GB, free: 344 kB / 474.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8884, allocations: 4 kB / 0.6396 GB, free: 340 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.3256/1.214, allocations: 417.5 kB / 0.64 GB, free: 135.5 MB / 474.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.008832/1.223, allocations: 3.908 MB / 0.6438 GB, free: 134.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007953/1.231, allocations: 2.502 MB / 0.6463 GB, free: 134 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/1.231, allocations: 0 / 0.6463 GB, free: 134 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003044/1.234, allocations: 1.226 MB / 0.6475 GB, free: 133.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/1.235, allocations: 135.9 kB / 0.6476 GB, free: 133.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008806/1.244, allocations: 2.899 MB / 0.6504 GB, free: 133.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00134/1.246, allocations: 1.243 MB / 0.6516 GB, free: 132.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001247/1.247, allocations: 428.1 kB / 0.6521 GB, free: 132.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.243e-06/1.247, allocations: 0 / 0.6521 GB, free: 132.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.494/4.741, allocations: 24.28 MB / 0.6758 GB, free: 130.8 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)