Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.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_IG,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_IG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_IG",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.001212/0.001212, allocations: 110.5 kB / 16.51 MB, free: 6.707 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.001307/0.001307, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.289/1.289, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1607/0.1607, allocations: 37.98 MB / 308.6 MB, free: 6.238 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.001302/0.001302, allocations: 67.91 kB / 374.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.194/0.1953, allocations: 55.23 MB / 429.9 MB, free: 19.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.00691/0.2022, allocations: 9.325 MB / 439.3 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006255/0.2085, allocations: 6.084 MB / 445.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004064/0.2089, allocations: 51.62 kB / 445.4 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006951/0.2159, allocations: 5.124 MB / 450.5 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001359/0.2172, allocations: 0.7939 MB / 451.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009747/0.2182, allocations: 447.3 kB / 451.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003519/0.2218, allocations: 3.763 MB / 455.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007579/0.2225, allocations: 0.5713 MB / 456.1 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007241/0.2233, allocations: 0.6457 MB / 456.7 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001244/0.2245, allocations: 1.094 MB / 457.8 MB, free: 7.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00015/0.2247, allocations: 68 kB / 457.9 MB, free: 7.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006066/0.2253, allocations: 339.5 kB / 458.2 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005291/0.2258, allocations: 0.6272 MB / 458.9 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006172/0.2265, allocations: 0.6451 MB / 459.5 MB, free: 6.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001503/0.228, allocations: 1.663 MB / 461.2 MB, free: 4.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.228, allocations: 4 kB / 461.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.228, allocations: 0 / 461.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.68e-05/0.228, allocations: 3.938 kB / 461.2 MB, free: 4.441 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003133/0.2312, allocations: 1.585 MB / 462.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.2312, allocations: 8.031 kB / 462.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000194/0.2314, allocations: 177.1 kB / 462.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001109/0.2325, allocations: 215.1 kB / 463.2 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001715/0.2342, allocations: 0.9216 MB / 464.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.259e-05/0.2343, allocations: 65.98 kB / 464.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004154/0.2347, allocations: 195.7 kB / 464.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002143/0.2369, allocations: 1.564 MB / 465.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.007e-05/0.2369, allocations: 4 kB / 465.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/0.237, allocations: 39.98 kB / 465.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000534/0.2376, allocations: 157.8 kB / 466.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001921/0.2395, allocations: 1.249 MB / 467.3 MB, free: 14.08 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.00736/0.2469, allocations: 6.501 MB / 473.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/0.2483, allocations: 0.9164 MB / 474.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007558/0.2491, allocations: 0.5005 MB / 475.3 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.101e-05/0.2492, allocations: 20.98 kB / 475.3 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.2492, allocations: 43.5 kB / 475.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.484e-06/0.2492, allocations: 0 / 475.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=96): time 0.006018/0.2553, allocations: 3.667 MB / 479 MB, free: 1.879 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.2553, allocations: 90.11 kB / 479.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008159/0.2561, allocations: 0.735 MB / 479.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.423e-05/0.2562, allocations: 41.7 kB / 479.9 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004135/0.2566, allocations: 0.5536 MB / 480.4 MB, free: 428 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002614/0.2569, allocations: 370.8 kB / 480.8 MB, free: 52 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003311/0.2572, allocations: 230.8 kB / 481 MB, free: 15.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.2574, allocations: 410.7 kB / 481.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009021/0.2583, allocations: 0.5647 MB / 482 MB, free: 14.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/0.2594, allocations: 0.8853 MB / 482.8 MB, free: 13.82 MB / 366.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.007797/0.2672, allocations: 3.236 MB / 486.1 MB, free: 10.47 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.2672, allocations: 4 kB / 486.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.005184/0.2724, allocations: 2.737 MB / 488.8 MB, free: 7.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.2724, allocations: 12.06 kB / 488.8 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.2725, allocations: 12 kB / 488.8 MB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002774/0.2752, allocations: 1.152 MB / 490 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007266/0.276, allocations: 195.7 kB / 490.2 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01586/0.2918, allocations: 11.21 MB / 0.4896 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000823/0.2927, allocations: 59.86 kB / 0.4897 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.2928, allocations: 55.98 kB / 0.4898 GB, free: 10.74 MB / 382.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: $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: 43 * 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 (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0006195/0.2934, allocations: 413.2 kB / 0.4901 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.2936, allocations: 94.78 kB / 0.4902 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/0.2957, allocations: 1.4 MB / 0.4916 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.2958, allocations: 12 kB / 0.4916 GB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.2958, allocations: 0 / 0.4916 GB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.2958, allocations: 15.84 kB / 0.4916 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004011/0.2998, allocations: 2.66 MB / 0.4942 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2998, allocations: 0 / 0.4942 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001482/0.3013, allocations: 283.8 kB / 0.4945 GB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001546/0.3015, allocations: 53.67 kB / 0.4945 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-05/0.3016, allocations: 39.92 kB / 0.4946 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001699/0.3033, allocations: 2.638 MB / 0.4972 GB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3033, allocations: 4 kB / 0.4972 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002517/0.3058, allocations: 1.894 MB / 0.499 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003358/0.3062, allocations: 255.8 kB / 0.4993 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.3063, allocations: 39.98 kB / 0.4993 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005194/0.3068, allocations: 39.95 kB / 0.4993 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.307, allocations: 68.8 kB / 0.4994 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.348e-05/0.3071, allocations: 31.97 kB / 0.4994 GB, free: 272 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005168/0.3076, allocations: 0.4911 MB / 0.4999 GB, free: 15.78 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3076, allocations: 0 / 0.4999 GB, free: 15.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001062/0.3087, allocations: 376 kB / 0.5003 GB, free: 15.41 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 25 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],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) * 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 (95): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,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.002802/0.3115, allocations: 2.482 MB / 0.5027 GB, free: 12.83 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003271/0.3147, allocations: 2.064 MB / 0.5047 GB, free: 10.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3148, allocations: 4 kB / 0.5047 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.3158, allocations: 0.7489 MB / 0.5054 GB, free: 9.965 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000939/0.3167, allocations: 212.1 kB / 0.5056 GB, free: 9.762 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1723/0.489, allocations: 14.73 MB / 0.52 GB, free: 84.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009371/0.49, allocations: 1.302 MB / 0.5213 GB, free: 84.22 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009005/0.4909, allocations: 315 kB / 0.5216 GB, free: 84.21 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005032/0.4915, allocations: 461.9 kB / 0.522 GB, free: 83.96 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4915, allocations: 0 / 0.522 GB, free: 83.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03464/0.5261, allocations: 28.75 MB / 0.5501 GB, free: 62.7 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001277/0.5263, allocations: 224.9 kB / 0.5503 GB, free: 62.44 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.284/2.811, allocations: 6.344 kB / 0.5503 GB, free: 62.43 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Wind_WindTurbine_IG_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Wind_WindTurbine_IG.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1)