Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 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.AC3ph.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_latest_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.001329/0.001329, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001247/0.001247, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.336/1.336, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1735/0.1735, allocations: 38.04 MB / 329.7 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 60.28 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09795/0.09932, allocations: 58.07 MB / 457 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.0107/0.1101, allocations: 7.609 MB / 464.6 MB, free: 304 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009394/0.1195, allocations: 5.375 MB / 470 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008331/0.1204, allocations: 27.88 kB / 470 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01042/0.1308, allocations: 5.184 MB / 475.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001862/0.1327, allocations: 0.6299 MB / 475.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001282/0.134, allocations: 451.1 kB / 476.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003351/0.1374, allocations: 2.206 MB / 478.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001606/0.139, allocations: 1.127 MB / 479.6 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001232/0.1402, allocations: 0.6423 MB / 480.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.1415, allocations: 0.7279 MB / 480.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001777/0.1417, allocations: 120 kB / 481.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008446/0.1426, allocations: 391.5 kB / 481.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004674/0.1431, allocations: 0.4949 MB / 481.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005845/0.1436, allocations: 0.6027 MB / 482.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00156/0.1452, allocations: 1.694 MB / 484.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1452, allocations: 4 kB / 484.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1452, allocations: 0 / 484.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.115e-05/0.1453, allocations: 0 / 484.2 MB, free: 12.57 MB / 366.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.002624/0.1479, allocations: 1.421 MB / 485.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.148, allocations: 11.89 kB / 485.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001662/0.1481, allocations: 139.2 kB / 485.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006713/0.1488, allocations: 147.6 kB / 486 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.1504, allocations: 0.9404 MB / 486.9 MB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.434e-05/0.1504, allocations: 57.98 kB / 487 MB, free: 9.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001716/0.1506, allocations: 91.89 kB / 487 MB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.1521, allocations: 1.074 MB / 488.1 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.304e-05/0.1521, allocations: 7.938 kB / 488.1 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.143e-05/0.1522, allocations: 35.98 kB / 488.2 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002235/0.1525, allocations: 73.95 kB / 488.2 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.1537, allocations: 0.8353 MB / 489.1 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005233/0.159, allocations: 4.008 MB / 493.1 MB, free: 3.402 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009702/0.16, allocations: 0.6105 MB / 493.7 MB, free: 2.754 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004205/0.1604, allocations: 321.5 kB / 494 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.301e-05/0.1605, allocations: 12.56 kB / 494 MB, free: 2.426 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.1605, allocations: 43.06 kB / 494.1 MB, free: 2.375 MB / 366.1 MB Notification: Performance of pre-optimization done (n=57): time 3.447e-06/0.1605, allocations: 3.984 kB / 494.1 MB, free: 2.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004574/0.1651, allocations: 2.586 MB / 496.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/0.1652, allocations: 111.4 kB / 496.8 MB, free: 15.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000795/0.166, allocations: 0.6957 MB / 497.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.166, allocations: 42.03 kB / 497.5 MB, free: 14.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/0.1664, allocations: 479.1 kB / 498 MB, free: 14.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.1666, allocations: 240.6 kB / 498.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/0.1668, allocations: 154.5 kB / 498.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.167, allocations: 394.8 kB / 498.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004444/0.1674, allocations: 305.8 kB / 499 MB, free: 13.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005873/0.168, allocations: 0.5149 MB / 499.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003694/0.1717, allocations: 1.672 MB / 0.4895 GB, free: 10.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.1717, allocations: 4 kB / 0.4895 GB, free: 10.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002261/0.174, allocations: 1.27 MB / 0.4907 GB, free: 9.566 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.174, allocations: 8 kB / 0.4907 GB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.174, allocations: 8 kB / 0.4907 GB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.1751, allocations: 417.5 kB / 0.4911 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005033/0.1756, allocations: 143.8 kB / 0.4913 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007349/0.183, allocations: 6.248 MB / 0.4974 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005926/0.1836, allocations: 31.98 kB / 0.4974 GB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-05/0.1837, allocations: 32 kB / 0.4974 GB, free: 2.391 MB / 382.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.000703/0.1844, allocations: 365.4 kB / 0.4978 GB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.1846, allocations: 82.97 kB / 0.4979 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/0.1863, allocations: 0.8955 MB / 0.4987 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.1863, allocations: 8 kB / 0.4987 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.1863, allocations: 4 kB / 0.4987 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.1864, allocations: 7.984 kB / 0.4987 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003333/0.1897, allocations: 2.002 MB / 0.5007 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1897, allocations: 0 / 0.5007 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005827/0.1903, allocations: 124 kB / 0.5008 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005181/0.1908, allocations: 190.3 kB / 0.501 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.746e-05/0.1909, allocations: 23.98 kB / 0.501 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004443/0.1953, allocations: 5.488 MB / 0.5064 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1954, allocations: 0 / 0.5064 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001876/0.1973, allocations: 1.266 MB / 0.5076 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003176/0.1976, allocations: 212 kB / 0.5078 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.1977, allocations: 23.98 kB / 0.5078 GB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003639/0.1981, allocations: 23.88 kB / 0.5079 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.532e-05/0.1982, allocations: 52.48 kB / 0.5079 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.882e-05/0.1982, allocations: 20 kB / 0.5079 GB, free: 7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000593/0.1988, allocations: 499 kB / 0.5084 GB, free: 6.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1988, allocations: 0 / 0.5084 GB, free: 6.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009805/0.1998, allocations: 244 kB / 0.5086 GB, free: 6.281 MB / 398.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.00296/0.2028, allocations: 2.122 MB / 0.5107 GB, free: 4.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002213/0.205, allocations: 1.263 MB / 0.512 GB, free: 2.957 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.205, allocations: 0 / 0.512 GB, free: 2.957 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008905/0.2059, allocations: 0.7061 MB / 0.5126 GB, free: 2.215 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009025/0.2069, allocations: 197.1 kB / 0.5128 GB, free: 2.023 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2029/0.4098, allocations: 8.818 MB / 0.5214 GB, free: 67.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009792/0.4108, allocations: 1.14 MB / 0.5226 GB, free: 66.87 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008185/0.4117, allocations: 157.9 kB / 0.5227 GB, free: 66.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005034/0.4122, allocations: 357.6 kB / 0.523 GB, free: 66.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.493e-06/0.4122, allocations: 1.25 kB / 0.523 GB, free: 66.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05849/0.4707, allocations: 20.99 MB / 0.5435 GB, free: 57.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.71, allocations: 16.62 kB / 0.5436 GB, free: 57.16 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches