Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_DFIG,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_DFIG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_DFIG,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_DFIG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 116.5 kB / 16.63 MB, free: 6.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 197.8 kB / 17.55 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1721/0.1721, allocations: 38.02 MB / 329.4 MB, free: 8.969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 61.73 kB / 398.4 MB, free: 34.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08626/0.08747, allocations: 58.06 MB / 456.4 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01361/0.1011, allocations: 12.64 MB / 469.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.1114, allocations: 6.847 MB / 475.9 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.1127, allocations: 91.44 kB / 476 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0106/0.1234, allocations: 5.544 MB / 481.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002579/0.126, allocations: 0.9923 MB / 482.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001649/0.1276, allocations: 0.5889 MB / 483.1 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003953/0.1316, allocations: 3.263 MB / 486.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001736/0.1334, allocations: 1.059 MB / 487.5 MB, free: 9.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001886/0.1353, allocations: 1.07 MB / 488.5 MB, free: 8.086 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002048/0.1373, allocations: 1.445 MB / 490 MB, free: 6.637 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005071/0.1378, allocations: 144 kB / 490.1 MB, free: 6.496 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001149/0.139, allocations: 427.5 kB / 490.5 MB, free: 6.078 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001037/0.14, allocations: 0.8573 MB / 491.4 MB, free: 5.219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001483/0.1415, allocations: 0.929 MB / 492.3 MB, free: 4.285 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00254/0.1441, allocations: 2.235 MB / 494.5 MB, free: 2.043 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1441, allocations: 0 / 494.5 MB, free: 2.043 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1441, allocations: 0 / 494.5 MB, free: 2.043 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.772e-05/0.1442, allocations: 3.938 kB / 494.5 MB, free: 2.039 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.00466/0.1489, allocations: 2.063 MB / 496.6 MB, free: 15.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.1489, allocations: 15.89 kB / 496.6 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004023/0.1493, allocations: 224 kB / 496.8 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001619/0.151, allocations: 278.5 kB / 497.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002366/0.1533, allocations: 1.151 MB / 498.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.972e-05/0.1534, allocations: 102.6 kB / 498.4 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000537/0.154, allocations: 231.7 kB / 498.6 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003244/0.1572, allocations: 2.099 MB / 0.489 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.369e-05/0.1573, allocations: 7.984 kB / 0.489 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/0.1574, allocations: 59.97 kB / 0.489 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006527/0.1581, allocations: 182.6 kB / 0.4892 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002828/0.1609, allocations: 1.709 MB / 0.4909 GB, free: 9.711 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01062/0.1716, allocations: 7.957 MB / 0.4986 GB, free: 1.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1511/0.3226, allocations: 1.619 MB / 0.5002 GB, free: 56.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/0.3239, allocations: 0.6632 MB / 0.5009 GB, free: 56.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.709e-05/0.324, allocations: 17.94 kB / 0.5009 GB, free: 56.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.324, allocations: 49.72 kB / 0.5009 GB, free: 56.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.045e-06/0.324, allocations: 0.9062 kB / 0.5009 GB, free: 56.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.00811/0.3322, allocations: 5.092 MB / 0.5059 GB, free: 54.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.3322, allocations: 96.7 kB / 0.506 GB, free: 54.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.3333, allocations: 0.9361 MB / 0.5069 GB, free: 54.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.896e-05/0.3334, allocations: 47.33 kB / 0.507 GB, free: 54.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003679/0.3338, allocations: 0.7183 MB / 0.5077 GB, free: 53.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002897/0.3341, allocations: 0.4944 MB / 0.5081 GB, free: 53.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004176/0.3345, allocations: 305.5 kB / 0.5084 GB, free: 53.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.351e-05/0.3345, allocations: 307.6 kB / 0.5087 GB, free: 52.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.3356, allocations: 0.7086 MB / 0.5094 GB, free: 52.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001248/0.3369, allocations: 1.151 MB / 0.5105 GB, free: 51.8 MB / 382.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.009509/0.3464, allocations: 4.093 MB / 0.5145 GB, free: 50.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.299e-05/0.3464, allocations: 3.562 kB / 0.5145 GB, free: 50.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006257/0.3527, allocations: 3.354 MB / 0.5178 GB, free: 49.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.3527, allocations: 14.78 kB / 0.5178 GB, free: 49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.718e-05/0.3527, allocations: 14.41 kB / 0.5178 GB, free: 49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002768/0.3555, allocations: 1.207 MB / 0.519 GB, free: 48.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.3567, allocations: 300 kB / 0.5193 GB, free: 48.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01491/0.3716, allocations: 15.16 MB / 0.5341 GB, free: 36.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/0.3727, allocations: 71.95 kB / 0.5342 GB, free: 36.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001805/0.3729, allocations: 69.22 kB / 0.5342 GB, free: 36.62 MB / 382.1 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 $DER.inertia.w = 0.0 infBus.V = 15000.0 * infBus.v0 line.omega[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,15), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.00077/0.3737, allocations: 0.5 MB / 0.5347 GB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002539/0.374, allocations: 138.3 kB / 0.5349 GB, free: 35.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002612/0.3766, allocations: 2.014 MB / 0.5368 GB, free: 33.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.3766, allocations: 17.22 kB / 0.5369 GB, free: 33.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3766, allocations: 0 / 0.5369 GB, free: 33.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.3767, allocations: 11.97 kB / 0.5369 GB, free: 33.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004961/0.3816, allocations: 3.752 MB / 0.5405 GB, free: 29.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.3816, allocations: 4 kB / 0.5405 GB, free: 29.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/0.3832, allocations: 324 kB / 0.5408 GB, free: 29.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004282/0.3836, allocations: 196.9 kB / 0.541 GB, free: 29.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.3838, allocations: 51.98 kB / 0.5411 GB, free: 29.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003326/0.3871, allocations: 6.676 MB / 0.5476 GB, free: 22.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.3871, allocations: 7.938 kB / 0.5476 GB, free: 22.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002971/0.3901, allocations: 2.72 MB / 0.5503 GB, free: 19.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004504/0.3905, allocations: 311.4 kB / 0.5506 GB, free: 18.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001958/0.3908, allocations: 43.98 kB / 0.5506 GB, free: 18.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007054/0.3915, allocations: 55.86 kB / 0.5507 GB, free: 18.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.3917, allocations: 109 kB / 0.5508 GB, free: 18.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-05/0.3917, allocations: 40 kB / 0.5508 GB, free: 18.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005744/0.3923, allocations: 0.6205 MB / 0.5514 GB, free: 18.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3923, allocations: 0 / 0.5514 GB, free: 18.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00142/0.3937, allocations: 488 kB / 0.5519 GB, free: 17.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 26 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],generator.phiRotor,line.v[1,2],line.v[1,3],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[2,1],line.i[2,2],line.i[2,3],line.i[3,1],line.i[3,2],line.i[3,3],inertia.phi,inertia.w,meterDC.pav,inverter2.vDC1) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,10,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003135/0.3969, allocations: 3.319 MB / 0.5551 GB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004864/0.4018, allocations: 3.494 MB / 0.5585 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.4018, allocations: 0 / 0.5585 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001366/0.4032, allocations: 1.233 MB / 0.5597 GB, free: 9.379 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.4044, allocations: 329.5 kB / 0.56 GB, free: 9.062 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02578/0.4302, allocations: 18.55 MB / 0.5782 GB, free: 5.703 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001377/0.4317, allocations: 1.521 MB / 0.5796 GB, free: 4.152 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001227/0.4329, allocations: 399.6 kB / 0.58 GB, free: 3.758 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008732/0.4338, allocations: 0.6243 MB / 0.5806 GB, free: 3.133 MB / 398.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4338, allocations: 0 / 0.5806 GB, free: 3.133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06605/0.4999, allocations: 38.45 MB / 0.6182 GB, free: 12.96 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/0.5001, allocations: 226.2 kB / 0.6184 GB, free: 12.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.742/3.242, allocations: 3.938 kB / 0.6184 GB, free: 12.7 MB / 446.1 MB (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Wind_WindTurbine_DFIG_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Wind_WindTurbine_DFIG.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)