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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin782
RA = 182.466, Dec = 18.1776
tmin = 442022401, tmax = 442281601
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='378189', job_status='RUN', time_executed='2021-09-05 02:30:45.438946', time_epoch_executed='1630834245.44' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378189/ft1_4FGL_J1209.8+1810_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378189/ft2_4FGL_J1209.8+1810_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378189/ft1_4FGL_J1209.8+1810_daily_bin782.fits outfile=/scratch/kocevski/378189/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin782.fits ra=182.466 dec=18.1776 rad=12.0 tmin=442022401.0 tmax=442281601.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.75
user 3.53
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/378189/ft2_4FGL_J1209.8+1810_daily_bin782.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/378189/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin782.fits evtable="EVENTS" outfile="/scratch/kocevski/378189/ft1_filtered_4FGL_J1209.8+1810_daily_bin782.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.49
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378189/ft1_filtered_4FGL_J1209.8+1810_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/378189/ft2_4FGL_J1209.8+1810_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/378189/ltcube_442022401_442281601_4FGL_J1209.8+1810_daily_bin782.fits outfile=/scratch/kocevski/378189/expmap_442022401_442281601_4FGL_J1209.8+1810_daily_bin782.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/378189/ltcube_442022401_442281601_4FGL_J1209.8+1810_daily_bin782.fits
.....................!
real 191.49
user 187.41
sys 3.76

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/378189/ft1_filtered_4FGL_J1209.8+1810_daily_bin782.fits scfile=/scratch/kocevski/378189/ft2_4FGL_J1209.8+1810_daily_bin782.fits outfile=/scratch/kocevski/378189/cmap_442022401_442281601_4FGL_J1209.8+1810_daily_bin782.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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378189/ft1_filtered_4FGL_J1209.8+1810_daily_bin782.fits scfile=/scratch/kocevski/378189/ft2_4FGL_J1209.8+1810_daily_bin782.fits outfile=/scratch/kocevski/378189/cmap_HighResolution_442022401_442281601_4FGL_J1209.8+1810_daily_bin782.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.34
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5572       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6811       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37759       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6784       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9927       1.0000         .10000E-03   10000.    
    17 'norm      '    .58629       1.0000         .10000E-03   10000.    
    18 'norm      '    24.797       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6403       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.291       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.657       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1771       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94039       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=   6622.286     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2347 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5563        9.7086       -.20883E-06   -.65413E-04
   2  Prefactor     .10000E-03    10.729        .38766E-05** at limit **
   3  Prefactor     .10000E-03    9.2622       -.61479E-05** at limit **
   4  Prefactor     .10000E-03    2.5502        .93085E-08** at limit **
   5  Prefactor     .10000E-03    .60379        .25282E-07** at limit **
   6  Prefactor     .10000E-03    77.031       -.12110E-05** at limit **
   7  Prefactor     .10000E-03    6.4213       -.76253E-07** at limit **
   8  norm          2.6810        1.3083       -.26854E-08    .11744E-03
   9  Prefactor     .10000E-03    15.829       -.13043E-05** at limit **
  10  Prefactor     4.3311        3.6518       -.55838E-07   -.21174E-04
  11  Prefactor     .10000E-03    34.024        .12852E-05** at limit **
  12  Prefactor     .37567        2.1566       -.42388E-07   -.20171E-03
  13  Prefactor     .10000E-03    1.2607        .12186E-07** at limit **
  14  Prefactor     2.6784        1.6267       -.18328E-07    .29431E-04
  15  Prefactor     .10000E-03    8.6805        .32043E-05** at limit **
  16  Prefactor     3.9920        3.5798        .86191E-06   -.19965E-02
  17  norm          .58630        .24532       -.17456E-07    .12603E-04
  18  norm          24.797        6.7016       -.46965E-07    .56364E-04
  19  Prefactor     6.6411        7.0040        .25073E-06    .18799E-04
  20  Prefactor     19.291        9.9395       -.40529E-07    .12816E-03
  21  Prefactor     17.652        27.581       -.25902E-05   -.56527E-04
  22  Prefactor     .10000E-03    2.2881        .13333E-07** at limit **
  23  Normalizat    1.1771        .17944        .23551E-06    .57152E-04
  24  Prefactor     .94041        .17205       -.17606E-07    .51568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.55633
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.68099
  Prefactor  = 0.0001
  Prefactor  = 4.33109
  Prefactor  = 0.0001
  Prefactor  = 0.375665
  Prefactor  = 0.0001
  Prefactor  = 2.67838
  Prefactor  = 0.0001
  Prefactor  = 3.992
  norm       = 0.586302
  norm       = 24.7972
  Prefactor  = 6.64108
  Prefactor  = 19.2909
  Prefactor  = 17.6516
  Prefactor  = 0.0001
  Normalizat = 1.17714
  Prefactor  = 0.940413
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.286     FROM HESSE     STATUS=OK           401 CALLS     2748 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5563        9.7356        .25531E-03   -1.5388    
   2  Prefactor     .10000E-03    10.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5540        .12691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .61633        .61711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    77.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6810        1.3077        .62800E-04   -1.5380    
   9  Prefactor     .10000E-03    15.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3311        3.6049        .13236E-03   -1.5292    
  11  Prefactor     .10000E-03    34.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .37567        4.2595        .21562E-02   -1.5585    
  13  Prefactor     .10000E-03    1.2721        .88958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6784        1.6284        .78511E-04   -1.5381    
  15  Prefactor     .10000E-03    8.7201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9920        6.5393        .10092E-02   -1.5308    
  17  norm          .58630        .24475        .24751E-04   -1.5555    
  18  norm          24.797        6.9509        .80443E-04   -1.4712    
  19  Prefactor     6.6411        6.9944        .15572E-03   -1.5193    
  20  Prefactor     19.291        9.9467        .45595E-03   -1.4829    
  21  Prefactor     17.652        27.684        .95315E-04   -1.4867    
  22  Prefactor     .10000E-03    2.2968        .12021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1771        .20940        .24676E-03   -.87312    
  24  Prefactor     .94041        .20027        .27212E-03   -.94743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64183e-08
Minuit parameter uncertainties:
  1  9.74164
  2  0.000115181
  3  0.00016543
  4  2.95502e-08
  5  4.47397e-07
  6  0.0001023
  7  3.21406e-06
  8  1.30773
  9  4.69086e-05
  10  3.60508
  11  6.87198e-05
  12  2.52982
  13  1.57512e-06
  14  1.62847
  15  8.67667e-05
  16  6.54044
  17  0.244755
  18  6.95111
  19  6.99521
  20  9.94755
  21  27.7046
  22  1.66244e-07
  23  0.209548
  24  0.200428
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  3.757e-01  2.530e+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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.404e-01  2.004e-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.177e+00  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/378189/likelihoodResults_442022401_442281601_4FGL_J1209.8+1810_daily_bin782.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) = 6622.12571317
delta logL = 0.160690349198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6622.11361606
delta logL = 0.172787466843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30239       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5282       1.0000          .0000       10.000    
     3 'Normalizat'    1.1531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95261       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=   6622.114     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30154        7.8379        .10435E-01    .22165E-02
   2  Index         3.5291        2.9178        .21130        .79606E-04
   3  Normalizat    1.1531        .28047E-01    .56294E-01   -.31455E-04
   4  Prefactor     .95260        .28174E-01    .45672E-01   -.21096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.30154
  Index      = 3.52913
  Normalizat = 1.15313
  Prefactor  = 0.952598
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.114     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30154        44.727        .73607E-04   -1.5598    
   2  Index         3.5291        5.4410        .86332E-02   -.29859    
   3  Normalizat    1.1531        .19779        .24894E-03   -.88064    
   4  Prefactor     .95260        .20292        .27053E-03   -.94327    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.37609e-07
Minuit parameter uncertainties:
  1  7.34927
  2  13.022
  3  0.197917
  4  0.20308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378189': 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): 102
logL (Free Index) = 6622.1136157
delta logL = 0.172787818414

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  3.015e-01  7.349e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  3.529e+00  1.302e+01  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:  9.526e-01  2.031e-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.153e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 182.466 18.178

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/378189/cmap_HighResolution_442022401_442281601_4FGL_J1209.8+1810_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='8.80e-08', time_completed='2021-09-05 02:42:47.687210', job_id='378189', GAL2='0.95', fit_tolerance='1e-08', EG2='1.15', EG='1.18', time_epoch_completed='1630834967.69', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.73e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='782' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:42:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 378189: <4FGL_J1209.8+1810_daily_bin782> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin782> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Sep  5 02:30:28 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:30:29 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:30:29 2021
Terminated at Sun Sep  5 02:42:48 2021
Results reported at Sun Sep  5 02:42:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin782 182.466 18.1776 442022401 442281601 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 :                                   717.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            740 sec.

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

