Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_Wind_WindTurbine_DFIG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_DFIG,fileNamePrefix="PowerSystems_latest_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.00169/0.001689, allocations: 112.2 kB / 17.06 MB, free: 5.992 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.00175/0.00175, allocations: 196 kB / 18.01 MB, free: 5.074 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.363/1.363, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3035/0.3035, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003138/0.003138, allocations: 63.89 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8145/0.8177, allocations: 58.07 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.02657/0.8443, allocations: 10.6 MB / 0.514 GB, free: 24 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02272/0.8671, allocations: 6.235 MB / 0.5201 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003248/0.8705, allocations: 47.22 kB / 0.5201 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03001/0.9006, allocations: 5.525 MB / 0.5255 GB, free: 9.852 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008027/0.9087, allocations: 1.082 MB / 0.5266 GB, free: 9.254 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004669/0.9134, allocations: 0.6456 MB / 0.5272 GB, free: 8.961 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01424/0.9277, allocations: 3.218 MB / 0.5303 GB, free: 7.594 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00469/0.9325, allocations: 1.007 MB / 0.5313 GB, free: 7.016 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004912/0.9375, allocations: 1.078 MB / 0.5324 GB, free: 6.395 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005092/0.9426, allocations: 1.347 MB / 0.5337 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001451/0.9441, allocations: 144.3 kB / 0.5338 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003251/0.9474, allocations: 429.6 kB / 0.5342 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002902/0.9503, allocations: 0.8457 MB / 0.5351 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005712/0.9561, allocations: 0.9294 MB / 0.536 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009456/0.9656, allocations: 2.268 MB / 0.5382 GB, free: 2.789 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.812e-05/0.9657, allocations: 0 / 0.5382 GB, free: 2.789 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.849e-06/0.9658, allocations: 0 / 0.5382 GB, free: 2.789 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002936/0.9661, allocations: 3.984 kB / 0.5382 GB, free: 2.785 MB / 398.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.01368/0.9798, allocations: 2.108 MB / 0.5402 GB, free: 1.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.815e-05/0.9799, allocations: 13.89 kB / 0.5402 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001383/0.9813, allocations: 221.9 kB / 0.5405 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003991/0.9853, allocations: 287.5 kB / 0.5407 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006245/0.9916, allocations: 1.217 MB / 0.5419 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000213/0.9919, allocations: 96.09 kB / 0.542 GB, free: 48 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001657/0.9935, allocations: 230.3 kB / 0.5422 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009924/1.003, allocations: 2.108 MB / 0.5443 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001451/1.004, allocations: 11.69 kB / 0.5443 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005642/1.004, allocations: 57.33 kB / 0.5444 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001406/1.006, allocations: 195.3 kB / 0.5445 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007863/1.014, allocations: 1.701 MB / 0.5462 GB, free: 12.79 MB / 414.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.02706/1.041, allocations: 7.912 MB / 0.5539 GB, free: 4.543 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004721/1.045, allocations: 1.633 MB / 0.5555 GB, free: 2.824 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00189/1.047, allocations: 0.6606 MB / 0.5562 GB, free: 2.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001573/1.048, allocations: 24.97 kB / 0.5562 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.842e-05/1.048, allocations: 47.5 kB / 0.5562 GB, free: 2.078 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 9.098e-06/1.048, allocations: 4 kB / 0.5562 GB, free: 2.074 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.01707/1.065, allocations: 5.116 MB / 0.5612 GB, free: 12.77 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/1.065, allocations: 98.41 kB / 0.5613 GB, free: 12.66 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002914/1.068, allocations: 0.9427 MB / 0.5623 GB, free: 11.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002022/1.068, allocations: 49.69 kB / 0.5623 GB, free: 11.64 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001059/1.069, allocations: 0.7348 MB / 0.563 GB, free: 10.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009054/1.07, allocations: 0.5268 MB / 0.5635 GB, free: 10.36 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001148/1.071, allocations: 311.5 kB / 0.5638 GB, free: 10.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/1.072, allocations: 305.1 kB / 0.5641 GB, free: 9.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002027/1.074, allocations: 0.7027 MB / 0.5648 GB, free: 9.047 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002495/1.076, allocations: 1.155 MB / 0.5659 GB, free: 7.707 MB / 430.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.01543/1.092, allocations: 4.078 MB / 0.5699 GB, free: 3.461 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.17e-05/1.092, allocations: 4 kB / 0.5699 GB, free: 3.457 MB / 430.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.01251/1.104, allocations: 3.363 MB / 0.5732 GB, free: 52 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.546e-05/1.104, allocations: 12.66 kB / 0.5732 GB, free: 40 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.551e-05/1.104, allocations: 16 kB / 0.5732 GB, free: 24 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005018/1.109, allocations: 1.193 MB / 0.5744 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002099/1.112, allocations: 299.5 kB / 0.5747 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03418/1.146, allocations: 15.15 MB / 0.5895 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002228/1.148, allocations: 75.89 kB / 0.5896 GB, free: 14.72 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005348/1.149, allocations: 71.98 kB / 0.5896 GB, free: 14.65 MB / 462.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.002698/1.151, allocations: 0.4994 MB / 0.5901 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008857/1.152, allocations: 143.1 kB / 0.5902 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00608/1.158, allocations: 2.014 MB / 0.5922 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/1.158, allocations: 12 kB / 0.5922 GB, free: 11.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.366e-05/1.158, allocations: 4 kB / 0.5922 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.292e-05/1.158, allocations: 7.969 kB / 0.5922 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/1.169, allocations: 3.756 MB / 0.5959 GB, free: 7.949 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.905e-05/1.169, allocations: 4 kB / 0.5959 GB, free: 7.945 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002463/1.172, allocations: 331.6 kB / 0.5962 GB, free: 7.621 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008393/1.173, allocations: 191.4 kB / 0.5964 GB, free: 7.422 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002562/1.173, allocations: 47.97 kB / 0.5964 GB, free: 7.375 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008131/1.181, allocations: 6.68 MB / 0.603 GB, free: 136 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.849e-06/1.181, allocations: 8 kB / 0.603 GB, free: 128 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006938/1.188, allocations: 2.718 MB / 0.6056 GB, free: 13.28 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/1.19, allocations: 324 kB / 0.6059 GB, free: 12.95 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006058/1.19, allocations: 51.88 kB / 0.606 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/1.192, allocations: 55.94 kB / 0.606 GB, free: 12.84 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004073/1.192, allocations: 105.1 kB / 0.6061 GB, free: 12.74 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001672/1.192, allocations: 40 kB / 0.6062 GB, free: 12.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002064/1.194, allocations: 0.6244 MB / 0.6068 GB, free: 12.07 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.41e-07/1.194, allocations: 0 / 0.6068 GB, free: 12.07 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003928/1.198, allocations: 484 kB / 0.6073 GB, free: 11.59 MB / 478.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.00799/1.206, allocations: 3.319 MB / 0.6105 GB, free: 8.133 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008657/1.215, allocations: 2.735 MB / 0.6132 GB, free: 5.348 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-05/1.215, allocations: 4 kB / 0.6132 GB, free: 5.344 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003089/1.218, allocations: 1.241 MB / 0.6144 GB, free: 4.055 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003583/1.222, allocations: 326.6 kB / 0.6147 GB, free: 3.738 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0515/1.273, allocations: 17.34 MB / 0.6316 GB, free: 1.73 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003012/1.276, allocations: 1.517 MB / 0.6331 GB, free: 184 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00239/1.279, allocations: 399.6 kB / 0.6335 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001906/1.281, allocations: 0.6243 MB / 0.6341 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of SimCode: time 2.385e-06/1.281, allocations: 0 / 0.6341 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1519/1.433, allocations: 39.18 MB / 0.6724 GB, free: 8.254 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.86/24.29, allocations: 19.44 kB / 0.6724 GB, free: 8.238 MB / 0.5294 GB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_DFIG.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)