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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.0007557/0.0007557, allocations: 90.38 kB / 16.65 MB, free: 6.598 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.0009209/0.0009209, allocations: 181.8 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.187/1.187, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1635/0.1635, allocations: 38.07 MB / 310.1 MB, free: 5.91 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004636/0.0004637, allocations: 12 kB / 377.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.1936, allocations: 56.32 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.007862/0.2015, allocations: 12.09 MB / 445.7 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008101/0.2096, allocations: 6.969 MB / 452.6 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001102/0.2107, allocations: 83.44 kB / 452.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007557/0.2183, allocations: 4.874 MB / 457.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002143/0.2205, allocations: 1.004 MB / 458.6 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001349/0.2218, allocations: 0.5811 MB / 459.2 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004625/0.2265, allocations: 4.718 MB / 463.9 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002015/0.2285, allocations: 1.315 MB / 465.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001337/0.2298, allocations: 0.8633 MB / 466.1 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001783/0.2316, allocations: 1.367 MB / 467.4 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001929/0.2318, allocations: 72 kB / 467.5 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007468/0.2326, allocations: 363.5 kB / 467.9 MB, free: 212 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006693/0.2333, allocations: 0.7752 MB / 468.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007745/0.2341, allocations: 0.8565 MB / 469.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001722/0.2358, allocations: 2.141 MB / 471.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.2358, allocations: 4 kB / 471.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2358, allocations: 0 / 471.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.2358, allocations: 0 / 471.7 MB, free: 12.41 MB / 350.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.003227/0.2391, allocations: 1.744 MB / 473.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2391, allocations: 8.031 kB / 473.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002497/0.2394, allocations: 228 kB / 473.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0014/0.2408, allocations: 274.5 kB / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001914/0.2427, allocations: 1.155 MB / 475 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.322e-05/0.2428, allocations: 106.6 kB / 475.2 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004575/0.2433, allocations: 227.7 kB / 475.4 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002824/0.2461, allocations: 2.111 MB / 477.5 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.521e-05/0.2462, allocations: 7.938 kB / 477.5 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001349/0.2463, allocations: 59.97 kB / 477.6 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006152/0.2469, allocations: 182.6 kB / 477.7 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002577/0.2495, allocations: 1.725 MB / 479.5 MB, free: 4.379 MB / 350.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.009643/0.2592, allocations: 7.98 MB / 487.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00212/0.2613, allocations: 1.624 MB / 489.1 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009352/0.2622, allocations: 0.6722 MB / 489.7 MB, free: 9.668 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.309e-05/0.2623, allocations: 24.98 kB / 489.8 MB, free: 9.645 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.2624, allocations: 47.5 kB / 489.8 MB, free: 9.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=127): time 3.096e-06/0.2624, allocations: 0 / 489.8 MB, free: 9.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=138): time 0.008318/0.2707, allocations: 5.127 MB / 494.9 MB, free: 4.277 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.2708, allocations: 90.42 kB / 495 MB, free: 4.172 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001018/0.2718, allocations: 0.9387 MB / 496 MB, free: 3.215 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.322e-05/0.2719, allocations: 49.7 kB / 496 MB, free: 3.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004614/0.2724, allocations: 0.7171 MB / 496.7 MB, free: 2.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003521/0.2727, allocations: 0.5084 MB / 497.2 MB, free: 1.914 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001825/0.2729, allocations: 149.6 kB / 497.4 MB, free: 1.762 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.984e-05/0.273, allocations: 301.1 kB / 497.7 MB, free: 1.465 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/0.2741, allocations: 0.7144 MB / 498.4 MB, free: 0.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/0.2754, allocations: 1.155 MB / 499.5 MB, free: 15.41 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.009377/0.2848, allocations: 4.098 MB / 0.4918 GB, free: 11.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.081e-05/0.2848, allocations: 4 kB / 0.4918 GB, free: 11.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.00639/0.2912, allocations: 3.367 MB / 0.4951 GB, free: 7.723 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.2912, allocations: 12 kB / 0.4951 GB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.971e-05/0.2913, allocations: 19.97 kB / 0.4952 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002812/0.2941, allocations: 1.19 MB / 0.4963 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.2952, allocations: 303.5 kB / 0.4966 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01657/0.3118, allocations: 13.82 MB / 0.5101 GB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.3128, allocations: 91.78 kB / 0.5102 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.313, allocations: 71.98 kB / 0.5103 GB, free: 7.664 MB / 398.1 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: 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.0007676/0.3137, allocations: 0.5012 MB / 0.5107 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001745/0.3139, allocations: 130.4 kB / 0.5109 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003039/0.317, allocations: 2.034 MB / 0.5129 GB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.317, allocations: 16 kB / 0.5129 GB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.317, allocations: 3.984 kB / 0.5129 GB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.317, allocations: 3.984 kB / 0.5129 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005535/0.3226, allocations: 3.782 MB / 0.5166 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.3226, allocations: 4 kB / 0.5166 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001541/0.3241, allocations: 332 kB / 0.5169 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004687/0.3246, allocations: 187.2 kB / 0.5171 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.349e-05/0.3247, allocations: 51.92 kB / 0.5171 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1618/0.4865, allocations: 6.142 MB / 0.5231 GB, free: 80.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.4866, allocations: 7.969 kB / 0.5231 GB, free: 80.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003597/0.4902, allocations: 2.722 MB / 0.5258 GB, free: 79.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004772/0.4907, allocations: 316.5 kB / 0.5261 GB, free: 79.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.4908, allocations: 46.23 kB / 0.5261 GB, free: 79.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006819/0.4915, allocations: 61.48 kB / 0.5262 GB, free: 79.76 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.4917, allocations: 102.8 kB / 0.5263 GB, free: 79.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.531e-05/0.4918, allocations: 40.98 kB / 0.5263 GB, free: 79.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007178/0.4925, allocations: 0.6257 MB / 0.5269 GB, free: 79.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4925, allocations: 0 / 0.5269 GB, free: 79.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001354/0.4939, allocations: 489.4 kB / 0.5274 GB, free: 79.43 MB / 398.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.003536/0.4974, allocations: 3.329 MB / 0.5307 GB, free: 77.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003886/0.5013, allocations: 2.689 MB / 0.5333 GB, free: 76.37 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.5014, allocations: 3.719 kB / 0.5333 GB, free: 76.37 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001335/0.5027, allocations: 1.249 MB / 0.5345 GB, free: 75.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/0.5044, allocations: 300.8 kB / 0.5348 GB, free: 75.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02136/0.5258, allocations: 18.99 MB / 0.5533 GB, free: 59.51 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007865/0.5266, allocations: 1.529 MB / 0.5548 GB, free: 57.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009911/0.5276, allocations: 399.6 kB / 0.5552 GB, free: 57.55 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006142/0.5282, allocations: 0.6203 MB / 0.5558 GB, free: 56.93 MB / 398.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5282, allocations: 4 kB / 0.5558 GB, free: 56.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04296/0.5712, allocations: 36.73 MB / 0.5917 GB, free: 20.2 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001205/0.5713, allocations: 221.3 kB / 0.5919 GB, free: 19.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.418/2.99, allocations: 4 kB / 0.5919 GB, free: 19.95 MB / 398.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)