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.001524/0.001524, allocations: 113.5 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.001792/0.001792, allocations: 200 kB / 18.01 MB, free: 5.066 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.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.177/0.177, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 59.91 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3399, allocations: 58.06 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01026/0.3502, allocations: 10.61 MB / 0.514 GB, free: 56 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01082/0.3611, allocations: 6.23 MB / 0.5201 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001255/0.3623, allocations: 51 kB / 0.5201 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01258/0.3749, allocations: 5.509 MB / 0.5255 GB, free: 9.891 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003207/0.3782, allocations: 1.087 MB / 0.5265 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002027/0.3802, allocations: 0.6412 MB / 0.5272 GB, free: 9 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004939/0.3852, allocations: 3.214 MB / 0.5303 GB, free: 7.664 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001281/0.3865, allocations: 1.016 MB / 0.5313 GB, free: 7.086 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001577/0.3881, allocations: 1.074 MB / 0.5324 GB, free: 6.469 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001882/0.39, allocations: 1.343 MB / 0.5337 GB, free: 5.688 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003348/0.3903, allocations: 144.7 kB / 0.5338 GB, free: 5.688 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.3914, allocations: 429.4 kB / 0.5342 GB, free: 5.535 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009594/0.3924, allocations: 0.8502 MB / 0.535 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001326/0.3938, allocations: 0.9214 MB / 0.5359 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002727/0.3965, allocations: 2.278 MB / 0.5382 GB, free: 2.859 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.3965, allocations: 5 kB / 0.5382 GB, free: 2.855 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3965, allocations: 0 / 0.5382 GB, free: 2.855 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.837e-05/0.3966, allocations: 0 / 0.5382 GB, free: 2.855 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.00454/0.4011, allocations: 2.1 MB / 0.5402 GB, free: 1.348 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.4012, allocations: 13.33 kB / 0.5402 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000299/0.4015, allocations: 230 kB / 0.5405 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001602/0.4031, allocations: 291.9 kB / 0.5407 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002795/0.4059, allocations: 1.209 MB / 0.5419 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.227e-05/0.406, allocations: 100.9 kB / 0.542 GB, free: 120 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005955/0.4066, allocations: 229.5 kB / 0.5422 GB, free: 36 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003589/0.4102, allocations: 2.104 MB / 0.5443 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.785e-05/0.4103, allocations: 7.938 kB / 0.5443 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001504/0.4104, allocations: 59.98 kB / 0.5443 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006866/0.4111, allocations: 182.6 kB / 0.5445 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002781/0.4139, allocations: 1.713 MB / 0.5462 GB, free: 12.77 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.01165/0.4256, allocations: 7.92 MB / 0.5539 GB, free: 4.516 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002275/0.4279, allocations: 1.629 MB / 0.5555 GB, free: 2.801 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000957/0.4288, allocations: 0.6605 MB / 0.5562 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.658e-05/0.4289, allocations: 24.98 kB / 0.5562 GB, free: 2.113 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/0.429, allocations: 51.48 kB / 0.5562 GB, free: 2.051 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 3.096e-06/0.429, allocations: 0 / 0.5562 GB, free: 2.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.009446/0.4384, allocations: 5.124 MB / 0.5612 GB, free: 12.74 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.4385, allocations: 90.42 kB / 0.5613 GB, free: 12.63 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001099/0.4396, allocations: 0.9426 MB / 0.5622 GB, free: 11.67 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000124/0.4398, allocations: 49.7 kB / 0.5623 GB, free: 11.62 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004646/0.4402, allocations: 0.7348 MB / 0.563 GB, free: 10.87 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000428/0.4407, allocations: 0.5229 MB / 0.5635 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004411/0.4411, allocations: 307.5 kB / 0.5638 GB, free: 10.04 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.438e-05/0.4412, allocations: 313 kB / 0.5641 GB, free: 9.727 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/0.4423, allocations: 0.7066 MB / 0.5648 GB, free: 9.02 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001339/0.4437, allocations: 1.151 MB / 0.5659 GB, free: 7.684 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.009773/0.4535, allocations: 4.078 MB / 0.5699 GB, free: 3.438 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.555e-05/0.4535, allocations: 7.938 kB / 0.5699 GB, free: 3.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.00663/0.4602, allocations: 3.359 MB / 0.5732 GB, free: 28 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/0.4602, allocations: 15.94 kB / 0.5732 GB, free: 12 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.531e-05/0.4602, allocations: 12 kB / 0.5732 GB, free: 0 / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002926/0.4632, allocations: 1.193 MB / 0.5744 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.4644, allocations: 303.5 kB / 0.5747 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01845/0.4829, allocations: 15.14 MB / 0.5895 GB, free: 14.78 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.4843, allocations: 75.91 kB / 0.5895 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002309/0.4845, allocations: 75.98 kB / 0.5896 GB, free: 14.63 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.0009876/0.4855, allocations: 0.4934 MB / 0.5901 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000284/0.4858, allocations: 139.1 kB / 0.5902 GB, free: 13.99 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003151/0.489, allocations: 2.018 MB / 0.5922 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.398e-05/0.489, allocations: 20 kB / 0.5922 GB, free: 11.87 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.489, allocations: 4 kB / 0.5922 GB, free: 11.87 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.489, allocations: 7.969 kB / 0.5922 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006347/0.4954, allocations: 3.76 MB / 0.5959 GB, free: 7.918 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.4954, allocations: 4 kB / 0.5959 GB, free: 7.914 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001676/0.4971, allocations: 328 kB / 0.5962 GB, free: 7.594 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000513/0.4976, allocations: 183.3 kB / 0.5964 GB, free: 7.402 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001152/0.4977, allocations: 47.97 kB / 0.5964 GB, free: 7.355 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005484/0.5032, allocations: 6.669 MB / 0.6029 GB, free: 128 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/0.5033, allocations: 11.98 kB / 0.603 GB, free: 116 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00443/0.5077, allocations: 2.718 MB / 0.6056 GB, free: 13.27 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008281/0.5086, allocations: 328 kB / 0.6059 GB, free: 12.93 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003172/0.5089, allocations: 51.88 kB / 0.606 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008802/0.5098, allocations: 51.95 kB / 0.606 GB, free: 12.82 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000231/0.51, allocations: 109 kB / 0.6061 GB, free: 12.72 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.698e-05/0.5101, allocations: 39.94 kB / 0.6062 GB, free: 12.68 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008886/0.511, allocations: 0.6283 MB / 0.6068 GB, free: 12.04 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.511, allocations: 0 / 0.6068 GB, free: 12.04 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00197/0.513, allocations: 480 kB / 0.6072 GB, free: 11.57 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.004133/0.5172, allocations: 3.323 MB / 0.6105 GB, free: 8.113 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004539/0.5217, allocations: 2.739 MB / 0.6132 GB, free: 5.324 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.5217, allocations: 0.5 kB / 0.6132 GB, free: 5.324 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001766/0.5235, allocations: 1.249 MB / 0.6144 GB, free: 4.027 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.5251, allocations: 322.6 kB / 0.6147 GB, free: 3.719 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02853/0.5537, allocations: 17.34 MB / 0.6316 GB, free: 1.715 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001654/0.5554, allocations: 1.525 MB / 0.6331 GB, free: 160 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001266/0.5567, allocations: 399.7 kB / 0.6335 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.5577, allocations: 0.6242 MB / 0.6341 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of SimCode: time 7.51e-07/0.5577, allocations: 0 / 0.6341 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07463/0.6324, allocations: 39.15 MB / 0.6723 GB, free: 8.223 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.05/14.68, allocations: 18.12 kB / 0.6724 GB, free: 8.211 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file PowerSystems_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_PowerSystems_Examples_Wind_WindTurbine_DFIG.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)