/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7541
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1061
RA = 330.031, Dec = 21.6382
tmin = 514339201, tmax = 514598401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='82825', job_status='RUN', time_executed='2021-09-27 23:25:58.309880', time_epoch_executed='1632810358.31' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1061'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82825

Creating custom pfile directory:
/scratch/kocevski/82825/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=514339201.0 && nMetStart<514598401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=514339201.0 && nMetStart<514598401.0' /Data/Flight/Level1/LPA

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82825/ft1_4FGL_J2200.1+2138_daily_bin1061.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=514339201.0 && nMetStart<514598401.0' /Data/Flight/Level1/LPA

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82825/ft2_4FGL_J2200.1+2138_daily_bin1061.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82825/ft1_4FGL_J2200.1+2138_daily_bin1061.fits outfile=/scratch/kocevski/82825/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1061.fits ra=330.031 dec=21.6382 rad=12.0 tmin=514339201.0 tmax=514598401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.22
user 3.91
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/82825/ft2_4FGL_J2200.1+2138_daily_bin1061.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82825/ft2_4FGL_J2200.1+2138_daily_bin1061.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/82825/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1061.fits evtable="EVENTS" outfile="/scratch/kocevski/82825/ft1_filtered_4FGL_J2200.1+2138_daily_bin1061.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82825/ft1_filtered_4FGL_J2200.1+2138_daily_bin1061.fits" evtable="EVENTS" scfile=/scratch/kocevski/82825/ft2_4FGL_J2200.1+2138_daily_bin1061.fits sctable="SC_DATA" outfile=/scratch/kocevski/82825/ltcube_514339201_514598401_4FGL_J2200.1+2138_daily_bin1061.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/82825/ft2_4FGL_J2200.1+2138_daily_bin1061.fits
.....................!
real 13.31
user 12.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82825/ft1_filtered_4FGL_J2200.1+2138_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/82825/ft2_4FGL_J2200.1+2138_daily_bin1061.fits sctable="SC_DATA" expcube=/scratch/kocevski/82825/ltcube_514339201_514598401_4FGL_J2200.1+2138_daily_bin1061.fits outfile=/scratch/kocevski/82825/expmap_514339201_514598401_4FGL_J2200.1+2138_daily_bin1061.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/82825/ltcube_514339201_514598401_4FGL_J2200.1+2138_daily_bin1061.fits
.....................!
real 191.42
user 185.45
sys 5.59

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 167 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2200.1+2138 @ 330.031 21.6382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/82825/ft1_filtered_4FGL_J2200.1+2138_daily_bin1061.fits scfile=/scratch/kocevski/82825/ft2_4FGL_J2200.1+2138_daily_bin1061.fits outfile=/scratch/kocevski/82825/cmap_514339201_514598401_4FGL_J2200.1+2138_daily_bin1061.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=330.031 yref=21.6382 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82825/ft1_filtered_4FGL_J2200.1+2138_daily_bin1061.fits scfile=/scratch/kocevski/82825/ft2_4FGL_J2200.1+2138_daily_bin1061.fits outfile=/scratch/kocevski/82825/cmap_HighResolution_514339201_514598401_4FGL_J2200.1+2138_daily_bin1061.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=330.031 yref=21.6382 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/82825/ft1_filtered_4FGL_J2200.1+2138_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/82825/ft2_4FGL_J2200.1+2138_daily_bin1061.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82825/Model_4FGL_J2200.1+2138_daily_bin1061.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/82825/ft1_filtered_4FGL_J2200.1+2138_daily_bin1061.fits.....................!
real 151.66
user 150.03
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/82825/ft1_filtered_4FGL_J2200.1+2138_daily_bin1061.fits', '/scratch/kocevski/82825/ft2_4FGL_J2200.1+2138_daily_bin1061.fits', expMap='/scratch/kocevski/82825/expmap_514339201_514598401_4FGL_J2200.1+2138_daily_bin1061.fits', expCube='/scratch/kocevski/82825/ltcube_514339201_514598401_4FGL_J2200.1+2138_daily_bin1061.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/82825/Model_4FGL_J2200.1+2138_daily_bin1061.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2200.1+2138'

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  7.461e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/82825/ft1_filtered_4FGL_J2200.1+2138_daily_bin1061.fits
Spacecraft file(s): /scratch/kocevski/82825/ft2_4FGL_J2200.1+2138_daily_bin1061.fits
Exposure map: /scratch/kocevski/82825/expmap_514339201_514598401_4FGL_J2200.1+2138_daily_bin1061.fits
Exposure cube: /scratch/kocevski/82825/ltcube_514339201_514598401_4FGL_J2200.1+2138_daily_bin1061.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/82825/Model_4FGL_J2200.1+2138_daily_bin1061.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9208.81132918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9208.80761647

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.836       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4805       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.7646       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52158       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.797       1.0000         .10000E-03   10000.    
     9 'norm      '    .64755       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7927       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.5542       1.0000         .10000E-03   10000.    
    14 'Prefactor '    80.858       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1972       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5152       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1399       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88962       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9208.808     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2213 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.834        24.190        .13765E-06   -.45406E-04
   2  norm          2.4805        3.5355        .29288E-06   -.15830E-03
   3  Prefactor     .10000E-03    2.0837       -.39299E-08** at limit **
   4  Prefactor     .10000E-03    6.5200       -.18093E-07** at limit **
   5  Prefactor     .10000E-03    29.992        .56515E-06** at limit **
   6  norm          2.7659        2.3009        .14512E-07   -.13705E-03
   7  Prefactor     .51550        6.1822        .34424E-05   -.15113E-03
   8  Prefactor     32.789        24.316        .39660E-06   -.12664E-03
   9  norm          .64749        .58016        .18915E-07   -.42877E-04
  10  Prefactor     .10000E-03    33.714       -.10220E-05** at limit **
  11  norm          1.7928        1.1723        .42208E-07    .42215E-04
  12  Prefactor     .10000E-03    3.9833        .42416E-08** at limit **
  13  norm          5.5542        5.3910       -.13093E-06    .56592E-04
  14  Prefactor     80.858        28.087        .94481E-07    .15316E-04
  15  Prefactor     .10000E-03    47.136        .52947E-06** at limit **
  16  Prefactor     3.1977        9.3896        .53789E-05    .14676E-03
  17  norm          2.5152        1.1768        .15960E-07   -.52501E-04
  18  norm          .10000E-03    .38733        .43477E-08** at limit **
  19  Prefactor     .10000E-03    9.8143        .36226E-07** at limit **
  20  Normalizat    1.1398        .23060       -.11450E-05    .27557E-04
  21  Prefactor     .88970        .99335E-01    .36109E-07   -.47017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8338
  norm       = 2.48047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.76591
  Prefactor  = 0.515504
  Prefactor  = 32.7889
  norm       = 0.647492
  Prefactor  = 0.000100003
  norm       = 1.79284
  Prefactor  = 0.0001
  norm       = 5.55424
  Prefactor  = 80.8584
  Prefactor  = 0.000100001
  Prefactor  = 3.1977
  norm       = 2.5152
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13976
  Prefactor  = 0.889704
 **********
 **   18 **HESSE 
 **********

 FCN=   9208.808     FROM HESSE     STATUS=OK           321 CALLS     2534 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.834        24.195        .11644E-03   -1.5020    
   2  norm          2.4805        3.5242        .20617E-03   -1.5393    
   3  Prefactor     .10000E-03    2.0885        .13528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.7659        2.2942        .12315E-03   -1.5375    
   7  Prefactor     .51550        12.293        .37037E-02   -1.5564    
   8  Prefactor     32.789        24.341        .69969E-04   -1.4562    
   9  norm          .64749        .56522        .66792E-04   -1.5547    
  10  Prefactor     .10000E-03    34.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7928        1.1615        .79536E-04   -1.5440    
  12  Prefactor     .10000E-03    3.9907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.5542        5.3879        .17047E-03   -1.5237    
  14  Prefactor     80.858        28.145        .44665E-04   -1.3907    
  15  Prefactor     .10000E-03    47.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1977        10.075        .11330E-02   -1.5350    
  17  norm          2.5152        1.1751        .68646E-04   -1.5391    
  18  norm          .10000E-03    .38859        .58323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1398        .27474        .37367E-03   -.88485    
  21  Prefactor     .88970        .11918        .18652E-03   -.96502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01373e-08
Minuit parameter uncertainties:
  1  24.2146
  2  3.52448
  3  4.69649e-07
  4  2.71149e-06
  5  0.000355333
  6  2.29427
  7  5.03547
  8  24.3485
  9  0.56522
  10  0.000687064
  11  1.16148
  12  2.61133e-06
  13  5.38837
  14  28.1494
  15  0.000337705
  16  10.0806
  17  1.17509
  18  3.37067e-08
  19  4.93195e-06
  20  0.275089
  21  0.119218
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9208.80761528

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  6.871e-04  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  8.897e-01  1.192e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.140e+00  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 330.031 21.638
Photon Flux Upper Limit: 5.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82825/likelihoodResults_514339201_514598401_4FGL_J2200.1+2138_daily_bin1061.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9208.80775449
delta logL = -0.000139211464557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9208.80775448
delta logL = -0.000139201483762

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0440       1.0000          .0000       10.000    
     3 'Normalizat'    1.1398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88971       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9208.603     FROM MIGRAD    STATUS=FAILED       150 CALLS      295 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.346        1280.5        .18143E-01    .28134E-03
   2  Index         1.0498        5.9764        .50000       -.59295E-04
   3  Normalizat    1.1383        .69824E-01    .37367E-03   -.35658E-04
   4  Prefactor     .88871        .27943E-01    .18652E-03   -.18646E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9208.603     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      381 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.346        1280.5        .44478E-03    .28134E-03
   2  Index         1.0498        5.9764        .16931E-02   -.59295E-04
   3  Normalizat    1.1383        .69824E-01    .13216E-03   -.35658E-04
   4  Prefactor     .88871        .27943E-01    .38270E-04   -.18646E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9208.603     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      415 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.346        32.456        .71980E-03    .67599E-05
   2  Index         1.0498        .83948        .17853E-01   -.14754E-03
   3  Normalizat    1.1383        .25595        .14947E-04   -.44420E-04
   4  Prefactor     .88871        .11527        .37304E-04   -.20455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3461
  Index      = 1.04976
  Normalizat = 1.1383
  Prefactor  = 0.888713
 **********
 **   18 **HESSE 
 **********

 FCN=   9208.603     FROM HESSE     STATUS=OK            25 CALLS      440 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.346        33.383        .28792E-04   -1.4924    
   2  Index         1.0498        .86315        .35706E-02   -.91089    
   3  Normalizat    1.1383        .25602        .29893E-05   -.88532    
   4  Prefactor     .88871        .11531        .74608E-05   -.96537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10604e-11
Minuit parameter uncertainties:
  1  33.4241
  2  0.874982
  3  0.256298
  4  0.115339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82825': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9208.60251439
delta logL = 0.205100889991

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.535e+01  3.342e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.050e+00  8.750e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  8.887e-01  1.153e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.138e+00  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 330.031 21.638

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/82825/cmap_HighResolution_514339201_514598401_4FGL_J2200.1+2138_daily_bin1061.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/82825

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-03', job_status='DONE', photon_flux_upper_limit='5.50e-08', time_completed='2021-09-27 23:40:38.945841', job_id='82825', GAL2='0.89', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632811238.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.05e-01', ts2='0.41', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1061' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:40:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 82825: <4FGL_J2200.1+2138_daily_bin1061> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1061> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 23:25:40 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:25:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 23:25:41 2021
Terminated at Mon Sep 27 23:40:39 2021
Results reported at Mon Sep 27 23:40:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1061 330.031 21.6382 514339201 514598401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2200.1+2138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   863.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             389.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            899 sec.

The output (if any) is above this job summary.

