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.001046/0.001046, allocations: 101.8 kB / 16.5 MB, free: 6.645 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.001187/0.001187, allocations: 195 kB / 17.42 MB, free: 6.062 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.228/1.228, allocations: 205.1 MB / 223.3 MB, free: 12.4 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1616/0.1616, allocations: 37.99 MB / 308.6 MB, free: 6.234 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.001311/0.001311, allocations: 71.03 kB / 374.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1808, allocations: 55.23 MB / 430 MB, free: 19.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.008358/0.1892, allocations: 12.63 MB / 442.6 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007773/0.197, allocations: 7.081 MB / 449.7 MB, free: 0 / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.1981, allocations: 91.56 kB / 449.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00921/0.2073, allocations: 5.388 MB / 455.1 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002225/0.2096, allocations: 1.012 MB / 456.2 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.211, allocations: 0.585 MB / 456.7 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004983/0.216, allocations: 4.702 MB / 461.4 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.2172, allocations: 0.9066 MB / 462.4 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001366/0.2186, allocations: 0.9062 MB / 463.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001776/0.2204, allocations: 1.425 MB / 464.7 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002285/0.2207, allocations: 96 kB / 464.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008062/0.2215, allocations: 379.5 kB / 465.1 MB, free: 468 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000928/0.2224, allocations: 0.8104 MB / 466 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009236/0.2233, allocations: 0.8782 MB / 466.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001961/0.2253, allocations: 2.188 MB / 469 MB, free: 12.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2253, allocations: 0 / 469 MB, free: 12.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2253, allocations: 0 / 469 MB, free: 12.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.006e-05/0.2254, allocations: 0 / 469 MB, free: 12.57 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.004187/0.2296, allocations: 2.06 MB / 471.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.2296, allocations: 15.97 kB / 471.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003289/0.23, allocations: 220 kB / 471.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001374/0.2313, allocations: 274.5 kB / 471.6 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002216/0.2336, allocations: 1.155 MB / 472.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.2337, allocations: 102.6 kB / 472.8 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005229/0.2342, allocations: 231.7 kB / 473.1 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002907/0.2371, allocations: 2.103 MB / 475.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.773e-05/0.2372, allocations: 15.84 kB / 475.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/0.2373, allocations: 55.97 kB / 475.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000562/0.2379, allocations: 182.6 kB / 475.4 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002671/0.2406, allocations: 1.709 MB / 477.1 MB, free: 4.238 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.01016/0.2508, allocations: 7.968 MB / 485.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002086/0.2529, allocations: 1.613 MB / 486.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009174/0.2538, allocations: 0.6645 MB / 487.4 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.928e-05/0.2539, allocations: 20.98 kB / 487.4 MB, free: 9.539 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.2539, allocations: 51.48 kB / 487.4 MB, free: 9.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=127): time 3.266e-06/0.2539, allocations: 0 / 487.4 MB, free: 9.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=138): time 0.008057/0.262, allocations: 5.092 MB / 492.5 MB, free: 4.203 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.2621, allocations: 90.42 kB / 492.6 MB, free: 4.098 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009596/0.263, allocations: 0.9309 MB / 493.6 MB, free: 3.148 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.654e-05/0.2631, allocations: 49.7 kB / 493.6 MB, free: 3.094 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004415/0.2636, allocations: 0.721 MB / 494.3 MB, free: 2.359 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003389/0.2639, allocations: 0.5046 MB / 494.8 MB, free: 1.848 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003934/0.2643, allocations: 307.3 kB / 495.1 MB, free: 1.543 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.279e-05/0.2644, allocations: 301.1 kB / 495.4 MB, free: 1.246 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.2654, allocations: 0.7066 MB / 496.1 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.2667, allocations: 1.151 MB / 497.3 MB, free: 15.2 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.008999/0.2757, allocations: 4.071 MB / 0.4896 GB, free: 10.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.2757, allocations: 8 kB / 0.4896 GB, free: 10.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.005803/0.2816, allocations: 3.354 MB / 0.4929 GB, free: 7.551 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.2816, allocations: 8 kB / 0.4929 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.2816, allocations: 19.94 kB / 0.4929 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002711/0.2843, allocations: 1.201 MB / 0.4941 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.2854, allocations: 295.5 kB / 0.4944 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04308/0.3285, allocations: 13.8 MB / 0.5078 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/0.3298, allocations: 75.89 kB / 0.5079 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/0.3299, allocations: 75.98 kB / 0.508 GB, free: 7.52 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 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.0008873/0.3308, allocations: 0.4902 MB / 0.5085 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.331, allocations: 134.4 kB / 0.5086 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003029/0.3341, allocations: 2.007 MB / 0.5105 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.3341, allocations: 20.03 kB / 0.5106 GB, free: 4.789 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.3341, allocations: 4 kB / 0.5106 GB, free: 4.785 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.3341, allocations: 15.89 kB / 0.5106 GB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005613/0.3397, allocations: 3.759 MB / 0.5143 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.3398, allocations: 4 kB / 0.5143 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001567/0.3413, allocations: 328 kB / 0.5146 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005093/0.3419, allocations: 187.2 kB / 0.5148 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.342, allocations: 47.97 kB / 0.5148 GB, free: 268 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1537/0.4956, allocations: 6.145 MB / 0.5208 GB, free: 81.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.804e-06/0.4957, allocations: 14.31 kB / 0.5208 GB, free: 81.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003707/0.4994, allocations: 2.708 MB / 0.5235 GB, free: 80.76 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004862/0.4999, allocations: 318.7 kB / 0.5238 GB, free: 80.63 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001761/0.5001, allocations: 47.11 kB / 0.5238 GB, free: 80.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006673/0.5008, allocations: 50.91 kB / 0.5239 GB, free: 80.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/0.501, allocations: 102.7 kB / 0.524 GB, free: 80.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.164e-05/0.5011, allocations: 44.42 kB / 0.524 GB, free: 80.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007282/0.5018, allocations: 0.6257 MB / 0.5246 GB, free: 80.31 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5018, allocations: 0 / 0.5246 GB, free: 80.31 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001395/0.5032, allocations: 488.6 kB / 0.5251 GB, free: 80.26 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.003573/0.5068, allocations: 3.307 MB / 0.5283 GB, free: 78.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003768/0.5106, allocations: 2.691 MB / 0.5309 GB, free: 77.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5106, allocations: 0 / 0.5309 GB, free: 77.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.5119, allocations: 1.237 MB / 0.5321 GB, free: 76.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.5131, allocations: 308.1 kB / 0.5324 GB, free: 76.4 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02095/0.5341, allocations: 18.56 MB / 0.5506 GB, free: 60.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000786/0.5349, allocations: 1.521 MB / 0.552 GB, free: 59.12 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000998/0.5359, allocations: 399.6 kB / 0.5524 GB, free: 58.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000614/0.5365, allocations: 0.6204 MB / 0.553 GB, free: 58.11 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5365, allocations: 0 / 0.553 GB, free: 58.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04307/0.5796, allocations: 37.25 MB / 0.5894 GB, free: 20.82 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001314/0.5798, allocations: 230.2 kB / 0.5896 GB, free: 20.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.502/3.081, allocations: 0 / 0.5896 GB, free: 20.55 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)