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.0009929/0.0009929, allocations: 108 kB / 17.06 MB, free: 5.82 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.001002/0.001002, allocations: 195.9 kB / 18 MB, free: 4.965 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.336/1.336, 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.1831/0.1831, allocations: 38.04 MB / 329.9 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 59.91 kB / 457.6 MB, free: 7.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3538, allocations: 58.06 MB / 0.5036 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01123/0.365, allocations: 10.61 MB / 0.514 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01157/0.3766, allocations: 6.236 MB / 0.5201 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001872/0.3785, allocations: 49.41 kB / 0.5201 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01284/0.3914, allocations: 5.512 MB / 0.5255 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003587/0.395, allocations: 1.091 MB / 0.5266 GB, free: 9.203 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002014/0.397, allocations: 0.6365 MB / 0.5272 GB, free: 8.918 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00483/0.4019, allocations: 3.222 MB / 0.5303 GB, free: 7.582 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001294/0.4032, allocations: 1.004 MB / 0.5313 GB, free: 7.016 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001666/0.4048, allocations: 1.082 MB / 0.5324 GB, free: 6.391 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001871/0.4067, allocations: 1.34 MB / 0.5337 GB, free: 5.613 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003396/0.4071, allocations: 148.4 kB / 0.5338 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001118/0.4082, allocations: 429.8 kB / 0.5342 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009555/0.4092, allocations: 0.846 MB / 0.535 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.4103, allocations: 0.9289 MB / 0.536 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002851/0.4132, allocations: 2.268 MB / 0.5382 GB, free: 2.789 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.4132, allocations: 0 / 0.5382 GB, free: 2.789 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.947e-06/0.4132, allocations: 3.984 kB / 0.5382 GB, free: 2.785 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.682e-05/0.4132, allocations: 1.062 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.004394/0.4176, allocations: 2.11 MB / 0.5402 GB, free: 1.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.4177, allocations: 13.02 kB / 0.5402 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002686/0.418, allocations: 222.3 kB / 0.5405 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00155/0.4195, allocations: 295.3 kB / 0.5407 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002901/0.4224, allocations: 1.21 MB / 0.5419 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.4226, allocations: 104.6 kB / 0.542 GB, free: 40 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006619/0.4232, allocations: 221.6 kB / 0.5422 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003667/0.4269, allocations: 2.109 MB / 0.5443 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.271e-05/0.427, allocations: 3.594 kB / 0.5443 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000139/0.4271, allocations: 61.17 kB / 0.5444 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006704/0.4278, allocations: 198.9 kB / 0.5445 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002826/0.4306, allocations: 1.697 MB / 0.5462 GB, free: 12.84 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.01108/0.4417, allocations: 7.92 MB / 0.5539 GB, free: 4.578 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002338/0.4441, allocations: 1.634 MB / 0.5555 GB, free: 2.855 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.4451, allocations: 0.6567 MB / 0.5562 GB, free: 2.195 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-05/0.4452, allocations: 20.97 kB / 0.5562 GB, free: 2.176 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.082e-05/0.4453, allocations: 51.5 kB / 0.5562 GB, free: 2.113 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 3.076e-06/0.4453, allocations: 0 / 0.5562 GB, free: 2.113 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.008847/0.4542, allocations: 5.128 MB / 0.5612 GB, free: 12.8 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.4542, allocations: 94.41 kB / 0.5613 GB, free: 12.69 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.4554, allocations: 0.9348 MB / 0.5623 GB, free: 11.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.502e-05/0.4555, allocations: 57.67 kB / 0.5623 GB, free: 11.67 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000452/0.4559, allocations: 0.7348 MB / 0.563 GB, free: 10.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004029/0.4564, allocations: 0.5229 MB / 0.5635 GB, free: 10.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000471/0.4568, allocations: 311.5 kB / 0.5638 GB, free: 10.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.803e-05/0.4569, allocations: 305.1 kB / 0.5641 GB, free: 9.785 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/0.4581, allocations: 0.7027 MB / 0.5648 GB, free: 9.082 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001436/0.4595, allocations: 1.155 MB / 0.5659 GB, free: 7.742 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.00959/0.4691, allocations: 4.074 MB / 0.5699 GB, free: 3.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.672e-05/0.4691, allocations: 7.984 kB / 0.5699 GB, free: 3.492 MB / 430.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006887/0.476, allocations: 3.363 MB / 0.5732 GB, free: 88 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/0.4761, allocations: 12.66 kB / 0.5732 GB, free: 76 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-05/0.4761, allocations: 20 kB / 0.5732 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003091/0.4792, allocations: 1.189 MB / 0.5744 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.4805, allocations: 303.5 kB / 0.5747 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01971/0.5002, allocations: 15.15 MB / 0.5895 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/0.5017, allocations: 75.91 kB / 0.5896 GB, free: 14.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003309/0.502, allocations: 71.98 kB / 0.5896 GB, free: 14.69 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.001203/0.5032, allocations: 0.4934 MB / 0.5901 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003518/0.5036, allocations: 143.1 kB / 0.5902 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003342/0.507, allocations: 2.018 MB / 0.5922 GB, free: 11.95 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.507, allocations: 12 kB / 0.5922 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.507, allocations: 4 kB / 0.5922 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.507, allocations: 7.969 kB / 0.5922 GB, free: 11.92 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006801/0.5138, allocations: 3.748 MB / 0.5959 GB, free: 7.992 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/0.5139, allocations: 11.97 kB / 0.5959 GB, free: 7.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/0.5155, allocations: 335.5 kB / 0.5962 GB, free: 7.652 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004814/0.516, allocations: 183.3 kB / 0.5964 GB, free: 7.461 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001361/0.5161, allocations: 51.97 kB / 0.5965 GB, free: 7.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004992/0.5211, allocations: 6.676 MB / 0.603 GB, free: 176 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.5211, allocations: 4 kB / 0.603 GB, free: 172 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003956/0.5251, allocations: 2.718 MB / 0.6056 GB, free: 13.32 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008709/0.526, allocations: 324.1 kB / 0.6059 GB, free: 12.99 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003282/0.5263, allocations: 51.88 kB / 0.606 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009092/0.5273, allocations: 59.94 kB / 0.606 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002187/0.5275, allocations: 101.1 kB / 0.6061 GB, free: 12.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-05/0.5276, allocations: 43.98 kB / 0.6062 GB, free: 12.74 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001016/0.5286, allocations: 0.6205 MB / 0.6068 GB, free: 12.11 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5286, allocations: 0 / 0.6068 GB, free: 12.11 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002059/0.5307, allocations: 488.1 kB / 0.6073 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.004149/0.5348, allocations: 3.323 MB / 0.6105 GB, free: 8.168 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004458/0.5393, allocations: 2.735 MB / 0.6132 GB, free: 5.383 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5394, allocations: 4 kB / 0.6132 GB, free: 5.379 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001833/0.5412, allocations: 1.245 MB / 0.6144 GB, free: 4.086 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/0.543, allocations: 322.1 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.02928/0.5723, allocations: 17.34 MB / 0.6316 GB, free: 1.766 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001836/0.5741, allocations: 1.521 MB / 0.6331 GB, free: 216 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001416/0.5756, allocations: 399.7 kB / 0.6335 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00104/0.5766, allocations: 0.6242 MB / 0.6341 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of SimCode: time 1.212e-06/0.5767, allocations: 0 / 0.6341 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08311/0.6598, allocations: 39.17 MB / 0.6724 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.13/14.79, allocations: 16.06 kB / 0.6724 GB, free: 8.281 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)