Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_PSGR,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_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.001488/0.001488, 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.001503/0.001503, 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.377/1.377, 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/package.mo): time 0.1789/0.1789, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 63.89 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2937, allocations: 58.06 MB / 0.5036 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.009468/0.3032, allocations: 10.95 MB / 0.5143 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01154/0.3147, allocations: 7.08 MB / 0.5212 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001079/0.3158, allocations: 45.22 kB / 0.5213 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02274/0.3386, allocations: 12.92 MB / 0.5339 GB, free: 6.281 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003412/0.342, allocations: 1.094 MB / 0.5349 GB, free: 5.41 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002077/0.3441, allocations: 0.6557 MB / 0.5356 GB, free: 4.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006361/0.3505, allocations: 3.905 MB / 0.5394 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00167/0.3522, allocations: 0.9939 MB / 0.5404 GB, free: 2.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002193/0.3544, allocations: 1.083 MB / 0.5414 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002543/0.357, allocations: 1.39 MB / 0.5428 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004888/0.3575, allocations: 151.9 kB / 0.5429 GB, free: 380 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001491/0.359, allocations: 0.4994 MB / 0.5434 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001198/0.3602, allocations: 0.8923 MB / 0.5443 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001722/0.3619, allocations: 0.9601 MB / 0.5452 GB, free: 14.01 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003796/0.3657, allocations: 2.51 MB / 0.5477 GB, free: 11.49 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3658, allocations: 0 / 0.5477 GB, free: 11.49 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3658, allocations: 0 / 0.5477 GB, free: 11.49 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.69e-05/0.3659, allocations: 0 / 0.5477 GB, free: 11.49 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.005241/0.3711, allocations: 2.206 MB / 0.5498 GB, free: 9.223 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.3712, allocations: 15.89 kB / 0.5498 GB, free: 9.207 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003718/0.3715, allocations: 228.2 kB / 0.5501 GB, free: 8.973 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001879/0.3734, allocations: 335.2 kB / 0.5504 GB, free: 8.645 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002738/0.3762, allocations: 1.289 MB / 0.5516 GB, free: 7.312 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.825e-05/0.3763, allocations: 102.6 kB / 0.5517 GB, free: 7.211 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005834/0.3769, allocations: 239.7 kB / 0.552 GB, free: 6.977 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003537/0.3804, allocations: 2.145 MB / 0.5541 GB, free: 4.723 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.463e-05/0.3805, allocations: 11.92 kB / 0.5541 GB, free: 4.711 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001508/0.3807, allocations: 59.98 kB / 0.5541 GB, free: 4.652 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00067/0.3813, allocations: 182.7 kB / 0.5543 GB, free: 4.473 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003184/0.3845, allocations: 1.756 MB / 0.556 GB, free: 2.711 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.0126/0.3971, allocations: 8.591 MB / 0.5644 GB, free: 9.699 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002847/0.4, allocations: 1.821 MB / 0.5662 GB, free: 7.758 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001444/0.4015, allocations: 0.762 MB / 0.5669 GB, free: 6.992 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.231e-05/0.4016, allocations: 17 kB / 0.567 GB, free: 6.977 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.736e-05/0.4016, allocations: 47.55 kB / 0.567 GB, free: 6.918 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 3.055e-06/0.4017, allocations: 0 / 0.567 GB, free: 6.918 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.02015/0.4218, allocations: 7.604 MB / 0.5744 GB, free: 15.15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.703e-05/0.4219, allocations: 94.45 kB / 0.5745 GB, free: 15.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001491/0.4234, allocations: 1.037 MB / 0.5755 GB, free: 13.99 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001514/0.4236, allocations: 53.7 kB / 0.5756 GB, free: 13.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000655/0.4242, allocations: 0.7895 MB / 0.5763 GB, free: 13.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005587/0.4248, allocations: 0.5616 MB / 0.5769 GB, free: 12.56 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005265/0.4253, allocations: 327.5 kB / 0.5772 GB, free: 12.24 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.4255, allocations: 305.1 kB / 0.5775 GB, free: 11.94 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/0.4269, allocations: 0.7808 MB / 0.5783 GB, free: 11.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001768/0.4286, allocations: 1.251 MB / 0.5795 GB, free: 9.711 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.01704/0.4457, allocations: 5.681 MB / 0.585 GB, free: 3.852 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.495e-05/0.4457, allocations: 4 kB / 0.585 GB, free: 3.848 MB / 446.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.009893/0.4556, allocations: 3.922 MB / 0.5889 GB, free: 15.88 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.953e-05/0.4557, allocations: 12 kB / 0.5889 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.611e-05/0.4557, allocations: 12.78 kB / 0.5889 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006166/0.4619, allocations: 1.736 MB / 0.5906 GB, free: 14.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/0.4631, allocations: 271.5 kB / 0.5908 GB, free: 13.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02954/0.4926, allocations: 18.51 MB / 0.6089 GB, free: 10.76 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.494, allocations: 87.88 kB / 0.609 GB, free: 10.67 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002121/0.4942, allocations: 79.94 kB / 0.6091 GB, free: 10.59 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.0009964/0.4952, allocations: 0.5354 MB / 0.6096 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003201/0.4956, allocations: 151 kB / 0.6097 GB, free: 9.902 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005519/0.5011, allocations: 2.401 MB / 0.6121 GB, free: 7.43 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.991e-05/0.5011, allocations: 16 kB / 0.6121 GB, free: 7.414 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.5011, allocations: 11.88 kB / 0.6121 GB, free: 7.402 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.058e-05/0.5012, allocations: 7.969 kB / 0.6121 GB, free: 7.395 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009263/0.5104, allocations: 4.325 MB / 0.6163 GB, free: 2.934 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.5105, allocations: 0 / 0.6163 GB, free: 2.934 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001661/0.5121, allocations: 307.6 kB / 0.6166 GB, free: 2.633 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002807/0.515, allocations: 0.5543 MB / 0.6172 GB, free: 2.062 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002086/0.5152, allocations: 51.97 kB / 0.6172 GB, free: 2.012 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/0.527, allocations: 10.14 MB / 0.6271 GB, free: 7.176 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.5271, allocations: 12.03 kB / 0.6271 GB, free: 7.164 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006724/0.5338, allocations: 3.213 MB / 0.6303 GB, free: 3.84 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008276/0.5347, allocations: 356 kB / 0.6306 GB, free: 3.473 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002482/0.5349, allocations: 51.92 kB / 0.6307 GB, free: 3.422 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008393/0.5358, allocations: 55.94 kB / 0.6307 GB, free: 3.367 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003424/0.5361, allocations: 121.1 kB / 0.6308 GB, free: 3.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/0.5363, allocations: 47.98 kB / 0.6309 GB, free: 3.203 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001063/0.5373, allocations: 0.6892 MB / 0.6316 GB, free: 2.508 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5373, allocations: 0 / 0.6316 GB, free: 2.508 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002133/0.5395, allocations: 0.5702 MB / 0.6321 GB, free: 1.938 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.007169/0.5467, allocations: 3.859 MB / 0.6359 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005829/0.5525, allocations: 3.122 MB / 0.6389 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.5525, allocations: 3.938 kB / 0.6389 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002748/0.5553, allocations: 1.571 MB / 0.6405 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/0.5569, allocations: 330.8 kB / 0.6408 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03711/0.5941, allocations: 18.96 MB / 0.6593 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001599/0.5957, allocations: 1.585 MB / 0.6608 GB, free: 3.613 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001165/0.5969, allocations: 408.5 kB / 0.6612 GB, free: 3.207 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009842/0.5979, allocations: 0.6593 MB / 0.6619 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of SimCode: time 6.61e-07/0.5979, allocations: 7.938 kB / 0.6619 GB, free: 2.539 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1074/0.7053, allocations: 46.6 MB / 0.7074 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.79/15.49, allocations: 8 kB / 0.7074 GB, free: 4.172 MB / 0.5606 GB (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)