Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AC3ph.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine",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.001081/0.001081, allocations: 114 kB / 17.06 MB, free: 5.992 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.001191/0.001191, allocations: 198.9 kB / 18 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.1 MB / 223.9 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1845/0.1845, allocations: 37.98 MB / 309.2 MB, free: 5.957 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 75.89 kB / 431.4 MB, free: 16.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.104, allocations: 55.23 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.01025/0.1142, allocations: 7.622 MB / 494.2 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009274/0.1236, allocations: 5.336 MB / 499.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009393/0.1245, allocations: 23.88 kB / 499.6 MB, free: 11.8 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.01105/0.1356, allocations: 5.169 MB / 0.4929 GB, free: 6.625 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.002111/0.1377, allocations: 0.6377 MB / 0.4936 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001274/0.139, allocations: 431.2 kB / 0.494 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003042/0.1421, allocations: 2.21 MB / 0.4961 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001676/0.1438, allocations: 1.116 MB / 0.4972 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.145, allocations: 0.65 MB / 0.4978 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00127/0.1463, allocations: 0.7318 MB / 0.4986 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003092/0.1466, allocations: 116 kB / 0.4987 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009265/0.1475, allocations: 399.5 kB / 0.4991 GB, free: 328 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005967/0.1481, allocations: 0.491 MB / 0.4995 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009272/0.1491, allocations: 0.5988 MB / 0.5001 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0022/0.1513, allocations: 1.71 MB / 0.5018 GB, free: 13.51 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1513, allocations: 0 / 0.5018 GB, free: 13.51 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1513, allocations: 0 / 0.5018 GB, free: 13.51 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.099e-05/0.1514, allocations: 0 / 0.5018 GB, free: 13.51 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.003205/0.1546, allocations: 1.428 MB / 0.5032 GB, free: 12.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.1546, allocations: 15.89 kB / 0.5032 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001891/0.1548, allocations: 127.3 kB / 0.5033 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007327/0.1556, allocations: 151.5 kB / 0.5035 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00208/0.1576, allocations: 0.9793 MB / 0.5044 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.473e-05/0.1577, allocations: 58 kB / 0.5045 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002145/0.1579, allocations: 95.97 kB / 0.5046 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/0.1597, allocations: 1.059 MB / 0.5056 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.339e-05/0.1597, allocations: 11.91 kB / 0.5056 GB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.331e-05/0.1598, allocations: 31.98 kB / 0.5056 GB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002174/0.16, allocations: 73.95 kB / 0.5057 GB, free: 9.344 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.1615, allocations: 0.8391 MB / 0.5065 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005849/0.1674, allocations: 3.973 MB / 0.5104 GB, free: 4.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.1685, allocations: 0.6211 MB / 0.511 GB, free: 3.688 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004349/0.1689, allocations: 319.3 kB / 0.5113 GB, free: 3.371 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.678e-05/0.169, allocations: 12.55 kB / 0.5113 GB, free: 3.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.169, allocations: 43.12 kB / 0.5114 GB, free: 3.309 MB / 398.1 MB Notification: Performance of pre-optimization done (n=57): time 1.984e-06/0.169, allocations: 0 / 0.5114 GB, free: 3.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.005307/0.1743, allocations: 2.579 MB / 0.5139 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.1745, allocations: 115.4 kB / 0.514 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001116/0.1756, allocations: 0.6997 MB / 0.5147 GB, free: 15.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.392e-05/0.1757, allocations: 41.7 kB / 0.5147 GB, free: 15.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003498/0.176, allocations: 475.2 kB / 0.5152 GB, free: 15.26 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002187/0.1763, allocations: 236.5 kB / 0.5154 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002411/0.1765, allocations: 150.6 kB / 0.5156 GB, free: 14.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.1767, allocations: 394.7 kB / 0.5159 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004967/0.1772, allocations: 309.8 kB / 0.5162 GB, free: 14.18 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006241/0.1779, allocations: 0.511 MB / 0.5167 GB, free: 13.58 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00378/0.1816, allocations: 1.675 MB / 0.5184 GB, free: 11.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.1817, allocations: 4 kB / 0.5184 GB, free: 11.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002359/0.184, allocations: 1.274 MB / 0.5196 GB, free: 10.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.1841, allocations: 8 kB / 0.5196 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/0.1841, allocations: 15.92 kB / 0.5196 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.1852, allocations: 397.6 kB / 0.52 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005118/0.1857, allocations: 147.8 kB / 0.5202 GB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008002/0.1937, allocations: 6.238 MB / 0.5262 GB, free: 3.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005585/0.1943, allocations: 27.98 kB / 0.5263 GB, free: 3.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.872e-05/0.1944, allocations: 36 kB / 0.5263 GB, free: 3.34 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.windGen.WT.turbine.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * 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 initialization (75): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0005974/0.195, allocations: 353.5 kB / 0.5266 GB, free: 2.984 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002009/0.1952, allocations: 82.97 kB / 0.5267 GB, free: 2.902 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001757/0.197, allocations: 0.8994 MB / 0.5276 GB, free: 1.977 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.197, allocations: 4 kB / 0.5276 GB, free: 1.973 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.197, allocations: 7.938 kB / 0.5276 GB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.1971, allocations: 7.969 kB / 0.5276 GB, free: 1.957 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2181/0.4151, allocations: 2.001 MB / 0.5296 GB, free: 50.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/0.4152, allocations: 3.219 kB / 0.5296 GB, free: 50.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007577/0.416, allocations: 119.8 kB / 0.5297 GB, free: 50.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006807/0.4167, allocations: 189.7 kB / 0.5299 GB, free: 50.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.899e-05/0.4167, allocations: 22.56 kB / 0.5299 GB, free: 50.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003955/0.4207, allocations: 5.482 MB / 0.5352 GB, free: 46.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.4207, allocations: 2.531 kB / 0.5352 GB, free: 46.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/0.4227, allocations: 1.269 MB / 0.5365 GB, free: 46.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003686/0.4231, allocations: 203 kB / 0.5367 GB, free: 46.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.424e-05/0.4232, allocations: 22.95 kB / 0.5367 GB, free: 46.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000327/0.4235, allocations: 15.25 kB / 0.5367 GB, free: 46.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.4237, allocations: 58.34 kB / 0.5368 GB, free: 46.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-05/0.4237, allocations: 19.81 kB / 0.5368 GB, free: 46.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006864/0.4244, allocations: 0.4886 MB / 0.5373 GB, free: 46.15 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4244, allocations: 0 / 0.5373 GB, free: 46.15 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001017/0.4254, allocations: 250.5 kB / 0.5375 GB, free: 46.12 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (windGen.generator.i[3],windGen.generator.psi_rd[1],windGen.generator.psi_rq[1],windGen.WT.genRotor.phi,windGen.WT.genRotor.w,windGen.WT.turbine.phi,windGen.WT.turbine.w,windGen.WT.gear.phi,windGen.WT.gear.w,line.i[1],line.i[2]) * 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,5,100.0%), (1,5,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002788/0.4282, allocations: 2.12 MB / 0.5396 GB, free: 44.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002006/0.4302, allocations: 1.14 MB / 0.5407 GB, free: 44.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4303, allocations: 0 / 0.5407 GB, free: 44.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008776/0.4311, allocations: 0.7176 MB / 0.5414 GB, free: 43.81 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009678/0.4321, allocations: 172.9 kB / 0.5416 GB, free: 43.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01228/0.4444, allocations: 8.588 MB / 0.5499 GB, free: 39.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000833/0.4453, allocations: 1.145 MB / 0.5511 GB, free: 38.44 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005472/0.4458, allocations: 162.5 kB / 0.5512 GB, free: 38.4 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004134/0.4463, allocations: 350.8 kB / 0.5515 GB, free: 38.13 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4463, allocations: 0 / 0.5515 GB, free: 38.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05155/0.4978, allocations: 21.69 MB / 0.5727 GB, free: 22.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/14.21, allocations: 8.047 kB / 0.5727 GB, free: 22.87 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe 2>&1)