/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 234 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 = 7672
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1056
RA = 330.031, Dec = 21.6382
tmin = 513043201, tmax = 513302401
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='82811', job_status='RUN', time_executed='2021-09-27 23:29:43.561837', time_epoch_executed='1632810583.56' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82811

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82811/ft1_4FGL_J2200.1+2138_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82811/ft2_4FGL_J2200.1+2138_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82811/ft1_4FGL_J2200.1+2138_daily_bin1056.fits outfile=/scratch/kocevski/82811/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1056.fits ra=330.031 dec=21.6382 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.35
user 6.02
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82811/ft2_4FGL_J2200.1+2138_daily_bin1056.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/82811/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/82811/ft1_filtered_4FGL_J2200.1+2138_daily_bin1056.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82811/ft1_filtered_4FGL_J2200.1+2138_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/82811/ft2_4FGL_J2200.1+2138_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/82811/ltcube_513043201_513302401_4FGL_J2200.1+2138_daily_bin1056.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/82811/ft2_4FGL_J2200.1+2138_daily_bin1056.fits
.....................!
real 12.67
user 12.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82811/ft1_filtered_4FGL_J2200.1+2138_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/82811/ft2_4FGL_J2200.1+2138_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/82811/ltcube_513043201_513302401_4FGL_J2200.1+2138_daily_bin1056.fits outfile=/scratch/kocevski/82811/expmap_513043201_513302401_4FGL_J2200.1+2138_daily_bin1056.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/82811/ltcube_513043201_513302401_4FGL_J2200.1+2138_daily_bin1056.fits
.....................!
real 190.58
user 185.03
sys 5.17

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/82811/ft1_filtered_4FGL_J2200.1+2138_daily_bin1056.fits scfile=/scratch/kocevski/82811/ft2_4FGL_J2200.1+2138_daily_bin1056.fits outfile=/scratch/kocevski/82811/cmap_513043201_513302401_4FGL_J2200.1+2138_daily_bin1056.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82811/ft1_filtered_4FGL_J2200.1+2138_daily_bin1056.fits scfile=/scratch/kocevski/82811/ft2_4FGL_J2200.1+2138_daily_bin1056.fits outfile=/scratch/kocevski/82811/cmap_HighResolution_513043201_513302401_4FGL_J2200.1+2138_daily_bin1056.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/82811/ft1_filtered_4FGL_J2200.1+2138_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/82811/ft2_4FGL_J2200.1+2138_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82811/Model_4FGL_J2200.1+2138_daily_bin1056.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/82811/ft1_filtered_4FGL_J2200.1+2138_daily_bin1056.fits.....................!
real 100.10
user 98.46
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/82811/ft1_filtered_4FGL_J2200.1+2138_daily_bin1056.fits', '/scratch/kocevski/82811/ft2_4FGL_J2200.1+2138_daily_bin1056.fits', expMap='/scratch/kocevski/82811/expmap_513043201_513302401_4FGL_J2200.1+2138_daily_bin1056.fits', expCube='/scratch/kocevski/82811/ltcube_513043201_513302401_4FGL_J2200.1+2138_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/82811/Model_4FGL_J2200.1+2138_daily_bin1056.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/82811/ft1_filtered_4FGL_J2200.1+2138_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/82811/ft2_4FGL_J2200.1+2138_daily_bin1056.fits
Exposure map: /scratch/kocevski/82811/expmap_513043201_513302401_4FGL_J2200.1+2138_daily_bin1056.fits
Exposure cube: /scratch/kocevski/82811/ltcube_513043201_513302401_4FGL_J2200.1+2138_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/82811/Model_4FGL_J2200.1+2138_daily_bin1056.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) = 6019.27216285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.669       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .49367E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .28151E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.395       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9697       1.0000         .10000E-03   10000.    
     9 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.852       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8350       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0975       1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.806       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92267       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0398       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=   6019.192     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     1912 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.343       -.56417E-06** at limit **
   2  norm          .10000E-03    2.0629       -.12892E-07** at limit **
   3  Prefactor     15.675        13.389        .12704E-05   -.96000E-04
   4  Prefactor     .10000E-03    16.434        .59700E-06** at limit **
   5  Prefactor     .10000E-03    206.46        .72343E-04** at limit **
   6  norm          .10001E-03    1.4938        .67013E-06** at limit **
   7  Prefactor     18.391        10.065        .15167E-06   -.58193E-05
   8  Prefactor     3.8433        87.554       -.21148E-04   -.10593E-03
   9  norm          .10000E-03    .46915       -.11044E-07** at limit **
  10  Prefactor     .10000E-03    67.737       -.12822E-05** at limit **
  11  norm          .10000E-03    .50544        .44714E-07** at limit **
  12  Prefactor     .10000E-03    6.4956       -.22949E-08** at limit **
  13  norm          .10000E-03    2.7716       -.15471E-07** at limit **
  14  Prefactor     40.845        22.479        .64346E-06   -.85128E-05
  15  Prefactor     .10000E-03    31.402        .56042E-06** at limit **
  16  Prefactor     8.8271        13.485       -.11936E-05   -.50275E-04
  17  norm          3.0972        1.3291       -.15959E-07   -.30265E-05
  18  norm          .10000E-03    .75848        .65999E-08** at limit **
  19  Prefactor     15.800        15.194       -.10963E-05   -.19017E-04
  20  Normalizat    .92320        .28179        .14170E-05   -.15711E-03
  21  Prefactor     1.0397        .12457       -.44586E-07   -.26701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.6752
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100007
  Prefactor  = 18.3912
  Prefactor  = 3.84328
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.845
  Prefactor  = 0.0001
  Prefactor  = 8.82709
  norm       = 3.09719
  norm       = 0.0001
  Prefactor  = 15.7998
  Normalizat = 0.923199
  Prefactor  = 1.03973
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.192     FROM HESSE     STATUS=OK           315 CALLS     2227 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0715        .10881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.675        13.344        .10118E-03   -1.4916    
   4  Prefactor     .10000E-03    16.789        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    203.52        .21164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    19.403        .17251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.391        10.067        .93384E-04   -1.4850    
   8  Prefactor     3.8433        83.691        .20244E-03   -1.5316    
   9  norm          .10000E-03    .49149        .10361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    67.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .52289        .10757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.7832        .12612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.845        22.491        .62716E-04   -1.4429    
  15  Prefactor     .10000E-03    31.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.8271        13.512        .13485E-03   -1.5114    
  17  norm          3.0972        1.3292        .56812E-04   -1.5356    
  18  norm          .10000E-03    .76233        .65964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.800        15.194        .10074E-03   -1.4913    
  20  Normalizat    .92320        .32198        .40490E-03   -.95650    
  21  Prefactor     1.0397        .14358        .17688E-03   -.91417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92225e-10
Minuit parameter uncertainties:
  1  3.73578e-06
  2  1.41131e-06
  3  13.3464
  4  0.000103842
  5  0.000714146
  6  0.000746342
  7  10.0679
  8  35.9257
  9  1.15663e-06
  10  0.000128342
  11  2.87494e-06
  12  1.61924e-06
  13  1.78415e-07
  14  22.4956
  15  2.95339e-06
  16  13.5167
  17  1.32917
  18  8.85557e-07
  19  15.1974
  20  0.322655
  21  0.143631
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.283e-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:  1.040e+00  1.436e-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:  9.232e-01  3.227e-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: 9.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82811/likelihoodResults_513043201_513302401_4FGL_J2200.1+2138_daily_bin1056.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) = 6019.19215527
delta logL = -7.00993596183e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6019.19208512
delta logL = 5.15601641382e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0924       1.0000          .0000       10.000    
     3 'Normalizat'    .92320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0397       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=   6019.192     FROM MIGRAD    STATUS=FAILED        90 CALLS      274 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    8014.7        .18142E-02** at limit **
   2  Index         2.1354        8.8450        .50000       -.55537E-05
   3  Normalizat    .92320        .79669E-01    .40490E-03   -.59329E-04
   4  Prefactor     1.0397        .37034E-01    .17688E-03    .79032E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6019.192     FROM SIMPLEX   STATUS=UNCHANGED    180 CALLS      454 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    8014.7        .16437E-02** at limit **
   2  Index         2.1354        8.8450        .82328E-06   -.55537E-05
   3  Normalizat    .92320        .79669E-01    .27044E-07   -.59329E-04
   4  Prefactor     1.0397        .37034E-01    .12928E-08    .79032E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6019.192     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      488 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    314.77        .36285E-03** at limit **
   2  Index         2.1355        5.2302        .50000       -.55541E-05
   3  Normalizat    .92320        .30391        .16196E-04   -.59806E-04
   4  Prefactor     1.0397        .14148        .35375E-04    .77836E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.13551
  Normalizat = 0.923198
  Prefactor  = 1.03973
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.192     FROM HESSE     STATUS=OK            29 CALLS      517 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.533        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1355        6.0639        .50000       -.61004    
   3  Normalizat    .92320        .30410        .32392E-05   -.95650    
   4  Prefactor     1.0397        .14156        .70751E-05   -.91417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45451e-10
Minuit parameter uncertainties:
  1  0.000889219
  2  4.16508
  3  0.304673
  4  0.141609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82811': 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) = 6019.19208507
delta logL = 1.07335836219e-07

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  8.892e-04  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.136e+00  4.165e+00  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:  1.040e+00  1.416e-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:  9.232e-01  3.047e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/82811/cmap_HighResolution_513043201_513302401_4FGL_J2200.1+2138_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', job_status='DONE', photon_flux_upper_limit='9.56e-08', time_completed='2021-09-27 23:42:05.326674', job_id='82811', GAL2='1.04', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632811325.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1056' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:42:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 82811: <4FGL_J2200.1+2138_daily_bin1056> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1056> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 23:25:38 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:25:40 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:40 2021
Terminated at Mon Sep 27 23:42:05 2021
Results reported at Mon Sep 27 23:42:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1056 330.031 21.6382 513043201 513302401 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 :                                   664.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

