/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 2 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 = 7412
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1209.8+1810_daily_bin280
RA = 182.466, Dec = 18.1776
tmin = 311904001, tmax = 312163201
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='375193', job_status='RUN', time_executed='2021-09-05 02:20:33.078199', time_epoch_executed='1630833633.08' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375193

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375193/ft1_4FGL_J1209.8+1810_daily_bin280.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375193/ft2_4FGL_J1209.8+1810_daily_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375193/ft1_4FGL_J1209.8+1810_daily_bin280.fits outfile=/scratch/kocevski/375193/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin280.fits ra=182.466 dec=18.1776 rad=12.0 tmin=311904001.0 tmax=312163201.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.43
user 3.22
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375193/ft2_4FGL_J1209.8+1810_daily_bin280.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/375193/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin280.fits evtable="EVENTS" outfile="/scratch/kocevski/375193/ft1_filtered_4FGL_J1209.8+1810_daily_bin280.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375193/ft1_filtered_4FGL_J1209.8+1810_daily_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/375193/ft2_4FGL_J1209.8+1810_daily_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/375193/ltcube_311904001_312163201_4FGL_J1209.8+1810_daily_bin280.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/375193/ft2_4FGL_J1209.8+1810_daily_bin280.fits
.....................!
real 12.53
user 12.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375193/ft1_filtered_4FGL_J1209.8+1810_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/375193/ft2_4FGL_J1209.8+1810_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/375193/ltcube_311904001_312163201_4FGL_J1209.8+1810_daily_bin280.fits outfile=/scratch/kocevski/375193/expmap_311904001_312163201_4FGL_J1209.8+1810_daily_bin280.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/375193/ltcube_311904001_312163201_4FGL_J1209.8+1810_daily_bin280.fits
.....................!
real 191.32
user 186.79
sys 4.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
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/375193/ft1_filtered_4FGL_J1209.8+1810_daily_bin280.fits scfile=/scratch/kocevski/375193/ft2_4FGL_J1209.8+1810_daily_bin280.fits outfile=/scratch/kocevski/375193/cmap_311904001_312163201_4FGL_J1209.8+1810_daily_bin280.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375193/ft1_filtered_4FGL_J1209.8+1810_daily_bin280.fits scfile=/scratch/kocevski/375193/ft2_4FGL_J1209.8+1810_daily_bin280.fits outfile=/scratch/kocevski/375193/cmap_HighResolution_311904001_312163201_4FGL_J1209.8+1810_daily_bin280.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375193/ft1_filtered_4FGL_J1209.8+1810_daily_bin280.fits', '/scratch/kocevski/375193/ft2_4FGL_J1209.8+1810_daily_bin280.fits', expMap='/scratch/kocevski/375193/expmap_311904001_312163201_4FGL_J1209.8+1810_daily_bin280.fits', expCube='/scratch/kocevski/375193/ltcube_311904001_312163201_4FGL_J1209.8+1810_daily_bin280.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375193/Model_4FGL_J1209.8+1810_daily_bin280.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/375193/ft1_filtered_4FGL_J1209.8+1810_daily_bin280.fits
Spacecraft file(s): /scratch/kocevski/375193/ft2_4FGL_J1209.8+1810_daily_bin280.fits
Exposure map: /scratch/kocevski/375193/expmap_311904001_312163201_4FGL_J1209.8+1810_daily_bin280.fits
Exposure cube: /scratch/kocevski/375193/ltcube_311904001_312163201_4FGL_J1209.8+1810_daily_bin280.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375193/Model_4FGL_J1209.8+1810_daily_bin280.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) = 7852.6409734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.341       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5663       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3541       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27152E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.914       1.0000         .10000E-03   10000.    
     8 'norm      '    6.9383       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .90201E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3334       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7995       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.1191       1.0000         .10000E-03   10000.    
    18 'norm      '    .77475       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2614       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .47110E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.977       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92766       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2147       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7852.627     FROM MIGRAD    STATUS=CONVERGED   1005 CALLS     3201 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.345        14.969        .12460E-03    .34673E-05
   2  Prefactor     5.5571        31.831        .17028E-03   -.24702E-05
   3  Prefactor     .10000E-03    7.3978        .18142E-02** at limit **
   4  Prefactor     .10000E-03    6.5580        .18142E-02** at limit **
   5  Prefactor     5.3552        2.6952        .97737E-04    .86076E-05
   6  Prefactor     .10000E-03    277.43        .21431E-02** at limit **
   7  Prefactor     13.915        10.216        .10738E-03    .79406E-05
   8  norm          6.9381        2.0383        .66181E-04   -.10307E-05
   9  Prefactor     .10000E-03    8.1575        .18142E-02** at limit **
  10  Prefactor     1.2479        4.5979        .17004E-02    .82063E-04
  11  Prefactor     .10000E-03    24.733        .18142E-02** at limit **
  12  Prefactor     .10000E-03    23.535        .19652E-02** at limit **
  13  Prefactor     .10000E-03    2.1054        .24760E-03** at limit **
  14  Prefactor     5.3336        2.7042        .10009E-03    .69289E-05
  15  Prefactor     4.7939        28.957        .18364E-03   -.21049E-05
  16  Prefactor     .10000E-03    3.1341        .15281E-02** at limit **
  17  norm          6.1193        .61196        .20547E-04    .21745E-03
  18  norm          .77289        3.6171        .32757E-03   -.58653E-05
  19  Prefactor     .10000E-03    4.0242        .17344E-02** at limit **
  20  Prefactor     6.2625        7.6074        .16042E-03    .14882E-05
  21  Prefactor     .10000E-03    27.770        .11645    ** at limit **
  22  Prefactor     14.979        8.2148        .10349E-03    .21970E-05
  23  Normalizat    .92780        .24597        .33647E-03    .21962E-04
  24  Prefactor     1.2147        .22330        .28804E-03    .19734E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.345
  Prefactor  = 5.55713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.35523
  Prefactor  = 0.0001
  Prefactor  = 13.9148
  norm       = 6.93809
  Prefactor  = 0.0001
  Prefactor  = 1.24793
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 5.33361
  Prefactor  = 4.7939
  Prefactor  = 0.0001
  norm       = 6.11932
  norm       = 0.772894
  Prefactor  = 0.0001
  Prefactor  = 6.2625
  Prefactor  = 0.000100001
  Prefactor  = 14.9787
  Normalizat = 0.927796
  Prefactor  = 1.21474
 **********
 **   18 **HESSE 
 **********

 FCN=   7852.627     FROM HESSE     STATUS=OK           385 CALLS     3586 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.345        14.968        .49839E-05   -1.5065    
   2  Prefactor     5.5571        31.841        .68114E-05   -1.5236    
   3  Prefactor     .10000E-03    7.3980        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3552        2.6949        .39095E-05   -1.5245    
   6  Prefactor     .10000E-03    277.47        .42863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.915        10.215        .42952E-05   -1.4962    
   8  norm          6.9381        2.0382        .26472E-05   -1.5181    
   9  Prefactor     .10000E-03    8.1583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2479        4.5852        .68016E-04   -1.5485    
  11  Prefactor     .10000E-03    24.733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.138        .78610E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1054        .49519E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3336        2.7041        .40035E-05   -1.5246    
  15  Prefactor     4.7939        28.957        .73456E-05   -1.5270    
  16  Prefactor     .10000E-03    3.1343        .30562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.1193        .61192        .82188E-06   -1.5213    
  18  norm          .77289        3.6158        .13103E-04   -1.5532    
  19  Prefactor     .10000E-03    4.0243        .34689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2625        7.6073        .64168E-05   -1.5207    
  21  Prefactor     .10000E-03    26.810        .11909       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.979        8.2146        .41398E-05   -1.4934    
  23  Normalizat    .92780        .24602        .13459E-04   -.95490    
  24  Prefactor     1.2147        .22352        .11522E-04   -.85879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82819e-10
Minuit parameter uncertainties:
  1  14.9737
  2  26.6255
  3  8.40228e-07
  4  2.01066e-06
  5  2.69501
  6  8.4704e-05
  7  10.2168
  8  2.03824
  9  1.09077e-05
  10  4.58647
  11  1.49172e-05
  12  0.000648554
  13  1.71557e-06
  14  2.70418
  15  23.5811
  16  2.48685e-09
  17  0.611919
  18  3.34355
  19  3.84898e-07
  20  7.60852
  21  0.000365045
  22  8.21523
  23  0.246323
  24  0.223698
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  6.486e-04  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:  1.215e+00  2.237e-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:  9.278e-01  2.463e-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: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375193/likelihoodResults_311904001_312163201_4FGL_J1209.8+1810_daily_bin280.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) = 7852.62766018
delta logL = -0.000202602923309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7852.48878329
delta logL = 0.138674289069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40923       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4935       1.0000          .0000       10.000    
     3 'Normalizat'    .89866       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2264       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7852.489     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      287 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40968        4.1722        .10367E-03   -.37186E-03
   2  Index         3.4943        3.0238        .10232E-01   -.24069E-04
   3  Normalizat    .89892        .23405        .34106E-03   -.52000E-04
   4  Prefactor     1.2266        .22310        .28674E-03   -.60583E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.409676
  Index      = 3.49429
  Normalizat = 0.898916
  Prefactor  = 1.22661
 **********
 **   18 **HESSE 
 **********

 FCN=   7852.489     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40968        1.4044        .41469E-05   -1.5580    
   2  Index         3.4943        1.7181        .40928E-03   -.30589    
   3  Normalizat    .89892        .23447        .13643E-04   -.96498    
   4  Prefactor     1.2266        .22276        .11469E-04   -.85516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84191e-11
Minuit parameter uncertainties:
  1  1.40455
  2  1.75761
  3  0.234734
  4  0.222934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375193': 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) = 7852.48877454
delta logL = 0.138683038422

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  4.097e-01  1.405e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  3.494e+00  1.758e+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:  1.227e+00  2.229e-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:  8.989e-01  2.347e-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/375193/cmap_HighResolution_311904001_312163201_4FGL_J1209.8+1810_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.76e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-05 02:35:20.530237', job_id='375193', GAL2='1.23', fit_tolerance='1e-08', EG2='0.90', EG='0.93', time_epoch_completed='1630834520.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.39e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='280' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:35:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 375193: <4FGL_J1209.8+1810_daily_bin280> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin280> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 02:20:21 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:20:22 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:20:22 2021
Terminated at Sun Sep  5 02:35:21 2021
Results reported at Sun Sep  5 02:35:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin280 182.466 18.1776 311904001 312163201 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 :                                   881.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             342.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

