Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.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_PSGI,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGI,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI",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.00117/0.00117, allocations: 106.8 kB / 16.92 MB, free: 5.773 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.001254/0.001254, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.305/1.305, 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/package.mo): time 0.1739/0.1739, allocations: 38.02 MB / 329.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 55.95 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09456/0.09575, allocations: 58.07 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01246/0.1082, allocations: 11.01 MB / 468 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01037/0.1187, allocations: 7.09 MB / 475.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.1201, allocations: 51.69 kB / 475.1 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02276/0.1429, allocations: 12.86 MB / 488 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002934/0.1458, allocations: 1.12 MB / 489.1 MB, free: 7.738 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001992/0.1478, allocations: 0.6901 MB / 489.8 MB, free: 7.047 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005369/0.1532, allocations: 4.012 MB / 493.8 MB, free: 3.027 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00161/0.1549, allocations: 0.9925 MB / 494.8 MB, free: 2.012 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001817/0.1567, allocations: 1.117 MB / 495.9 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002194/0.1589, allocations: 1.441 MB / 497.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005645/0.1595, allocations: 152 kB / 497.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001489/0.161, allocations: 0.5188 MB / 498 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001236/0.1622, allocations: 0.9001 MB / 498.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001688/0.164, allocations: 0.9873 MB / 499.9 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003585/0.1676, allocations: 2.523 MB / 0.4906 GB, free: 10.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1676, allocations: 0 / 0.4906 GB, free: 10.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1676, allocations: 0 / 0.4906 GB, free: 10.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.67e-05/0.1677, allocations: 0 / 0.4906 GB, free: 10.35 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.004984/0.1727, allocations: 2.235 MB / 0.4928 GB, free: 8.059 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.1727, allocations: 11.89 kB / 0.4928 GB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003773/0.1731, allocations: 232.5 kB / 0.4931 GB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001931/0.1751, allocations: 338 kB / 0.4934 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002586/0.1777, allocations: 1.272 MB / 0.4946 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.123e-05/0.1777, allocations: 106.7 kB / 0.4947 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005775/0.1783, allocations: 231.8 kB / 0.4949 GB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003443/0.1818, allocations: 2.192 MB / 0.4971 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.717e-05/0.1819, allocations: 23.83 kB / 0.4971 GB, free: 3.504 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001535/0.182, allocations: 59.98 kB / 0.4972 GB, free: 3.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006549/0.1827, allocations: 178.8 kB / 0.4973 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003372/0.1861, allocations: 1.827 MB / 0.4991 GB, free: 1.438 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.1956/0.3817, allocations: 8.558 MB / 0.5075 GB, free: 52.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002565/0.3843, allocations: 1.913 MB / 0.5093 GB, free: 51.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.3857, allocations: 0.7976 MB / 0.5101 GB, free: 51.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.311e-05/0.3858, allocations: 20.86 kB / 0.5101 GB, free: 51.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.3859, allocations: 52.16 kB / 0.5102 GB, free: 50.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.567e-06/0.3859, allocations: 1.094 kB / 0.5102 GB, free: 50.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.01203/0.3979, allocations: 5.952 MB / 0.516 GB, free: 48.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.398, allocations: 92.73 kB / 0.5161 GB, free: 47.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001448/0.3995, allocations: 1.064 MB / 0.5171 GB, free: 47.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.824e-05/0.3996, allocations: 49.84 kB / 0.5172 GB, free: 47.53 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004217/0.4, allocations: 0.7881 MB / 0.5179 GB, free: 46.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003509/0.4003, allocations: 0.5264 MB / 0.5185 GB, free: 46.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004724/0.4008, allocations: 324.2 kB / 0.5188 GB, free: 46.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.814e-05/0.4009, allocations: 307.2 kB / 0.5191 GB, free: 46.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/0.402, allocations: 0.7412 MB / 0.5198 GB, free: 45.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.4033, allocations: 1.226 MB / 0.521 GB, free: 45 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.009629/0.413, allocations: 4.348 MB / 0.5252 GB, free: 43.06 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.85e-05/0.413, allocations: 5.281 kB / 0.5252 GB, free: 43.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.007264/0.4203, allocations: 3.977 MB / 0.5291 GB, free: 40.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.2e-05/0.4204, allocations: 15.12 kB / 0.5291 GB, free: 40.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.209e-05/0.4204, allocations: 19.17 kB / 0.5291 GB, free: 40.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003919/0.4243, allocations: 1.456 MB / 0.5306 GB, free: 39.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.4254, allocations: 283.6 kB / 0.5308 GB, free: 39.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01963/0.4451, allocations: 20.99 MB / 0.5513 GB, free: 17.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/0.4466, allocations: 85.44 kB / 0.5514 GB, free: 17.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002584/0.4469, allocations: 84.08 kB / 0.5515 GB, free: 17.54 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.PI.x = 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: 66 * 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 (144): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,2,100.0%), (1,1,100.0%), (1,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001023/0.4479, allocations: 0.5168 MB / 0.552 GB, free: 17.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003765/0.4483, allocations: 142.2 kB / 0.5521 GB, free: 16.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003131/0.4515, allocations: 2.213 MB / 0.5543 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.4515, allocations: 16 kB / 0.5543 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.4515, allocations: 4 kB / 0.5543 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.4515, allocations: 7.969 kB / 0.5543 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005627/0.4571, allocations: 3.989 MB / 0.5582 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.4572, allocations: 4 kB / 0.5582 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001567/0.4587, allocations: 339.8 kB / 0.5586 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000494/0.4593, allocations: 212 kB / 0.5588 GB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/0.4594, allocations: 47.97 kB / 0.5588 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003909/0.4633, allocations: 7.93 MB / 0.5665 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4633, allocations: 4 kB / 0.5665 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004045/0.4674, allocations: 2.937 MB / 0.5694 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007102/0.4681, allocations: 335.1 kB / 0.5697 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000299/0.4684, allocations: 51.97 kB / 0.5698 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000855/0.4693, allocations: 59.89 kB / 0.5698 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.4695, allocations: 105.1 kB / 0.5699 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.91e-05/0.4696, allocations: 39.98 kB / 0.57 GB, free: 13.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009779/0.4706, allocations: 0.7178 MB / 0.5707 GB, free: 12.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4706, allocations: 0 / 0.5707 GB, free: 12.79 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002011/0.4726, allocations: 0.5414 MB / 0.5712 GB, free: 12.25 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 26 (inertia.phi,inertia.w,meterDC.pav,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],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],PI.x) * 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 (137): * Single equations (assignments): 131 * 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): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,8,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.004612/0.4772, allocations: 3.56 MB / 0.5747 GB, free: 8.551 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007204/0.4845, allocations: 4.215 MB / 0.5788 GB, free: 4.277 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.4845, allocations: 0 / 0.5788 GB, free: 4.277 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002108/0.4866, allocations: 1.399 MB / 0.5802 GB, free: 2.812 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00183/0.4885, allocations: 337.7 kB / 0.5805 GB, free: 2.488 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03411/0.5226, allocations: 19.96 MB / 0.6 GB, free: 13.56 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001898/0.5245, allocations: 1.584 MB / 0.6015 GB, free: 11.95 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001478/0.526, allocations: 432.7 kB / 0.6019 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/0.5271, allocations: 0.6828 MB / 0.6026 GB, free: 10.83 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5271, allocations: 0 / 0.6026 GB, free: 10.83 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1076/0.6347, allocations: 43.2 MB / 0.6448 GB, free: 15.86 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.3, allocations: 11.59 kB / 0.6448 GB, free: 15.86 MB / 478.1 MB (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)