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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1249
RA = 182.466, Dec = 18.1776
tmin = 563068801, tmax = 563328001
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='380786', job_status='RUN', time_executed='2021-09-05 02:36:23.383137', time_epoch_executed='1630834583.38' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380786

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380786/ft1_4FGL_J1209.8+1810_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380786/ft2_4FGL_J1209.8+1810_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380786/ft1_4FGL_J1209.8+1810_daily_bin1249.fits outfile=/scratch/kocevski/380786/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1249.fits ra=182.466 dec=18.1776 rad=12.0 tmin=563068801.0 tmax=563328001.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 3.45
user 3.24
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/380786/ft2_4FGL_J1209.8+1810_daily_bin1249.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380786/ft2_4FGL_J1209.8+1810_daily_bin1249.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/380786/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1249.fits evtable="EVENTS" outfile="/scratch/kocevski/380786/ft1_filtered_4FGL_J1209.8+1810_daily_bin1249.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380786/ft1_filtered_4FGL_J1209.8+1810_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/380786/ft2_4FGL_J1209.8+1810_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/380786/ltcube_563068801_563328001_4FGL_J1209.8+1810_daily_bin1249.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/380786/ft2_4FGL_J1209.8+1810_daily_bin1249.fits
.....................!
real 12.19
user 11.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380786/ft1_filtered_4FGL_J1209.8+1810_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/380786/ft2_4FGL_J1209.8+1810_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/380786/ltcube_563068801_563328001_4FGL_J1209.8+1810_daily_bin1249.fits outfile=/scratch/kocevski/380786/expmap_563068801_563328001_4FGL_J1209.8+1810_daily_bin1249.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/380786/ltcube_563068801_563328001_4FGL_J1209.8+1810_daily_bin1249.fits
.....................!
real 192.05
user 185.48
sys 5.08

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

Setting source of interest to:
4FGL J1209.8+1810 @ 182.466 18.1776

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/380786/ft1_filtered_4FGL_J1209.8+1810_daily_bin1249.fits scfile=/scratch/kocevski/380786/ft2_4FGL_J1209.8+1810_daily_bin1249.fits outfile=/scratch/kocevski/380786/cmap_563068801_563328001_4FGL_J1209.8+1810_daily_bin1249.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.466 yref=18.1776 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380786/ft1_filtered_4FGL_J1209.8+1810_daily_bin1249.fits scfile=/scratch/kocevski/380786/ft2_4FGL_J1209.8+1810_daily_bin1249.fits outfile=/scratch/kocevski/380786/cmap_HighResolution_563068801_563328001_4FGL_J1209.8+1810_daily_bin1249.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.466 yref=18.1776 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/380786/ft1_filtered_4FGL_J1209.8+1810_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/380786/ft2_4FGL_J1209.8+1810_daily_bin1249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/380786/Model_4FGL_J1209.8+1810_daily_bin1249.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/380786/ft1_filtered_4FGL_J1209.8+1810_daily_bin1249.fits.....................!
real 76.64
user 75.10
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380786/ft1_filtered_4FGL_J1209.8+1810_daily_bin1249.fits', '/scratch/kocevski/380786/ft2_4FGL_J1209.8+1810_daily_bin1249.fits', expMap='/scratch/kocevski/380786/expmap_563068801_563328001_4FGL_J1209.8+1810_daily_bin1249.fits', expCube='/scratch/kocevski/380786/ltcube_563068801_563328001_4FGL_J1209.8+1810_daily_bin1249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380786/Model_4FGL_J1209.8+1810_daily_bin1249.xml', optimizer='MINUIT')

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

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/380786/ft1_filtered_4FGL_J1209.8+1810_daily_bin1249.fits
Spacecraft file(s): /scratch/kocevski/380786/ft2_4FGL_J1209.8+1810_daily_bin1249.fits
Exposure map: /scratch/kocevski/380786/expmap_563068801_563328001_4FGL_J1209.8+1810_daily_bin1249.fits
Exposure cube: /scratch/kocevski/380786/ltcube_563068801_563328001_4FGL_J1209.8+1810_daily_bin1249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380786/Model_4FGL_J1209.8+1810_daily_bin1249.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) = 8939.27811341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    45.200       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.795       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.081       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4413       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3431       1.0000         .10000E-03   10000.    
    11 'Prefactor '    86.066       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18490E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9408       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9825       1.0000         .10000E-03   10000.    
    17 'norm      '    .51798E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    24.292       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.213       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7276       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4598       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3400       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84402       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8939.274     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2761 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3014       -.17638E-06** at limit **
   2  Prefactor     45.198        36.810       -.18601E-05    .21353E-04
   3  Prefactor     10.794        14.124       -.10080E-05    .44926E-04
   4  Prefactor     .10000E-03    3.6065        .10221E-06** at limit **
   5  Prefactor     .10000E-03    .49418       -.15121E-06** at limit **
   6  Prefactor     .10000E-03    96.686       -.14688E-06** at limit **
   7  Prefactor     16.080        11.422        .48806E-05    .37755E-05
   8  norm          6.4413        1.3891       -.60833E-07    .32577E-03
   9  Prefactor     .10003E-03    39.667        .46797E-05** at limit **
  10  Prefactor     2.3433        3.7521       -.12044E-05   -.94293E-03
  11  Prefactor     86.013        98.124       -.51296E-04   -.20306E-04
  12  Prefactor     .10000E-03    1.0318       -.52731E-08** at limit **
  13  Prefactor     .10000E-03    1.0671        .70607E-07** at limit **
  14  Prefactor     3.9409        2.1614       -.13915E-07   -.79158E-04
  15  Prefactor     .10000E-03    12.360       -.21095E-06** at limit **
  16  Prefactor     1.9821        3.2085        .16221E-06   -.51383E-03
  17  norm          .51842E-01    .13311       -.30471E-06   -.51783E-02
  18  norm          24.292        5.8926       -.11972E-05    .26405E-03
  19  Prefactor     17.214        10.521       -.30084E-06    .40318E-04
  20  Prefactor     3.7267        12.208       -.15430E-05   -.11227E-03
  21  Prefactor     .10000E-03    33.432       -.12668E-05** at limit **
  22  Prefactor     3.4599        3.3664       -.14236E-07    .29283E-03
  23  Normalizat    1.3400        .16953        .34331E-05    .43780E-04
  24  Prefactor     .84404        .15412        .67025E-06    .28228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.1978
  Prefactor  = 10.7939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0799
  norm       = 6.44129
  Prefactor  = 0.000100026
  Prefactor  = 2.34327
  Prefactor  = 86.0134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94095
  Prefactor  = 0.0001
  Prefactor  = 1.98214
  norm       = 0.0518416
  norm       = 24.292
  Prefactor  = 17.2138
  Prefactor  = 3.7267
  Prefactor  = 0.0001
  Prefactor  = 3.45989
  Normalizat = 1.33999
  Prefactor  = 0.844045
 **********
 **   18 **HESSE 
 **********

 FCN=   8939.274     FROM HESSE     STATUS=OK           407 CALLS     3168 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.198        36.918        .59635E-04   -1.4362    
   3  Prefactor     10.794        14.013        .12194E-03   -1.5051    
   4  Prefactor     .10000E-03    3.6338        .17530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .79412        .12674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    96.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.080        11.386        .99876E-04   -1.4906    
   8  norm          6.4413        1.3897        .49818E-04   -1.5200    
   9  Prefactor     .10003E-03    40.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3433        3.7689        .21510E-03   -1.5402    
  11  Prefactor     86.013        97.957        .21652E-03   -1.3850    
  12  Prefactor     .10000E-03    1.0451        .93537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7004        .18662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9409        2.1504        .94874E-04   -1.5311    
  15  Prefactor     .10000E-03    12.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9821        3.1778        .20562E-03   -1.5426    
  17  norm          .51842E-01    .14363        .52116E-03   -1.5662    
  18  norm          24.292        5.8602        .81274E-04   -1.4722    
  19  Prefactor     17.214        10.519        .96537E-04   -1.4878    
  20  Prefactor     3.7267        12.146        .20915E-03   -1.5322    
  21  Prefactor     .10000E-03    33.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.4599        3.3743        .16690E-03   -1.5336    
  23  Normalizat    1.3400        .19967        .25031E-03   -.82381    
  24  Prefactor     .84404        .18185        .30040E-03   -.98125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47276e-09
Minuit parameter uncertainties:
  1  1.63631e-05
  2  36.9364
  3  14.0173
  4  3.10273e-06
  5  9.53505e-06
  6  2.21195e-05
  7  11.3872
  8  1.38972
  9  0.00203902
  10  3.76924
  11  98.1415
  12  2.56013e-06
  13  4.17009e-05
  14  2.15048
  15  1.00752e-07
  16  3.17803
  17  0.143634
  18  5.86029
  19  10.5205
  20  12.1542
  21  5.83252e-05
  22  3.37447
  23  0.199783
  24  0.181984
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.560e-06  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.440e-01  1.820e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.340e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380786/likelihoodResults_563068801_563328001_4FGL_J1209.8+1810_daily_bin1249.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) = 8939.27862441
delta logL = -0.00453694376483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8939.27408813
delta logL = -6.687023415e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4077       1.0000          .0000       10.000    
     3 'Normalizat'    1.3402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8939.274     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.586        .90712E-02** at limit **
   2  Index         2.4044        8.1638        .50000        .27164E-04
   3  Normalizat    1.3400        .20652E-01    .56605E-01   -.61370E-05
   4  Prefactor     .84404        .20293E-01    .67901E-01    .26698E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4044
  Normalizat = 1.33999
  Prefactor  = 0.844042
 **********
 **   18 **HESSE 
 **********

 FCN=   8939.274     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2013        .93593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4044        6.1995        .50000       -.54582    
   3  Normalizat    1.3400        .18253        .25031E-03   -.82380    
   4  Prefactor     .84404        .17919        .30040E-03   -.98125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10778e-09
Minuit parameter uncertainties:
  1  1.82724e-05
  2  4.58068
  3  0.182615
  4  0.179317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380786': 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) = 8939.27408742
delta logL = 4.34702087659e-08

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.827e-05  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.404e+00  4.581e+00  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.440e-01  1.793e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.340e+00  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.466 18.178

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/380786/cmap_HighResolution_563068801_563328001_4FGL_J1209.8+1810_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-05 02:51:25.690872', job_id='380786', GAL2='0.84', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630835485.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.35e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1249' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:51:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 380786: <4FGL_J1209.8+1810_daily_bin1249> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1249> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 02:36:08 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:36:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 02:36:09 2021
Terminated at Sun Sep  5 02:51:26 2021
Results reported at Sun Sep  5 02:51:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1249 182.466 18.1776 563068801 563328001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1209.8+1810 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   889.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

