Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.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_PSGR,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR",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.001263/0.001263, allocations: 107.8 kB / 17.06 MB, free: 6.02 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.001465/0.001465, allocations: 189.4 kB / 18 MB, free: 5.102 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.416/1.416, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1815/0.1815, allocations: 38.06 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002707/0.002707, allocations: 67.89 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.353, allocations: 58.06 MB / 0.5036 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01149/0.3645, allocations: 10.95 MB / 0.5143 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01246/0.377, allocations: 7.08 MB / 0.5212 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001661/0.3788, allocations: 53.09 kB / 0.5213 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02338/0.4022, allocations: 12.91 MB / 0.5339 GB, free: 6.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003175/0.4054, allocations: 1.098 MB / 0.535 GB, free: 5.375 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001905/0.4074, allocations: 0.6548 MB / 0.5356 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005959/0.4133, allocations: 3.901 MB / 0.5394 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001609/0.415, allocations: 0.9943 MB / 0.5404 GB, free: 2.289 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001967/0.4169, allocations: 1.082 MB / 0.5414 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002209/0.4192, allocations: 1.394 MB / 0.5428 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003394/0.4195, allocations: 148 kB / 0.5429 GB, free: 396 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001248/0.4208, allocations: 0.5071 MB / 0.5434 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009632/0.4218, allocations: 0.8884 MB / 0.5443 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001305/0.4231, allocations: 0.9601 MB / 0.5452 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003509/0.4266, allocations: 2.502 MB / 0.5477 GB, free: 11.51 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.4266, allocations: 0 / 0.5477 GB, free: 11.51 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4266, allocations: 0 / 0.5477 GB, free: 11.51 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.035e-05/0.4267, allocations: 4 kB / 0.5477 GB, free: 11.51 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.004933/0.4317, allocations: 2.214 MB / 0.5498 GB, free: 9.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.4317, allocations: 12.03 kB / 0.5499 GB, free: 9.219 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000311/0.432, allocations: 224.2 kB / 0.5501 GB, free: 8.988 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001768/0.4338, allocations: 339.2 kB / 0.5504 GB, free: 8.656 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002844/0.4367, allocations: 1.289 MB / 0.5517 GB, free: 7.324 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-05/0.4368, allocations: 98.66 kB / 0.5518 GB, free: 7.227 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006881/0.4375, allocations: 239.8 kB / 0.552 GB, free: 6.992 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003694/0.4412, allocations: 2.153 MB / 0.5541 GB, free: 4.73 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.754e-05/0.4413, allocations: 7.938 kB / 0.5541 GB, free: 4.723 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/0.4414, allocations: 55.98 kB / 0.5541 GB, free: 4.668 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006738/0.4421, allocations: 178.7 kB / 0.5543 GB, free: 4.492 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003344/0.4455, allocations: 1.76 MB / 0.556 GB, free: 2.727 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.01319/0.4587, allocations: 8.595 MB / 0.5644 GB, free: 9.711 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002764/0.4615, allocations: 1.813 MB / 0.5662 GB, free: 7.777 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001445/0.4629, allocations: 0.7582 MB / 0.5669 GB, free: 7.016 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.312e-05/0.463, allocations: 21.05 kB / 0.567 GB, free: 6.996 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/0.4631, allocations: 47.56 kB / 0.567 GB, free: 6.938 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 4.849e-06/0.4631, allocations: 0 / 0.567 GB, free: 6.938 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.0202/0.4833, allocations: 7.612 MB / 0.5744 GB, free: 15.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.254e-05/0.4834, allocations: 90.42 kB / 0.5745 GB, free: 15.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00152/0.485, allocations: 1.037 MB / 0.5755 GB, free: 14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001962/0.4852, allocations: 53.7 kB / 0.5756 GB, free: 13.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006721/0.4859, allocations: 0.7856 MB / 0.5764 GB, free: 13.15 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005836/0.4864, allocations: 0.5617 MB / 0.5769 GB, free: 12.58 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000519/0.487, allocations: 331.5 kB / 0.5772 GB, free: 12.25 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.4871, allocations: 305.1 kB / 0.5775 GB, free: 11.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001392/0.4885, allocations: 0.773 MB / 0.5783 GB, free: 11.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001776/0.4903, allocations: 1.255 MB / 0.5795 GB, free: 9.73 MB / 446.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.0167/0.507, allocations: 5.673 MB / 0.585 GB, free: 3.879 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.852e-05/0.5071, allocations: 11.94 kB / 0.585 GB, free: 3.867 MB / 446.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.009649/0.5167, allocations: 3.918 MB / 0.5889 GB, free: 15.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.5168, allocations: 12 kB / 0.5889 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.69e-05/0.5168, allocations: 12 kB / 0.5889 GB, free: 15.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006023/0.5228, allocations: 1.744 MB / 0.5906 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.524, allocations: 267.6 kB / 0.5908 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02913/0.5532, allocations: 18.51 MB / 0.6089 GB, free: 10.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.5546, allocations: 87.94 kB / 0.609 GB, free: 10.69 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002513/0.5549, allocations: 79.92 kB / 0.6091 GB, free: 10.61 MB / 478.1 MB Warning: The initial conditions are over specified. The following 6 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 $DER.generator.psi_rq[1] = 0.0 $DER.generator.psi_s[2] = 0.0 $DER.generator.psi_s[1] = 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: 63 * 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 (130): * Single equations (assignments): 126 * 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 {(2,11,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,49), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001077/0.556, allocations: 0.5251 MB / 0.6096 GB, free: 10.07 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003424/0.5563, allocations: 151 kB / 0.6097 GB, free: 9.926 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005542/0.5619, allocations: 2.409 MB / 0.6121 GB, free: 7.445 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/0.562, allocations: 16 kB / 0.6121 GB, free: 7.43 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.501e-05/0.562, allocations: 7.938 kB / 0.6121 GB, free: 7.422 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.348e-05/0.562, allocations: 7.969 kB / 0.6121 GB, free: 7.414 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009378/0.5714, allocations: 4.321 MB / 0.6163 GB, free: 2.957 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.5714, allocations: 0 / 0.6163 GB, free: 2.957 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001667/0.5731, allocations: 311.9 kB / 0.6166 GB, free: 2.652 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002711/0.5758, allocations: 0.5614 MB / 0.6172 GB, free: 2.078 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002296/0.5761, allocations: 51.97 kB / 0.6172 GB, free: 2.027 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01178/0.5879, allocations: 10.13 MB / 0.6271 GB, free: 7.191 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.5879, allocations: 3.938 kB / 0.6271 GB, free: 7.188 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006681/0.5946, allocations: 3.217 MB / 0.6303 GB, free: 3.863 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008073/0.5955, allocations: 356 kB / 0.6306 GB, free: 3.496 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002694/0.5957, allocations: 47.92 kB / 0.6307 GB, free: 3.449 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000848/0.5966, allocations: 63.94 kB / 0.6307 GB, free: 3.387 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003328/0.5969, allocations: 113.1 kB / 0.6308 GB, free: 3.277 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.5971, allocations: 51.97 kB / 0.6309 GB, free: 3.227 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001195/0.5983, allocations: 0.6931 MB / 0.6316 GB, free: 2.527 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5983, allocations: 288 / 0.6316 GB, free: 2.527 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002976/0.6013, allocations: 0.5663 MB / 0.6321 GB, free: 1.961 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 23 (inertia.w,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],meterDC.pav,inverter2.vDC1,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]) * 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 (119): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007286/0.6086, allocations: 3.86 MB / 0.6359 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006125/0.6147, allocations: 3.125 MB / 0.6389 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.6148, allocations: 0 / 0.6389 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002711/0.6175, allocations: 1.579 MB / 0.6405 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/0.6191, allocations: 325.2 kB / 0.6408 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03756/0.6567, allocations: 18.96 MB / 0.6593 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001723/0.6584, allocations: 1.596 MB / 0.6609 GB, free: 3.617 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001262/0.6597, allocations: 404.5 kB / 0.6613 GB, free: 3.215 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001002/0.6608, allocations: 0.6594 MB / 0.6619 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of SimCode: time 7.02e-07/0.6608, allocations: 0 / 0.6619 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1512/0.8119, allocations: 46.63 MB / 0.7074 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.36/16.18, allocations: 3.375 kB / 0.7074 GB, free: 4.18 MB / 0.5606 GB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)