Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.0009337/0.0009338, allocations: 179.7 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.305/1.305, allocations: 194.5 MB / 211.6 MB, free: 3.051 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001712/0.001712, allocations: 116.4 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1622/0.1622, allocations: 38 MB / 340.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003672/0.0003674, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08832/0.08871, allocations: 53.24 MB / 457.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3155/0.4042, allocations: 102 MB / 0.546 GB, free: 9.477 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.4045, allocations: 92.77 kB / 0.5461 GB, free: 9.426 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06938/0.4739, allocations: 25.07 MB / 0.5705 GB, free: 3.789 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.4739, allocations: 0 / 0.5705 GB, free: 3.789 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001053/0.4741, allocations: 24 kB / 0.5706 GB, free: 3.766 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.004237/0.4783, allocations: 1.49 MB / 0.572 GB, free: 2.277 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.4784, allocations: 12.02 kB / 0.572 GB, free: 2.266 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005701/0.4789, allocations: 174.5 kB / 0.5722 GB, free: 2.148 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001382/0.4803, allocations: 198.7 kB / 0.5724 GB, free: 1.953 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003682/0.484, allocations: 1.214 MB / 0.5736 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.4842, allocations: 84.36 kB / 0.5736 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003598/0.4846, allocations: 106.5 kB / 0.5738 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003185/0.4877, allocations: 1.573 MB / 0.5753 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.684e-05/0.4878, allocations: 4 kB / 0.5753 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000148/0.488, allocations: 46.22 kB / 0.5753 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.41e-05/0.4881, allocations: 69.05 kB / 0.5754 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002345/0.4904, allocations: 1.395 MB / 0.5768 GB, free: 14.51 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008377/0.4988, allocations: 5.699 MB / 0.5823 GB, free: 9.641 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001558/0.5004, allocations: 1.07 MB / 0.5834 GB, free: 8.902 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.405e-05/0.5005, allocations: 21.05 kB / 0.5834 GB, free: 8.883 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001497/0.502, allocations: 1.112 MB / 0.5845 GB, free: 8.02 MB / 394.7 MB Notification: Performance of pre-optimization done (n=157): time 3.757e-06/0.502, allocations: 0 / 0.5845 GB, free: 8.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=158): time 0.007581/0.5096, allocations: 5.07 MB / 0.5894 GB, free: 3.922 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.5098, allocations: 213.2 kB / 0.5896 GB, free: 3.672 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007179/0.5105, allocations: 498.2 kB / 0.5901 GB, free: 3.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.5106, allocations: 57.7 kB / 0.5902 GB, free: 3.117 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003953/0.511, allocations: 448.5 kB / 0.5906 GB, free: 2.672 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004464/0.5115, allocations: 481.4 kB / 0.5911 GB, free: 2.195 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.392e-05/0.5116, allocations: 28 kB / 0.5911 GB, free: 2.168 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002089/0.5118, allocations: 414.7 kB / 0.5915 GB, free: 1.754 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/0.5129, allocations: 0.6871 MB / 0.5921 GB, free: 1.066 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/0.5141, allocations: 0.9721 MB / 0.5931 GB, free: 0 / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001253/0.5153, allocations: 0.8483 MB / 0.5939 GB, free: 15.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.293e-06/0.5154, allocations: 0 / 0.5939 GB, free: 15.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005822/0.5212, allocations: 2.842 MB / 0.5967 GB, free: 12.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/0.5213, allocations: 67.36 kB / 0.5968 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00465/0.526, allocations: 2.38 MB / 0.5991 GB, free: 9.812 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003468/0.5295, allocations: 1.087 MB / 0.6001 GB, free: 8.723 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005842/0.5301, allocations: 151.7 kB / 0.6003 GB, free: 8.574 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01437/0.5445, allocations: 8.675 MB / 0.6088 GB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.5456, allocations: 99.83 kB / 0.6089 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002364/0.5459, allocations: 56 kB / 0.6089 GB, free: 15.61 MB / 426.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.001107/0.547, allocations: 488.7 kB / 0.6094 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003636/0.5474, allocations: 102.8 kB / 0.6095 GB, free: 15.01 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002923/0.5503, allocations: 1.861 MB / 0.6113 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.475e-05/0.5504, allocations: 31.98 kB / 0.6113 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.5504, allocations: 4 kB / 0.6113 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.5504, allocations: 7.984 kB / 0.6113 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005413/0.5558, allocations: 3.398 MB / 0.6147 GB, free: 9.602 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.5559, allocations: 0 / 0.6147 GB, free: 9.602 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001961/0.5578, allocations: 383.7 kB / 0.615 GB, free: 9.227 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001172/0.558, allocations: 32.78 kB / 0.6151 GB, free: 9.191 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.62e-05/0.5581, allocations: 35.97 kB / 0.6151 GB, free: 9.156 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009669/0.559, allocations: 1.335 MB / 0.6164 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5591, allocations: 3.938 kB / 0.6164 GB, free: 7.684 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003968/0.563, allocations: 2.94 MB / 0.6193 GB, free: 4.684 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000702/0.5637, allocations: 299.8 kB / 0.6195 GB, free: 4.371 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001613/0.5639, allocations: 47.86 kB / 0.6196 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006441/0.5646, allocations: 75.91 kB / 0.6197 GB, free: 4.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003089/0.5649, allocations: 136.8 kB / 0.6198 GB, free: 4.113 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.887e-05/0.565, allocations: 39.98 kB / 0.6198 GB, free: 4.074 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006369/0.5656, allocations: 378.8 kB / 0.6202 GB, free: 3.703 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5657, allocations: 0 / 0.6202 GB, free: 3.703 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001831/0.5675, allocations: 407.9 kB / 0.6206 GB, free: 3.305 MB / 426.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.004932/0.5724, allocations: 3.816 MB / 0.6243 GB, free: 15.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004529/0.577, allocations: 2.53 MB / 0.6268 GB, free: 12.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.577, allocations: 64 / 0.6268 GB, free: 12.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.5785, allocations: 1.225 MB / 0.628 GB, free: 11.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008274/0.5794, allocations: 149.6 kB / 0.6281 GB, free: 11.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01568/0.595, allocations: 13.48 MB / 0.6413 GB, free: 13.64 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008842/0.596, allocations: 1.238 MB / 0.6425 GB, free: 12.36 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008143/0.5968, allocations: 276.1 kB / 0.6428 GB, free: 12.09 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006099/0.5974, allocations: 395.3 kB / 0.6431 GB, free: 11.7 MB / 458.7 MB Notification: Performance of SimCode: time 6.21e-07/0.5974, allocations: 0 / 0.6431 GB, free: 11.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04832/0.6458, allocations: 25.89 MB / 0.6684 GB, free: 1.797 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002349/0.6461, allocations: 191.9 kB / 0.6686 GB, free: 1.555 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.554/3.2, allocations: 0 / 0.6686 GB, free: 1.555 MB / 474.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Fault.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)