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.001504/0.001504, allocations: 110.9 kB / 17.06 MB, free: 6.012 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.001815/0.001815, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.204/2.204, 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/package.mo): time 0.363/0.363, allocations: 38.04 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002701/0.002701, allocations: 63.84 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6885/0.6912, allocations: 58.06 MB / 0.5036 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.02244/0.7137, allocations: 10.61 MB / 0.514 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02197/0.7357, allocations: 6.23 MB / 0.5201 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003217/0.739, allocations: 48.44 kB / 0.5201 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02354/0.7627, allocations: 5.518 MB / 0.5255 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006646/0.7693, allocations: 1.082 MB / 0.5265 GB, free: 9.211 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004268/0.7737, allocations: 0.6461 MB / 0.5272 GB, free: 8.918 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01305/0.7868, allocations: 3.217 MB / 0.5303 GB, free: 7.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00423/0.7911, allocations: 1.007 MB / 0.5313 GB, free: 7.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005764/0.7969, allocations: 1.074 MB / 0.5323 GB, free: 6.402 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005123/0.8021, allocations: 1.344 MB / 0.5337 GB, free: 5.621 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001628/0.8038, allocations: 143.3 kB / 0.5338 GB, free: 5.621 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003901/0.8077, allocations: 421.9 kB / 0.5342 GB, free: 5.477 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003308/0.8111, allocations: 0.858 MB / 0.535 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004624/0.8157, allocations: 0.92 MB / 0.5359 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00697/0.8228, allocations: 2.276 MB / 0.5382 GB, free: 2.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.8228, allocations: 0 / 0.5382 GB, free: 2.797 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.8228, allocations: 1.25 kB / 0.5382 GB, free: 2.797 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001607/0.823, allocations: 0 / 0.5382 GB, free: 2.797 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.01138/0.8344, allocations: 2.109 MB / 0.5402 GB, free: 1.281 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.537e-05/0.8345, allocations: 14.52 kB / 0.5402 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001228/0.8358, allocations: 225.2 kB / 0.5405 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003376/0.8391, allocations: 287.5 kB / 0.5407 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00693/0.8461, allocations: 1.214 MB / 0.5419 GB, free: 104 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002194/0.8464, allocations: 100.2 kB / 0.542 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00158/0.848, allocations: 229.7 kB / 0.5422 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007912/0.8559, allocations: 2.109 MB / 0.5443 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001506/0.8561, allocations: 16.05 kB / 0.5443 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005531/0.8567, allocations: 52.52 kB / 0.5443 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001238/0.858, allocations: 189.2 kB / 0.5445 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005841/0.8638, allocations: 1.713 MB / 0.5462 GB, free: 12.82 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.02242/0.8863, allocations: 7.912 MB / 0.5539 GB, free: 4.574 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004306/0.8907, allocations: 1.63 MB / 0.5555 GB, free: 2.855 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002007/0.8927, allocations: 0.6606 MB / 0.5562 GB, free: 2.191 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001846/0.8929, allocations: 17 kB / 0.5562 GB, free: 2.176 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.463e-05/0.893, allocations: 51.5 kB / 0.5562 GB, free: 2.113 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 7.815e-06/0.8931, allocations: 0 / 0.5562 GB, free: 2.113 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.01842/0.9115, allocations: 5.128 MB / 0.5612 GB, free: 12.8 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.447e-05/0.9116, allocations: 90.42 kB / 0.5613 GB, free: 12.69 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001631/0.9133, allocations: 0.9348 MB / 0.5622 GB, free: 11.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001833/0.9135, allocations: 53.7 kB / 0.5623 GB, free: 11.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00061/0.9141, allocations: 0.7426 MB / 0.563 GB, free: 10.92 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005091/0.9146, allocations: 0.5229 MB / 0.5635 GB, free: 10.39 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004747/0.9151, allocations: 303.5 kB / 0.5638 GB, free: 10.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.9152, allocations: 305.1 kB / 0.5641 GB, free: 9.789 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.9164, allocations: 0.7105 MB / 0.5648 GB, free: 9.078 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001593/0.918, allocations: 1.155 MB / 0.5659 GB, free: 7.738 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.01268/0.9307, allocations: 4.082 MB / 0.5699 GB, free: 3.488 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-05/0.9308, allocations: 4 kB / 0.5699 GB, free: 3.484 MB / 430.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.01253/0.9433, allocations: 3.355 MB / 0.5732 GB, free: 88 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.183e-05/0.9434, allocations: 15.94 kB / 0.5732 GB, free: 72 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.223e-05/0.9435, allocations: 12 kB / 0.5732 GB, free: 60 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005049/0.9486, allocations: 1.201 MB / 0.5744 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0023/0.9509, allocations: 291.5 kB / 0.5747 GB, free: 14.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03083/0.9818, allocations: 15.15 MB / 0.5895 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.9834, allocations: 83.89 kB / 0.5895 GB, free: 14.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000451/0.9839, allocations: 68 kB / 0.5896 GB, free: 14.68 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.001813/0.9857, allocations: 0.4894 MB / 0.5901 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004895/0.9862, allocations: 139.1 kB / 0.5902 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005374/0.9916, allocations: 2.018 MB / 0.5922 GB, free: 11.95 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.108e-05/0.9917, allocations: 19.98 kB / 0.5922 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.125e-05/0.9917, allocations: 0 / 0.5922 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-05/0.9918, allocations: 7.984 kB / 0.5922 GB, free: 11.92 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/1.005, allocations: 3.76 MB / 0.5959 GB, free: 7.984 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.467e-05/1.005, allocations: 4 kB / 0.5959 GB, free: 7.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002973/1.008, allocations: 335.9 kB / 0.5962 GB, free: 7.652 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009643/1.009, allocations: 187.3 kB / 0.5964 GB, free: 7.457 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003423/1.01, allocations: 43.98 kB / 0.5964 GB, free: 7.414 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009211/1.019, allocations: 6.676 MB / 0.603 GB, free: 180 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-05/1.019, allocations: 7.984 kB / 0.603 GB, free: 172 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008076/1.027, allocations: 2.718 MB / 0.6056 GB, free: 13.32 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/1.029, allocations: 324 kB / 0.6059 GB, free: 12.99 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006994/1.029, allocations: 51.94 kB / 0.606 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001642/1.031, allocations: 63.88 kB / 0.606 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003864/1.031, allocations: 97.06 kB / 0.6061 GB, free: 12.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/1.032, allocations: 43.98 kB / 0.6062 GB, free: 12.74 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001432/1.033, allocations: 0.6244 MB / 0.6068 GB, free: 12.11 MB / 478.1 MB Notification: Performance of sort global known variables: time 3e-07/1.033, allocations: 4 kB / 0.6068 GB, free: 12.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003674/1.037, allocations: 484 kB / 0.6072 GB, free: 11.63 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.005083/1.042, allocations: 3.315 MB / 0.6105 GB, free: 8.172 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008828/1.051, allocations: 2.74 MB / 0.6132 GB, free: 5.383 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/1.051, allocations: 0 / 0.6132 GB, free: 5.383 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00369/1.055, allocations: 1.245 MB / 0.6144 GB, free: 4.09 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003455/1.058, allocations: 330 kB / 0.6147 GB, free: 3.773 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05714/1.115, allocations: 17.33 MB / 0.6316 GB, free: 1.773 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0034/1.119, allocations: 1.517 MB / 0.6331 GB, free: 228 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002678/1.121, allocations: 407.6 kB / 0.6335 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001963/1.124, allocations: 0.6243 MB / 0.6341 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of SimCode: time 1.803e-06/1.124, allocations: 0 / 0.6341 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.117/1.241, allocations: 39.16 MB / 0.6723 GB, free: 8.273 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.61/26.85, allocations: 11.98 kB / 0.6724 GB, free: 8.262 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)