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.001473/0.001473, allocations: 107.1 kB / 16.92 MB, free: 5.777 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.001683/0.001684, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.295/1.295, allocations: 222.9 MB / 241.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1759/0.1759, allocations: 38.03 MB / 329.7 MB, free: 8.879 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 63.09 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09342/0.09468, allocations: 58.06 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01466/0.1094, allocations: 10.94 MB / 467.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01211/0.1216, allocations: 7.097 MB / 475 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001147/0.1227, allocations: 51.69 kB / 475 MB, free: 5.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01988/0.1426, allocations: 12.89 MB / 487.9 MB, free: 8.914 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002706/0.1454, allocations: 1.108 MB / 489 MB, free: 7.801 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001789/0.1472, allocations: 0.6511 MB / 489.7 MB, free: 7.148 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00546/0.1526, allocations: 3.899 MB / 493.6 MB, free: 3.234 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00167/0.1543, allocations: 1 MB / 494.6 MB, free: 2.215 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001864/0.1562, allocations: 1.078 MB / 495.7 MB, free: 1.133 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002175/0.1584, allocations: 1.398 MB / 497.1 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005885/0.159, allocations: 144 kB / 497.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.1603, allocations: 0.511 MB / 497.7 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009581/0.1613, allocations: 0.8845 MB / 498.6 MB, free: 14.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001393/0.1627, allocations: 0.9563 MB / 499.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002904/0.1656, allocations: 2.465 MB / 0.4903 GB, free: 10.76 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.1656, allocations: 0 / 0.4903 GB, free: 10.76 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1656, allocations: 0 / 0.4903 GB, free: 10.76 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.472e-05/0.1657, allocations: 7.938 kB / 0.4903 GB, free: 10.75 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.00461/0.1703, allocations: 2.154 MB / 0.4924 GB, free: 8.535 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.1704, allocations: 11.89 kB / 0.4924 GB, free: 8.523 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002643/0.1706, allocations: 224.2 kB / 0.4926 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001762/0.1724, allocations: 326.3 kB / 0.4929 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002234/0.1747, allocations: 1.229 MB / 0.4941 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.148e-05/0.1748, allocations: 98.66 kB / 0.4942 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005433/0.1753, allocations: 239.7 kB / 0.4944 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00384/0.1792, allocations: 2.161 MB / 0.4965 GB, free: 4.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.839e-05/0.1792, allocations: 4 kB / 0.4965 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001524/0.1794, allocations: 55.98 kB / 0.4966 GB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007112/0.1801, allocations: 182.7 kB / 0.4968 GB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002944/0.1831, allocations: 1.76 MB / 0.4985 GB, free: 2.09 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.1776/0.3606, allocations: 8.602 MB / 0.5069 GB, free: 52.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002231/0.3629, allocations: 1.828 MB / 0.5087 GB, free: 51.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001304/0.3642, allocations: 0.7803 MB / 0.5094 GB, free: 51.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.561e-05/0.3643, allocations: 26.11 kB / 0.5095 GB, free: 51.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.3643, allocations: 45.2 kB / 0.5095 GB, free: 51.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.276e-06/0.3643, allocations: 0 / 0.5095 GB, free: 51.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01022/0.3746, allocations: 5.446 MB / 0.5148 GB, free: 48.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.969e-05/0.3746, allocations: 91.8 kB / 0.5149 GB, free: 48.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/0.3759, allocations: 1.04 MB / 0.5159 GB, free: 48.08 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.276e-05/0.376, allocations: 46.55 kB / 0.516 GB, free: 48.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003891/0.3764, allocations: 0.762 MB / 0.5167 GB, free: 47.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003197/0.3767, allocations: 0.4932 MB / 0.5172 GB, free: 47.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004351/0.3772, allocations: 315.7 kB / 0.5175 GB, free: 46.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.472e-05/0.3772, allocations: 310.8 kB / 0.5178 GB, free: 46.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.3784, allocations: 0.7209 MB / 0.5185 GB, free: 46.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/0.3798, allocations: 1.185 MB / 0.5197 GB, free: 45.59 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.01092/0.3907, allocations: 5.002 MB / 0.5245 GB, free: 43.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.696e-05/0.3907, allocations: 4.125 kB / 0.5245 GB, free: 43.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006331/0.3971, allocations: 3.598 MB / 0.5281 GB, free: 41.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.3971, allocations: 10.88 kB / 0.5281 GB, free: 41.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.785e-05/0.3971, allocations: 14.38 kB / 0.5281 GB, free: 41.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003268/0.4004, allocations: 1.266 MB / 0.5293 GB, free: 41.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.4016, allocations: 322.5 kB / 0.5296 GB, free: 40.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01531/0.4169, allocations: 16.02 MB / 0.5453 GB, free: 24.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.4182, allocations: 83.73 kB / 0.5454 GB, free: 24.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.4184, allocations: 78.09 kB / 0.5454 GB, free: 24.08 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 5.051577893736758e-05 * $DER.generator.i_s[3] = 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 (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,23), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0007592/0.4191, allocations: 0.5196 MB / 0.5459 GB, free: 23.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002052/0.4193, allocations: 138.3 kB / 0.5461 GB, free: 23.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002646/0.422, allocations: 2.142 MB / 0.5482 GB, free: 21.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.168e-06/0.422, allocations: 19.94 kB / 0.5482 GB, free: 21.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.422, allocations: 4 kB / 0.5482 GB, free: 21.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.422, allocations: 3.984 kB / 0.5482 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005041/0.4271, allocations: 3.849 MB / 0.5519 GB, free: 17.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.435e-06/0.4271, allocations: 4 kB / 0.552 GB, free: 17.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00149/0.4286, allocations: 319.9 kB / 0.5523 GB, free: 16.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004787/0.4291, allocations: 208.7 kB / 0.5525 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.4292, allocations: 47.97 kB / 0.5525 GB, free: 16.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00394/0.4332, allocations: 7.937 MB / 0.5603 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.4332, allocations: 7.969 kB / 0.5603 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003553/0.4368, allocations: 2.817 MB / 0.563 GB, free: 5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005601/0.4373, allocations: 331.2 kB / 0.5633 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/0.4375, allocations: 47.98 kB / 0.5634 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007163/0.4382, allocations: 55.89 kB / 0.5634 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.4385, allocations: 102.9 kB / 0.5635 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.169e-05/0.4385, allocations: 35.98 kB / 0.5636 GB, free: 4.422 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007472/0.4393, allocations: 0.697 MB / 0.5642 GB, free: 3.719 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4393, allocations: 0 / 0.5642 GB, free: 3.719 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001836/0.4411, allocations: 0.5023 MB / 0.5647 GB, free: 3.219 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 25 (inertia.phi,inertia.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],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 (126): * Single equations (assignments): 120 * 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.003835/0.445, allocations: 3.452 MB / 0.5681 GB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006972/0.452, allocations: 3.701 MB / 0.5717 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.452, allocations: 0 / 0.5717 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002016/0.454, allocations: 1.369 MB / 0.573 GB, free: 10.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001631/0.4557, allocations: 319.6 kB / 0.5734 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03103/0.4867, allocations: 18.89 MB / 0.5918 GB, free: 6.363 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001407/0.4881, allocations: 1.553 MB / 0.5933 GB, free: 4.781 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001315/0.4895, allocations: 440.1 kB / 0.5937 GB, free: 4.348 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009622/0.4904, allocations: 0.6593 MB / 0.5944 GB, free: 3.688 MB / 414.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4905, allocations: 0 / 0.5944 GB, free: 3.688 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08283/0.5733, allocations: 41.39 MB / 0.6348 GB, free: 10.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/12.04, allocations: 10.73 kB / 0.6348 GB, free: 10.59 MB / 462.1 MB (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)