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


Performing analysis on: 4FGL_J1209.4+7608_daily_bin974
RA = 182.363, Dec = 76.137
tmin = 491788801, tmax = 492048001
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='367690', job_status='RUN', time_executed='2021-09-05 01:57:46.306449', time_epoch_executed='1630832266.31' WHERE source_name='4FGL J1209.4+7608' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367690

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367690/ft1_4FGL_J1209.4+7608_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367690/ft2_4FGL_J1209.4+7608_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367690/ft1_4FGL_J1209.4+7608_daily_bin974.fits outfile=/scratch/kocevski/367690/ft1_filteredMKT_4FGL_J1209.4+7608_daily_bin974.fits ra=182.363 dec=76.137 rad=12.0 tmin=491788801.0 tmax=492048001.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.98
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/367690/ft2_4FGL_J1209.4+7608_daily_bin974.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367690/ft2_4FGL_J1209.4+7608_daily_bin974.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/367690/ft1_filteredMKT_4FGL_J1209.4+7608_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/367690/ft1_filtered_4FGL_J1209.4+7608_daily_bin974.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367690/ft1_filtered_4FGL_J1209.4+7608_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/367690/ft2_4FGL_J1209.4+7608_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/367690/ltcube_491788801_492048001_4FGL_J1209.4+7608_daily_bin974.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/367690/ft2_4FGL_J1209.4+7608_daily_bin974.fits
.....................!
real 11.98
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367690/ft1_filtered_4FGL_J1209.4+7608_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/367690/ft2_4FGL_J1209.4+7608_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/367690/ltcube_491788801_492048001_4FGL_J1209.4+7608_daily_bin974.fits outfile=/scratch/kocevski/367690/expmap_491788801_492048001_4FGL_J1209.4+7608_daily_bin974.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/367690/ltcube_491788801_492048001_4FGL_J1209.4+7608_daily_bin974.fits
.....................!
real 193.47
user 187.10
sys 5.37

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
Added 223 point sources and 0 extended sources

Setting source of interest to:
4FGL J1209.4+7608 @ 182.363 76.137

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/367690/ft1_filtered_4FGL_J1209.4+7608_daily_bin974.fits scfile=/scratch/kocevski/367690/ft2_4FGL_J1209.4+7608_daily_bin974.fits outfile=/scratch/kocevski/367690/cmap_491788801_492048001_4FGL_J1209.4+7608_daily_bin974.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=182.363 yref=76.137 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.69
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367690/ft1_filtered_4FGL_J1209.4+7608_daily_bin974.fits scfile=/scratch/kocevski/367690/ft2_4FGL_J1209.4+7608_daily_bin974.fits outfile=/scratch/kocevski/367690/cmap_HighResolution_491788801_492048001_4FGL_J1209.4+7608_daily_bin974.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=182.363 yref=76.137 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.67
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367690/ft1_filtered_4FGL_J1209.4+7608_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/367690/ft2_4FGL_J1209.4+7608_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367690/Model_4FGL_J1209.4+7608_daily_bin974.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/367690/ft1_filtered_4FGL_J1209.4+7608_daily_bin974.fits.......................!
real 25.71
user 23.89
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367690/ft1_filtered_4FGL_J1209.4+7608_daily_bin974.fits', '/scratch/kocevski/367690/ft2_4FGL_J1209.4+7608_daily_bin974.fits', expMap='/scratch/kocevski/367690/expmap_491788801_492048001_4FGL_J1209.4+7608_daily_bin974.fits', expCube='/scratch/kocevski/367690/ltcube_491788801_492048001_4FGL_J1209.4+7608_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367690/Model_4FGL_J1209.4+7608_daily_bin974.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1209.4+7608'

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  7.028e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
398        Index:  2.167e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
399        Scale:  1.807e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/367690/ft1_filtered_4FGL_J1209.4+7608_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/367690/ft2_4FGL_J1209.4+7608_daily_bin974.fits
Exposure map: /scratch/kocevski/367690/expmap_491788801_492048001_4FGL_J1209.4+7608_daily_bin974.fits
Exposure cube: /scratch/kocevski/367690/ltcube_491788801_492048001_4FGL_J1209.4+7608_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367690/Model_4FGL_J1209.4+7608_daily_bin974.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) = 1198.2592887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    348.57       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.7952       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2858       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.604       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.563       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1973       1.0000         .10000E-03   10000.    
    16 'Prefactor '    71.375       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.354       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    72.350       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10812E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .20369E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    118.32       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .67467       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1198.067     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     4650 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.063        .12509E-04** at limit **
   2  Prefactor     .10000E-03    36.913       -.29364E-04** at limit **
   3  Prefactor     .10000E-03    28.087        .71406E-05** at limit **
   4  Prefactor     .10000E-03    71.612        .29088E-04** at limit **
   5  Prefactor     .10000E-03    118.99       -.64093E-04** at limit **
   6  norm          .10000E-03    11.988       -.38179E-05** at limit **
   7  Prefactor     349.09        586.27        .27946E-03    .19918E-04
   8  Prefactor     .10000E-03    10.742        .89537E-06** at limit **
   9  norm          5.7957        2.6907       -.13908E-06    .17412E-02
  10  norm          3.2858        5.6057       -.13339E-05    .15065E-02
  11  Prefactor     12.621        27.651        .91154E-05    .92118E-04
  12  Prefactor     .10000E-03    44.305       -.32327E-04** at limit **
  13  Prefactor     .10000E-03    26.946        .11052E-04** at limit **
  14  Prefactor     11.567        14.844        .52869E-06    .14523E-03
  15  Prefactor     4.1898        46.347       -.18038E-04   -.33970E-04
  16  Prefactor     71.409        167.02        .38604E-04    .75361E-05
  17  Prefactor     26.345        53.914       -.11360E-04   -.75785E-05
  18  norm          .10000E-03    14.642        .14340E-04** at limit **
  19  norm          .10000E-03    3.1921        .46241E-07** at limit **
  20  Prefactor     .10000E-03    91.981        .18329E-04** at limit **
  21  Prefactor     72.458        88.975        .10864E-03    .81260E-06
  22  Prefactor     .10000E-03    15.992       -.48741E-05** at limit **
  23  Prefactor     .10000E-03    85.691        .27845E-04** at limit **
  24  Prefactor     .10000E-03    28.188        .69101E-05** at limit **
  25  Prefactor     .10000E-03    67.739        .26065E-04** at limit **
  26  Prefactor     .10000E-03    18.237       -.18580E-04** at limit **
  27  Prefactor     .10000E-03    362.21       -.32601E-03** at limit **
  28  Prefactor     118.22        141.77       -.81765E-04    .12742E-04
  29  Prefactor     .10000E-03    93.226        .16249E-04** at limit **
  30  Normalizat    .67366        .40207       -.15434E-04    .11244E-03
  31  Prefactor     1.2377        .35524        .48976E-05   -.22237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 349.087
  Prefactor  = 0.0001
  norm       = 5.79575
  norm       = 3.28577
  Prefactor  = 12.6206
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.5673
  Prefactor  = 4.18979
  Prefactor  = 71.4091
  Prefactor  = 26.3449
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.4579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 118.221
  Prefactor  = 0.000100001
  Normalizat = 0.673657
  Prefactor  = 1.2377
 **********
 **   18 **HESSE 
 **********

 FCN=   1198.067     FROM HESSE     STATUS=OK           602 CALLS     5252 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.089        .16590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.120        .17923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    71.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    119.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.004        .11675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     349.09        586.10        .10904E-03   -1.1949    
   8  Prefactor     .10000E-03    10.776        .11071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.7957        2.6885        .36141E-04   -1.5226    
  10  norm          3.2858        5.4909        .98530E-04   -1.5345    
  11  Prefactor     12.621        27.361        .11283E-03   -1.4997    
  12  Prefactor     .10000E-03    44.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.947        .17558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.567        14.842        .11781E-03   -1.5028    
  15  Prefactor     4.1898        45.523        .19671E-03   -1.5299    
  16  Prefactor     71.409        167.02        .47517E-04   -1.4016    
  17  Prefactor     26.345        53.950        .78034E-04   -1.4681    
  18  norm          .10000E-03    14.905        .12933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.1924        .60399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    91.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     72.458        88.977        .23599E-03   -1.4003    
  22  Prefactor     .10000E-03    16.001        .13523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    85.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.223        .17957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    68.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.239        .14442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    361.97        .20212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     118.22        141.79        .18497E-03   -1.3529    
  29  Prefactor     .10000E-03    93.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .67366        .45506        .31482E-03   -1.0494    
  31  Prefactor     1.2377        .40559        .21543E-03   -.85179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5417e-09
Minuit parameter uncertainties:
  1  4.50519e-06
  2  0.000111333
  3  1.98024e-05
  4  9.84677e-05
  5  0.000147245
  6  9.15135e-05
  7  596.544
  8  2.55384e-05
  9  2.68852
  10  5.4917
  11  27.3882
  12  0.000331224
  13  3.72286e-07
  14  14.8468
  15  27.6476
  16  168.133
  17  54.0497
  18  4.59427e-05
  19  3.53527e-07
  20  6.18679e-05
  21  89.1412
  22  2.94137e-05
  23  6.88434e-05
  24  5.93211e-05
  25  0.000490291
  26  4.85516e-06
  27  0.00217883
  28  142.203
  29  0.000437243
  30  0.457635
  31  0.40662
Done.

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

Extracting fit parameters...

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  7.141e+01  1.681e+02  1.000e-04  1.000e+04 ( 1.000e-14)
398        Index:  2.167e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
399        Scale:  1.807e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
710    Prefactor:  1.238e+00  4.066e-01  0.000e+00  1.000e+01 ( 1.000e+00)
711        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
712        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
709   Normalization:  6.737e-01  4.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 182.363 76.137
Photon Flux Upper Limit: 2.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367690/likelihoodResults_491788801_492048001_4FGL_J1209.4+7608_daily_bin974.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): 0
logL (Free Index) = 1197.90319834
delta logL = 0.164026349584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1197.89618017
delta logL = 0.171044517999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.919       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0153       1.0000          .0000       10.000    
     3 'Normalizat'    .65146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2432       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7130E+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.

 FCN=   1197.896     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      316 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.986        201.47        .89743E-04   -.36104E-05
   2  Index         3.0145        2.4684        .39174E-02    .12911E-03
   3  Normalizat    .65111        .44359        .31943E-03   -.21790E-04
   4  Prefactor     1.2435        .40183        .21475E-03    .37603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9865
  Index      = 3.01451
  Normalizat = 0.651111
  Prefactor  = 1.24346
 **********
 **   18 **HESSE 
 **********

 FCN=   1197.896     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.986        90.645        .35897E-05   -1.4814    
   2  Index         3.0145        1.7028        .78348E-03   -.40835    
   3  Normalizat    .65111        .44344        .12777E-04   -1.0586    
   4  Prefactor     1.2435        .40129        .42950E-04   -.85004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74052e-11
Minuit parameter uncertainties:
  1  85.3427
  2  1.74453
  3  0.445899
  4  0.402285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367690': 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) = 1197.89617928
delta logL = 0.171045403497

Extracting fit parameters...

4FGL J1209.4+7608
   Spectrum: PowerLaw
397    Prefactor:  1.999e+01  8.534e+01  1.000e-04  1.000e+04 ( 1.000e-14)
398        Index:  3.015e+00  1.745e+00  0.000e+00  1.000e+01 (-1.000e+00)
399        Scale:  1.807e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
710    Prefactor:  1.243e+00  4.023e-01  0.000e+00  1.000e+01 ( 1.000e+00)
711        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
712        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
709   Normalization:  6.511e-01  4.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
Ra Dec: 182.363 76.137

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/367690/cmap_HighResolution_491788801_492048001_4FGL_J1209.4+7608_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-02', job_status='DONE', photon_flux_upper_limit='2.47e-07', time_completed='2021-09-05 02:05:59.199232', job_id='367690', GAL2='1.24', fit_tolerance='1e-08', EG2='0.65', EG='0.67', time_epoch_completed='1630832759.2', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.71e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='974' AND source_name='4FGL J1209.4+7608' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:05:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 367690: <4FGL_J1209.4+7608_daily_bin974> in cluster <slac> Done

Job <4FGL_J1209.4+7608_daily_bin974> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 01:55:51 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:55:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 01:55:52 2021
Terminated at Sun Sep  5 02:05:59 2021
Results reported at Sun Sep  5 02:05:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.4+7608_daily_bin974 182.363 76.137 491788801 492048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1209.4+7608 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   487.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            608 sec.

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

