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.001588/0.001588, allocations: 103.8 kB / 16.92 MB, free: 6.145 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.00179/0.001791, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.357/1.357, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1833/0.1833, allocations: 38.03 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001869, allocations: 65.83 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1447, allocations: 58.07 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01893/0.1637, allocations: 10.6 MB / 467.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01322/0.1769, allocations: 6.235 MB / 473.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.1781, allocations: 47.75 kB / 473.8 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01142/0.1895, allocations: 5.511 MB / 479.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002811/0.1923, allocations: 1.073 MB / 480.4 MB, free: 412 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001825/0.1942, allocations: 0.6394 MB / 481.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004152/0.1983, allocations: 3.22 MB / 484.3 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001544/0.1999, allocations: 0.9963 MB / 485.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001755/0.2017, allocations: 1.062 MB / 486.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002062/0.2038, allocations: 1.339 MB / 487.7 MB, free: 9.098 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000499/0.2043, allocations: 144 kB / 487.8 MB, free: 8.957 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001258/0.2055, allocations: 423.5 kB / 488.2 MB, free: 8.543 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001188/0.2067, allocations: 0.8417 MB / 489.1 MB, free: 7.699 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00145/0.2082, allocations: 0.9369 MB / 490 MB, free: 6.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002591/0.2108, allocations: 2.227 MB / 492.2 MB, free: 4.523 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2108, allocations: 0 / 492.2 MB, free: 4.523 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2108, allocations: 0 / 492.2 MB, free: 4.523 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.069e-05/0.2109, allocations: 0 / 492.2 MB, free: 4.523 MB / 366.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.004958/0.2159, allocations: 2.067 MB / 494.3 MB, free: 2.395 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.2159, allocations: 15.89 kB / 494.3 MB, free: 2.379 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004576/0.2164, allocations: 224 kB / 494.5 MB, free: 2.148 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001748/0.2182, allocations: 282.4 kB / 494.8 MB, free: 1.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002625/0.2208, allocations: 1.159 MB / 496 MB, free: 0.668 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.47e-05/0.2209, allocations: 102.6 kB / 496.1 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005781/0.2215, allocations: 223.8 kB / 496.3 MB, free: 356 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003533/0.225, allocations: 2.099 MB / 498.4 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.169e-05/0.2251, allocations: 11.84 kB / 498.4 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001909/0.2253, allocations: 59.98 kB / 498.5 MB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007179/0.226, allocations: 186.6 kB / 498.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003335/0.2294, allocations: 1.713 MB / 0.4886 GB, free: 12.18 MB / 382.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.01214/0.2415, allocations: 7.949 MB / 0.4964 GB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002467/0.244, allocations: 1.622 MB / 0.498 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001056/0.2451, allocations: 0.6645 MB / 0.4986 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.742e-05/0.2452, allocations: 20.92 kB / 0.4986 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.2453, allocations: 43.56 kB / 0.4987 GB, free: 1.434 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.136e-06/0.2453, allocations: 0 / 0.4987 GB, free: 1.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.1889/0.4342, allocations: 5.082 MB / 0.5037 GB, free: 55.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.4342, allocations: 96.52 kB / 0.5037 GB, free: 55.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.4354, allocations: 0.9356 MB / 0.5047 GB, free: 54.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8e-05/0.4355, allocations: 53.39 kB / 0.5047 GB, free: 54.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003847/0.4359, allocations: 0.718 MB / 0.5054 GB, free: 54.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003451/0.4362, allocations: 0.4978 MB / 0.5059 GB, free: 53.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004439/0.4367, allocations: 307.2 kB / 0.5062 GB, free: 53.69 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.962e-05/0.4367, allocations: 302.8 kB / 0.5065 GB, free: 53.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.4379, allocations: 0.7032 MB / 0.5072 GB, free: 53.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.4394, allocations: 1.152 MB / 0.5083 GB, free: 52.43 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.01042/0.4498, allocations: 4.1 MB / 0.5123 GB, free: 50.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.317e-05/0.4499, allocations: 3.281 kB / 0.5123 GB, free: 50.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007033/0.4569, allocations: 3.366 MB / 0.5156 GB, free: 49.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.457, allocations: 10.69 kB / 0.5156 GB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.433e-05/0.457, allocations: 13.53 kB / 0.5156 GB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003031/0.46, allocations: 1.202 MB / 0.5168 GB, free: 49.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.4613, allocations: 297.9 kB / 0.5171 GB, free: 49.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0154/0.4767, allocations: 15.15 MB / 0.5319 GB, free: 38.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.478, allocations: 75.86 kB / 0.5319 GB, free: 38.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001476/0.4782, allocations: 75.98 kB / 0.532 GB, free: 38.52 MB / 382.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.000879/0.4791, allocations: 0.4902 MB / 0.5325 GB, free: 38.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002583/0.4793, allocations: 134.3 kB / 0.5326 GB, free: 37.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002555/0.4819, allocations: 2.014 MB / 0.5346 GB, free: 35.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.4819, allocations: 12 kB / 0.5346 GB, free: 35.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.4819, allocations: 5.312 kB / 0.5346 GB, free: 35.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.4819, allocations: 11.91 kB / 0.5346 GB, free: 35.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0051/0.4871, allocations: 3.756 MB / 0.5383 GB, free: 31.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.4871, allocations: 4 kB / 0.5383 GB, free: 31.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001549/0.4886, allocations: 328 kB / 0.5386 GB, free: 31.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004611/0.4891, allocations: 195.2 kB / 0.5388 GB, free: 31.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.4893, allocations: 43.98 kB / 0.5388 GB, free: 31.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003577/0.4928, allocations: 6.671 MB / 0.5453 GB, free: 24.08 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.4929, allocations: 7.938 kB / 0.5453 GB, free: 24.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003369/0.4963, allocations: 2.724 MB / 0.548 GB, free: 21.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000632/0.4969, allocations: 315.2 kB / 0.5483 GB, free: 20.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000209/0.4971, allocations: 43.98 kB / 0.5484 GB, free: 20.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007148/0.4979, allocations: 55.95 kB / 0.5484 GB, free: 20.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.4981, allocations: 105 kB / 0.5485 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.996e-05/0.4981, allocations: 44 kB / 0.5485 GB, free: 20.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006227/0.4988, allocations: 0.6245 MB / 0.5492 GB, free: 20.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4988, allocations: 3.938 kB / 0.5492 GB, free: 20.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00153/0.5003, allocations: 488 kB / 0.5496 GB, free: 19.54 MB / 382.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.00317/0.5035, allocations: 3.311 MB / 0.5529 GB, free: 16.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005171/0.5087, allocations: 3.495 MB / 0.5563 GB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.5087, allocations: 0.5625 kB / 0.5563 GB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.5102, allocations: 1.245 MB / 0.5575 GB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00158/0.5118, allocations: 326.8 kB / 0.5578 GB, free: 10.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02607/0.5379, allocations: 17.95 MB / 0.5753 GB, free: 8.211 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/0.5391, allocations: 1.525 MB / 0.5768 GB, free: 6.652 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001298/0.5405, allocations: 399.6 kB / 0.5772 GB, free: 6.258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008114/0.5413, allocations: 0.6204 MB / 0.5778 GB, free: 5.637 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5413, allocations: 0 / 0.5778 GB, free: 5.637 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08312/0.6244, allocations: 38.57 MB / 0.6155 GB, free: 15.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/12.13, allocations: 21.55 kB / 0.6155 GB, free: 15.29 MB / 446.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 & 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)