/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 101 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 = 7659
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1203.3+1119_daily_bin6
RA = 180.833, Dec = 11.3231
tmin = 240883201, tmax = 241142401
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='285486', job_status='RUN', time_executed='2021-09-04 21:57:29.938752', time_epoch_executed='1630817849.94' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285486

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285486/ft1_4FGL_J1203.3+1119_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285486/ft2_4FGL_J1203.3+1119_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285486/ft1_4FGL_J1203.3+1119_daily_bin6.fits outfile=/scratch/kocevski/285486/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin6.fits ra=180.833 dec=11.3231 rad=12.0 tmin=240883201.0 tmax=241142401.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 1.51
user 1.31
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/285486/ft2_4FGL_J1203.3+1119_daily_bin6.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285486/ft2_4FGL_J1203.3+1119_daily_bin6.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/285486/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin6.fits evtable="EVENTS" outfile="/scratch/kocevski/285486/ft1_filtered_4FGL_J1203.3+1119_daily_bin6.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.54
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285486/ft1_filtered_4FGL_J1203.3+1119_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/285486/ft2_4FGL_J1203.3+1119_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/285486/ltcube_240883201_241142401_4FGL_J1203.3+1119_daily_bin6.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/285486/ft2_4FGL_J1203.3+1119_daily_bin6.fits
.....................!
real 12.98
user 12.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285486/ft1_filtered_4FGL_J1203.3+1119_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/285486/ft2_4FGL_J1203.3+1119_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/285486/ltcube_240883201_241142401_4FGL_J1203.3+1119_daily_bin6.fits outfile=/scratch/kocevski/285486/expmap_240883201_241142401_4FGL_J1203.3+1119_daily_bin6.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/285486/ltcube_240883201_241142401_4FGL_J1203.3+1119_daily_bin6.fits
.....................!
real 190.57
user 185.12
sys 4.99

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

Setting source of interest to:
4FGL J1203.3+1119 @ 180.833 11.3231

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/285486/ft1_filtered_4FGL_J1203.3+1119_daily_bin6.fits scfile=/scratch/kocevski/285486/ft2_4FGL_J1203.3+1119_daily_bin6.fits outfile=/scratch/kocevski/285486/cmap_240883201_241142401_4FGL_J1203.3+1119_daily_bin6.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=180.833 yref=11.3231 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285486/ft1_filtered_4FGL_J1203.3+1119_daily_bin6.fits scfile=/scratch/kocevski/285486/ft2_4FGL_J1203.3+1119_daily_bin6.fits outfile=/scratch/kocevski/285486/cmap_HighResolution_240883201_241142401_4FGL_J1203.3+1119_daily_bin6.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=180.833 yref=11.3231 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/285486/ft1_filtered_4FGL_J1203.3+1119_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/285486/ft2_4FGL_J1203.3+1119_daily_bin6.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/285486/Model_4FGL_J1203.3+1119_daily_bin6.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/285486/ft1_filtered_4FGL_J1203.3+1119_daily_bin6.fits.....................!
real 68.23
user 65.88
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/285486/ft1_filtered_4FGL_J1203.3+1119_daily_bin6.fits', '/scratch/kocevski/285486/ft2_4FGL_J1203.3+1119_daily_bin6.fits', expMap='/scratch/kocevski/285486/expmap_240883201_241142401_4FGL_J1203.3+1119_daily_bin6.fits', expCube='/scratch/kocevski/285486/ltcube_240883201_241142401_4FGL_J1203.3+1119_daily_bin6.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/285486/Model_4FGL_J1203.3+1119_daily_bin6.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1203.3+1119'

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  8.766e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/285486/ft1_filtered_4FGL_J1203.3+1119_daily_bin6.fits
Spacecraft file(s): /scratch/kocevski/285486/ft2_4FGL_J1203.3+1119_daily_bin6.fits
Exposure map: /scratch/kocevski/285486/expmap_240883201_241142401_4FGL_J1203.3+1119_daily_bin6.fits
Exposure cube: /scratch/kocevski/285486/ltcube_240883201_241142401_4FGL_J1203.3+1119_daily_bin6.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/285486/Model_4FGL_J1203.3+1119_daily_bin6.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) = 7491.0817895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9868       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.037       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.691       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27948E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.465       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10897E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4023       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .33496       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.6296       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1822       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2068       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0574       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1760       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7491.070     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3066 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.534       -.17398E-04** at limit **
   2  Prefactor     .10000E-03    11.111        .58655E-06** at limit **
   3  Prefactor     8.9968        12.573       -.22892E-05   -.67399E-04
   4  Prefactor     .10000E-03    17.059        .20373E-05** at limit **
   5  Prefactor     11.014        84.939       -.60515E-04    .33798E-06
   6  Prefactor     10.690        8.8198        .66021E-06    .33082E-04
   7  Prefactor     .10000E-03    4.0419        .16131E-06** at limit **
   8  Prefactor     .10000E-03    3.7111       -.13931E-06** at limit **
   9  Prefactor     .10000E-03    1.9596        .19795E-06** at limit **
  10  Prefactor     13.460        37.244       -.92408E-05   -.24198E-06
  11  Prefactor     .10000E-03    11.181       -.11080E-06** at limit **
  12  Prefactor     .10000E-03    1.3999       -.17644E-06** at limit **
  13  Prefactor     .10000E-03    1.6689        .25308E-07** at limit **
  14  Prefactor     .10000E-03    10.591        .60172E-05** at limit **
  15  norm          6.4011        3.5461        .10388E-06   -.37915E-03
  16  Prefactor     .10000E-03    8.8251        .63962E-05** at limit **
  17  norm          .33497        .21695       -.43679E-07   -.48798E-03
  18  norm          .10000E-03    17.327        .45350E-05** at limit **
  19  Prefactor     .10000E-03    43.759       -.44321E-05** at limit **
  20  norm          2.6295        .69867       -.17254E-07   -.89348E-04
  21  Prefactor     3.1821        3.6437       -.12293E-06    .16083E-03
  22  Prefactor     .10000E-03    8.2991       -.63916E-05** at limit **
  23  norm          1.2067        1.5060       -.33842E-06   -.11671E-02
  24  Prefactor     .10000E-03    17.575        .71725E-05** at limit **
  25  Normalizat    1.0578        .17601        .21327E-05    .13541E-03
  26  Prefactor     1.1757        .15746        .51272E-06    .23207E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.99682
  Prefactor  = 0.0001
  Prefactor  = 11.0144
  Prefactor  = 10.6899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 13.4603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.4011
  Prefactor  = 0.0001
  norm       = 0.334966
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.62947
  Prefactor  = 3.18213
  Prefactor  = 0.0001
  norm       = 1.20666
  Prefactor  = 0.0001
  Normalizat = 1.05779
  Prefactor  = 1.17574
 **********
 **   18 **HESSE 
 **********

 FCN=   7491.070     FROM HESSE     STATUS=OK           454 CALLS     3520 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.803        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9968        12.414        .13370E-03   -1.5108    
   4  Prefactor     .10000E-03    17.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.014        85.479        .12059E-03   -1.5044    
   6  Prefactor     10.690        8.8169        .12253E-03   -1.5054    
   7  Prefactor     .10000E-03    4.0888        .16990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7143        .16283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.511        .22517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.460        37.250        .10916E-03   -1.4974    
  11  Prefactor     .10000E-03    11.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5381        .19524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7023        .10895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4011        3.5471        .10957E-03   -1.5202    
  16  Prefactor     .10000E-03    8.8315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33497        .21438        .31295E-04   -1.5592    
  18  norm          .10000E-03    17.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.6295        .69724        .33657E-04   -1.5384    
  21  Prefactor     3.1821        3.6440        .17246E-03   -1.5351    
  22  Prefactor     .10000E-03    8.3167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2067        1.4792        .11157E-03   -1.5488    
  24  Prefactor     .10000E-03    17.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0578        .20678        .27326E-03   -.91119    
  26  Prefactor     1.1757        .18680        .24394E-03   -.87081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92629e-10
Minuit parameter uncertainties:
  1  0.000162935
  2  2.74465e-06
  3  12.4174
  4  1.71779e-05
  5  61.4894
  6  8.81794
  7  2.23375e-06
  8  1.72058e-06
  9  0.000394934
  10  37.3146
  11  1.67212e-05
  12  2.37004e-05
  13  6.73843e-06
  14  7.07952e-06
  15  3.54722
  16  6.31071e-06
  17  0.214382
  18  1.35965e-05
  19  1.10814e-05
  20  0.697243
  21  3.64429
  22  8.6986e-06
  23  1.47926
  24  1.06966e-05
  25  0.206934
  26  0.186904
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.346e+01  3.731e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.176e+00  1.869e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.058e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285486/likelihoodResults_240883201_241142401_4FGL_J1203.3+1119_daily_bin6.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) = 7491.04037513
delta logL = 0.0296458791436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7491.02115069
delta logL = 0.0488703242563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.846       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9444       1.0000          .0000       10.000    
     3 'Normalizat'    1.0597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1740       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+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=   7491.021     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      262 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.838        58.621        .82028E-04    .23533E-04
   2  Index         1.9452        1.1335        .11691E-01    .14151E-04
   3  Normalizat    1.0597        .19798        .27302E-03   -.27667E-03
   4  Prefactor     1.1739        .18615        .24407E-03   -.43872E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8384
  Index      = 1.94518
  Normalizat = 1.05975
  Prefactor  = 1.17394
 **********
 **   18 **HESSE 
 **********

 FCN=   7491.021     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.838        57.356        .16406E-04   -1.4731    
   2  Index         1.9452        1.1101        .46765E-03   -.65728    
   3  Normalizat    1.0597        .19812        .54605E-04   -.91055    
   4  Prefactor     1.1739        .18629        .48815E-04   -.87137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95369e-10
Minuit parameter uncertainties:
  1  57.4888
  2  1.12514
  3  0.19826
  4  0.186395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285486': 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) = 7491.02115017
delta logL = 0.0488708376115

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  2.384e+01  5.749e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  1.945e+00  1.125e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.174e+00  1.864e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.060e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
Ra Dec: 180.833 11.323

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/285486/cmap_HighResolution_240883201_241142401_4FGL_J1203.3+1119_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2021-09-04 22:11:59.738178', job_id='285486', GAL2='1.17', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630818719.74', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='4.89e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='6' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:11:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 285486: <4FGL_J1203.3+1119_daily_bin6> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin6> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:55:35 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:55:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 21:55:38 2021
Terminated at Sat Sep  4 22:12:00 2021
Results reported at Sat Sep  4 22:12:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin6 180.833 11.3231 240883201 241142401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1203.3+1119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   868.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            985 sec.

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

