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: translateModel(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.|windGen.generator.slip",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.|windGen.generator.slip",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001479/0.00148, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001579/0.001579, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.344/1.344, allocations: 222.9 MB / 242.2 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.1771/0.1771, allocations: 38.05 MB / 330.4 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 65.36 kB / 399.5 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1067, allocations: 58.06 MB / 457.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.0106/0.1173, allocations: 7.614 MB / 465.2 MB, free: 408 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009068/0.1264, allocations: 5.382 MB / 470.5 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000841/0.1273, allocations: 27.88 kB / 470.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01106/0.1384, allocations: 5.173 MB / 475.7 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002257/0.1407, allocations: 0.6338 MB / 476.4 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001347/0.142, allocations: 451.1 kB / 476.8 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0036/0.1457, allocations: 2.206 MB / 479 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001823/0.1475, allocations: 1.127 MB / 480.1 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001301/0.1488, allocations: 0.6306 MB / 480.8 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001316/0.1501, allocations: 0.7428 MB / 481.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003392/0.1505, allocations: 116 kB / 481.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000996/0.1515, allocations: 395.5 kB / 482 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006852/0.1522, allocations: 0.491 MB / 482.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001128/0.1533, allocations: 0.595 MB / 483.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002275/0.1556, allocations: 1.702 MB / 484.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1557, allocations: 0 / 484.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1557, allocations: 0 / 484.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.393e-05/0.1557, allocations: 0 / 484.8 MB, free: 12.68 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.003632/0.1594, allocations: 1.424 MB / 486.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.1594, allocations: 8.031 kB / 486.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008952/0.1603, allocations: 159.4 kB / 486.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002255/0.1626, allocations: 0.9406 MB / 487.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.078e-05/0.1627, allocations: 65.98 kB / 487.4 MB, free: 9.984 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002591/0.1629, allocations: 80 kB / 487.5 MB, free: 9.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/0.1648, allocations: 1.078 MB / 488.6 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.82e-05/0.1649, allocations: 3.906 kB / 488.6 MB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.435e-05/0.165, allocations: 31.98 kB / 488.6 MB, free: 8.754 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002352/0.1652, allocations: 73.95 kB / 488.7 MB, free: 8.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.1667, allocations: 0.8353 MB / 489.5 MB, free: 7.848 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005905/0.1727, allocations: 4.008 MB / 493.5 MB, free: 3.652 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.1737, allocations: 0.6261 MB / 494.1 MB, free: 2.988 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004444/0.1742, allocations: 315.3 kB / 494.4 MB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.851e-05/0.1743, allocations: 8.562 kB / 494.5 MB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.274e-05/0.1743, allocations: 43.06 kB / 494.5 MB, free: 2.617 MB / 366.1 MB Notification: Performance of pre-optimization done (n=57): time 3.326e-06/0.1743, allocations: 0 / 494.5 MB, free: 2.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005033/0.1794, allocations: 2.583 MB / 497.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.547e-05/0.1795, allocations: 119.4 kB / 497.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009589/0.1804, allocations: 0.6957 MB / 497.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.014e-05/0.1805, allocations: 33.7 kB / 497.9 MB, free: 15.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.1808, allocations: 483.1 kB / 498.4 MB, free: 14.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002019/0.1811, allocations: 236.6 kB / 498.6 MB, free: 14.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002231/0.1813, allocations: 146.9 kB / 498.8 MB, free: 14.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.1815, allocations: 394.7 kB / 499.2 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000476/0.182, allocations: 301.8 kB / 499.4 MB, free: 13.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006291/0.1826, allocations: 0.5266 MB / 500 MB, free: 12.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003745/0.1863, allocations: 1.672 MB / 0.4899 GB, free: 11.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.1864, allocations: 4 kB / 0.4899 GB, free: 11.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002292/0.1887, allocations: 1.271 MB / 0.4911 GB, free: 9.816 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.1887, allocations: 11.94 kB / 0.4911 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.1887, allocations: 8 kB / 0.4912 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.1898, allocations: 409.5 kB / 0.4915 GB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005253/0.1904, allocations: 151.8 kB / 0.4917 GB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00748/0.1979, allocations: 6.243 MB / 0.4978 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005555/0.1984, allocations: 24 kB / 0.4978 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.894e-05/0.1985, allocations: 35.98 kB / 0.4978 GB, free: 2.641 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.000601/0.1991, allocations: 360.8 kB / 0.4982 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/0.1993, allocations: 78.97 kB / 0.4983 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.2009, allocations: 0.9034 MB / 0.4991 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.2009, allocations: 8 kB / 0.4991 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.2009, allocations: 0 / 0.4991 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.2009, allocations: 3.984 kB / 0.4992 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003162/0.2041, allocations: 2.013 MB / 0.5011 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.2041, allocations: 0 / 0.5011 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00058/0.2047, allocations: 111.9 kB / 0.5012 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005181/0.2052, allocations: 202.4 kB / 0.5014 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.226e-05/0.2053, allocations: 27.98 kB / 0.5014 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004523/0.2098, allocations: 5.476 MB / 0.5068 GB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.2099, allocations: 4.031 kB / 0.5068 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/0.2116, allocations: 1.27 MB / 0.508 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002987/0.212, allocations: 200.1 kB / 0.5082 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.2121, allocations: 35.86 kB / 0.5083 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000363/0.2125, allocations: 15.98 kB / 0.5083 GB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.38e-05/0.2126, allocations: 52.44 kB / 0.5083 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.342e-05/0.2126, allocations: 16.12 kB / 0.5083 GB, free: 7.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006053/0.2132, allocations: 0.4912 MB / 0.5088 GB, free: 6.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2132, allocations: 0 / 0.5088 GB, free: 6.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009591/0.2142, allocations: 252 kB / 0.5091 GB, free: 6.531 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.0009847/0.2152, allocations: 423.2 kB / 0.5095 GB, free: 6.258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002239/0.2175, allocations: 1.255 MB / 0.5107 GB, free: 4.973 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.2175, allocations: 0 / 0.5107 GB, free: 4.973 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009236/0.2184, allocations: 0.7191 MB / 0.5114 GB, free: 4.219 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008824/0.2193, allocations: 189.4 kB / 0.5116 GB, free: 4.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004087/0.2234, allocations: 2.587 MB / 0.5141 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008719/0.2243, allocations: 1.15 MB / 0.5152 GB, free: 224 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.2245, allocations: 63.42 kB / 0.5153 GB, free: 160 kB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2245, allocations: 0 / 0.5153 GB, free: 160 kB / 398.1 MB Notification: Performance of Templates: time 0.2011/0.4256, allocations: 22.61 MB / 0.5374 GB, free: 60.86 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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