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.00157/0.00157, allocations: 107.6 kB / 16.92 MB, free: 5.781 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.001726/0.001726, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.326/1.326, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.177/0.177, allocations: 38.03 MB / 329.7 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 61.92 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09719/0.09871, allocations: 58.06 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.012/0.1108, allocations: 10.59 MB / 467.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009765/0.1206, allocations: 6.242 MB / 473.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001106/0.1217, allocations: 51.69 kB / 473.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01159/0.1333, allocations: 5.51 MB / 479.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003162/0.1365, allocations: 1.07 MB / 480.4 MB, free: 436 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001999/0.1385, allocations: 0.6511 MB / 481.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004767/0.1433, allocations: 3.205 MB / 484.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001866/0.1452, allocations: 1.008 MB / 485.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001976/0.1472, allocations: 1.059 MB / 486.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002288/0.1495, allocations: 1.351 MB / 487.7 MB, free: 9.105 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006046/0.1501, allocations: 144 kB / 487.8 MB, free: 8.965 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001241/0.1514, allocations: 423.5 kB / 488.3 MB, free: 8.551 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001048/0.1524, allocations: 0.8456 MB / 489.1 MB, free: 7.703 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001524/0.1539, allocations: 0.9212 MB / 490 MB, free: 6.777 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002642/0.1566, allocations: 2.227 MB / 492.2 MB, free: 4.543 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.1566, allocations: 8 kB / 492.3 MB, free: 4.535 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1566, allocations: 0 / 492.3 MB, free: 4.535 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.429e-05/0.1567, allocations: 0 / 492.3 MB, free: 4.535 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.004604/0.1613, allocations: 2.067 MB / 494.3 MB, free: 2.406 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.1614, allocations: 15.83 kB / 494.3 MB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003349/0.1617, allocations: 224 kB / 494.6 MB, free: 2.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001583/0.1633, allocations: 282.5 kB / 494.8 MB, free: 1.883 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002246/0.1656, allocations: 1.159 MB / 496 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.466e-05/0.1657, allocations: 98.62 kB / 496.1 MB, free: 0.582 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005201/0.1662, allocations: 223.8 kB / 496.3 MB, free: 372 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003088/0.1693, allocations: 2.107 MB / 498.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.512e-05/0.1694, allocations: 7.906 kB / 498.4 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000142/0.1695, allocations: 55.97 kB / 498.5 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006689/0.1702, allocations: 190.6 kB / 498.7 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002822/0.173, allocations: 1.709 MB / 0.4886 GB, free: 12.19 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.0112/0.1842, allocations: 7.953 MB / 0.4964 GB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/0.1866, allocations: 1.622 MB / 0.498 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.1877, allocations: 0.6606 MB / 0.4986 GB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.436e-05/0.1878, allocations: 20.98 kB / 0.4987 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.1878, allocations: 51.55 kB / 0.4987 GB, free: 1.445 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.837e-06/0.1878, allocations: 4 kB / 0.4987 GB, free: 1.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.2141/0.4019, allocations: 5.069 MB / 0.5037 GB, free: 55.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.402, allocations: 92.52 kB / 0.5038 GB, free: 55.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.4036, allocations: 0.94 MB / 0.5047 GB, free: 54.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.4037, allocations: 50.73 kB / 0.5047 GB, free: 54.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005324/0.4043, allocations: 0.7178 MB / 0.5054 GB, free: 54.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004396/0.4047, allocations: 0.4983 MB / 0.5059 GB, free: 53.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005111/0.4053, allocations: 308.8 kB / 0.5062 GB, free: 53.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.36e-05/0.4053, allocations: 301.7 kB / 0.5065 GB, free: 53.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/0.4066, allocations: 0.7086 MB / 0.5072 GB, free: 53.28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.408, allocations: 1.153 MB / 0.5083 GB, free: 52.53 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.01017/0.4181, allocations: 4.096 MB / 0.5123 GB, free: 51.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.838e-05/0.4182, allocations: 3.406 kB / 0.5123 GB, free: 51.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006666/0.4248, allocations: 3.361 MB / 0.5156 GB, free: 49.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.4249, allocations: 10.59 kB / 0.5156 GB, free: 49.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.298e-05/0.4249, allocations: 14.84 kB / 0.5156 GB, free: 49.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003051/0.428, allocations: 1.196 MB / 0.5168 GB, free: 49.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.4292, allocations: 298.7 kB / 0.5171 GB, free: 49.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01525/0.4445, allocations: 15.15 MB / 0.5319 GB, free: 38.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.4457, allocations: 80.72 kB / 0.5319 GB, free: 38.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.4458, allocations: 68 kB / 0.532 GB, free: 38.64 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.0007534/0.4466, allocations: 0.499 MB / 0.5325 GB, free: 38.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001805/0.4468, allocations: 134.3 kB / 0.5326 GB, free: 38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002571/0.4494, allocations: 2.011 MB / 0.5346 GB, free: 35.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.4494, allocations: 12 kB / 0.5346 GB, free: 35.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.4494, allocations: 5.5 kB / 0.5346 GB, free: 35.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.4494, allocations: 7.922 kB / 0.5346 GB, free: 35.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004832/0.4542, allocations: 3.768 MB / 0.5383 GB, free: 31.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.4543, allocations: 4 kB / 0.5383 GB, free: 31.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001503/0.4558, allocations: 328 kB / 0.5386 GB, free: 31.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004231/0.4562, allocations: 187.3 kB / 0.5388 GB, free: 31.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.883e-05/0.4563, allocations: 43.98 kB / 0.5388 GB, free: 31.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003445/0.4598, allocations: 6.684 MB / 0.5454 GB, free: 24.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.4598, allocations: 8 kB / 0.5454 GB, free: 24.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003042/0.4628, allocations: 2.718 MB / 0.548 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004646/0.4633, allocations: 320 kB / 0.5483 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000173/0.4635, allocations: 47.97 kB / 0.5484 GB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006768/0.4642, allocations: 51.95 kB / 0.5484 GB, free: 20.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.4644, allocations: 105.1 kB / 0.5485 GB, free: 20.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.862e-05/0.4645, allocations: 43.98 kB / 0.5486 GB, free: 20.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006232/0.4651, allocations: 0.6244 MB / 0.5492 GB, free: 20.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4651, allocations: 0 / 0.5492 GB, free: 20.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001556/0.4667, allocations: 484 kB / 0.5496 GB, free: 19.66 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.003181/0.4698, allocations: 3.317 MB / 0.5529 GB, free: 16.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005098/0.475, allocations: 3.499 MB / 0.5563 GB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.475, allocations: 4.5 kB / 0.5563 GB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00153/0.4765, allocations: 1.248 MB / 0.5575 GB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/0.478, allocations: 313.4 kB / 0.5578 GB, free: 11.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02545/0.5035, allocations: 17.95 MB / 0.5753 GB, free: 8.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/0.5047, allocations: 1.517 MB / 0.5768 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001305/0.506, allocations: 399.5 kB / 0.5772 GB, free: 6.375 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008179/0.5068, allocations: 0.6282 MB / 0.5778 GB, free: 5.746 MB / 398.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5068, allocations: 0 / 0.5778 GB, free: 5.746 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07363/0.5805, allocations: 38.6 MB / 0.6155 GB, free: 15.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.73, allocations: 10.31 kB / 0.6155 GB, free: 15.45 MB / 446.1 MB (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)