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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin702
RA = 180.833, Dec = 11.3231
tmin = 421286401, tmax = 421545601
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='290094', job_status='RUN', time_executed='2021-09-04 22:10:47.246611', time_epoch_executed='1630818647.25' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290094

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290094/ft1_4FGL_J1203.3+1119_daily_bin702.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290094/ft2_4FGL_J1203.3+1119_daily_bin702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290094/ft1_4FGL_J1203.3+1119_daily_bin702.fits outfile=/scratch/kocevski/290094/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin702.fits ra=180.833 dec=11.3231 rad=12.0 tmin=421286401.0 tmax=421545601.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.64
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/290094/ft2_4FGL_J1203.3+1119_daily_bin702.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/290094/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin702.fits evtable="EVENTS" outfile="/scratch/kocevski/290094/ft1_filtered_4FGL_J1203.3+1119_daily_bin702.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290094/ft1_filtered_4FGL_J1203.3+1119_daily_bin702.fits" evtable="EVENTS" scfile=/scratch/kocevski/290094/ft2_4FGL_J1203.3+1119_daily_bin702.fits sctable="SC_DATA" outfile=/scratch/kocevski/290094/ltcube_421286401_421545601_4FGL_J1203.3+1119_daily_bin702.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/290094/ft2_4FGL_J1203.3+1119_daily_bin702.fits
.....................!
real 12.22
user 11.87
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290094/ft1_filtered_4FGL_J1203.3+1119_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/290094/ft2_4FGL_J1203.3+1119_daily_bin702.fits sctable="SC_DATA" expcube=/scratch/kocevski/290094/ltcube_421286401_421545601_4FGL_J1203.3+1119_daily_bin702.fits outfile=/scratch/kocevski/290094/expmap_421286401_421545601_4FGL_J1203.3+1119_daily_bin702.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/290094/ltcube_421286401_421545601_4FGL_J1203.3+1119_daily_bin702.fits
.....................!
real 189.33
user 185.07
sys 3.82

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/290094/ft1_filtered_4FGL_J1203.3+1119_daily_bin702.fits scfile=/scratch/kocevski/290094/ft2_4FGL_J1203.3+1119_daily_bin702.fits outfile=/scratch/kocevski/290094/cmap_421286401_421545601_4FGL_J1203.3+1119_daily_bin702.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290094/ft1_filtered_4FGL_J1203.3+1119_daily_bin702.fits scfile=/scratch/kocevski/290094/ft2_4FGL_J1203.3+1119_daily_bin702.fits outfile=/scratch/kocevski/290094/cmap_HighResolution_421286401_421545601_4FGL_J1203.3+1119_daily_bin702.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/290094/ft1_filtered_4FGL_J1203.3+1119_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/290094/ft2_4FGL_J1203.3+1119_daily_bin702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/290094/Model_4FGL_J1203.3+1119_daily_bin702.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/290094/ft1_filtered_4FGL_J1203.3+1119_daily_bin702.fits.....................!
real 60.79
user 59.37
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/290094/ft1_filtered_4FGL_J1203.3+1119_daily_bin702.fits', '/scratch/kocevski/290094/ft2_4FGL_J1203.3+1119_daily_bin702.fits', expMap='/scratch/kocevski/290094/expmap_421286401_421545601_4FGL_J1203.3+1119_daily_bin702.fits', expCube='/scratch/kocevski/290094/ltcube_421286401_421545601_4FGL_J1203.3+1119_daily_bin702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/290094/Model_4FGL_J1203.3+1119_daily_bin702.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/290094/ft1_filtered_4FGL_J1203.3+1119_daily_bin702.fits
Spacecraft file(s): /scratch/kocevski/290094/ft2_4FGL_J1203.3+1119_daily_bin702.fits
Exposure map: /scratch/kocevski/290094/expmap_421286401_421545601_4FGL_J1203.3+1119_daily_bin702.fits
Exposure cube: /scratch/kocevski/290094/ltcube_421286401_421545601_4FGL_J1203.3+1119_daily_bin702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/290094/Model_4FGL_J1203.3+1119_daily_bin702.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) = 6486.41191903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8497       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0103       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3902       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.253       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1421       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .94151       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.119       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9492       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .84432       1.0000         .10000E-03   10000.    
    18 'norm      '    68.764       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8735       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6956       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .63521       1.0000         .10000E-03   10000.    
    24 'Prefactor '    41.045       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2648       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91657       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=   6486.384     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3083 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8797       -.73511E-08** at limit **
   2  Prefactor     .10000E-03    21.874       -.47842E-06** at limit **
   3  Prefactor     6.8497        8.9601        .24624E-06   -.29334E-04
   4  Prefactor     .10000E-03    10.347       -.19124E-07** at limit **
   5  Prefactor     .10000E-03    30.443        .43627E-06** at limit **
   6  Prefactor     .10000E-03    3.8683        .29666E-06** at limit **
   7  Prefactor     1.0082        4.9518        .14325E-05   -.44998E-03
   8  Prefactor     6.3873        18.064       -.14333E-05   -.59194E-04
   9  Prefactor     2.9322        3.1577        .15401E-06   -.10526E-03
  10  Prefactor     28.300        98.773        .11066E-04    .86328E-04
  11  Prefactor     .10000E-03    29.295       -.44813E-06** at limit **
  12  Prefactor     3.1423        2.7604       -.29973E-06   -.37975E-03
  13  Prefactor     .94106        4.5057        .21841E-05   -.14986E-03
  14  Prefactor     14.118        15.642        .18740E-07   -.16543E-04
  15  norm          2.9491        3.5214       -.22255E-06   -.23187E-03
  16  Prefactor     .10000E-03    7.8045       -.67457E-08** at limit **
  17  norm          .84434        .39167        .97299E-08   -.87245E-03
  18  norm          68.794        51.884        .40365E-05    .24516E-03
  19  Prefactor     .10000E-03    61.539        .21963E-06** at limit **
  20  norm          1.8730        .79806       -.14681E-06   -.39333E-03
  21  Prefactor     3.6963        6.1052        .32824E-05   -.52422E-03
  22  Prefactor     .10000E-03    21.082        .18723E-06** at limit **
  23  norm          .63524        1.7438        .73724E-06   -.21167E-03
  24  Prefactor     41.054        55.955        .16768E-05    .46607E-04
  25  Normalizat    1.2648        .20061       -.10181E-05   -.27042E-03
  26  Prefactor     .91656        .17551       -.11368E-05   -.24309E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.84968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.0082
  Prefactor  = 6.38733
  Prefactor  = 2.93221
  Prefactor  = 28.3
  Prefactor  = 0.0001
  Prefactor  = 3.14229
  Prefactor  = 0.941064
  Prefactor  = 14.1185
  norm       = 2.9491
  Prefactor  = 0.0001
  norm       = 0.844336
  norm       = 68.7938
  Prefactor  = 0.0001
  norm       = 1.87304
  Prefactor  = 3.69626
  Prefactor  = 0.0001
  norm       = 0.635241
  Prefactor  = 41.0541
  Normalizat = 1.26479
  Prefactor  = 0.916559
 **********
 **   18 **HESSE 
 **********

 FCN=   6486.384     FROM HESSE     STATUS=OK           458 CALLS     3541 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8832        .15493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.8497        8.9577        .15330E-03   -1.5184    
   4  Prefactor     .10000E-03    10.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8724        .15460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0082        14.843        .33378E-02   -1.5507    
   8  Prefactor     6.3873        18.122        .15878E-03   -1.5202    
   9  Prefactor     2.9322        3.1441        .14279E-03   -1.5365    
  10  Prefactor     28.300        101.45        .75372E-04   -1.4644    
  11  Prefactor     .10000E-03    29.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1423        2.6920        .11129E-03   -1.5353    
  13  Prefactor     .94106        4.3769        .29231E-03   -1.5514    
  14  Prefactor     14.118        15.638        .10659E-03   -1.4956    
  15  norm          2.9491        3.5065        .14225E-03   -1.5364    
  16  Prefactor     .10000E-03    7.8060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .84434        .38542        .32396E-04   -1.5524    
  18  norm          68.794        53.613        .24202E-03   -1.4047    
  19  Prefactor     .10000E-03    61.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8730        .79206        .41013E-04   -1.5434    
  21  Prefactor     3.6963        6.2573        .10504E-02   -1.5323    
  22  Prefactor     .10000E-03    21.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .63524        1.7458        .16356E-03   -1.5549    
  24  Prefactor     41.054        56.094        .62568E-04   -1.4426    
  25  Normalizat    1.2648        .23549        .26181E-03   -.84624    
  26  Prefactor     .91656        .20620        .27017E-03   -.95565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89338e-09
Minuit parameter uncertainties:
  1  3.35527e-06
  2  4.03898e-05
  3  8.95947
  4  1.37585e-06
  5  6.62646e-05
  6  1.53604e-05
  7  7.73883
  8  18.1377
  9  3.14429
  10  102.075
  11  6.34833e-05
  12  2.69209
  13  4.05929
  14  15.6421
  15  3.50674
  16  1.22813e-06
  17  0.385423
  18  53.6502
  19  4.69122e-05
  20  0.792066
  21  6.2584
  22  1.15377e-05
  23  1.74592
  24  56.1658
  25  0.235688
  26  0.206377
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  2.830e+01  1.021e+02  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:  9.166e-01  2.064e-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.265e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/290094/likelihoodResults_421286401_421545601_4FGL_J1203.3+1119_daily_bin702.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) = 6486.38241584
delta logL = 0.00110538242097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6486.38215365
delta logL = 0.00136757237215

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.369       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4073       1.0000          .0000       10.000    
     3 'Normalizat'    1.2637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91689       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=   6486.382     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      246 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.334        100.41        .78013E-04    .14337E-03
   2  Index         2.4062        1.3876        .11869E-01    .14546E-03
   3  Normalizat    1.2639        .22836        .26189E-03   -.19220E-02
   4  Prefactor     .91705        .20435        .27010E-03   -.18390E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.334
  Index      = 2.40621
  Normalizat = 1.26391
  Prefactor  = 0.917047
 **********
 **   18 **HESSE 
 **********

 FCN=   6486.382     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.334        92.547        .15603E-04   -1.4681    
   2  Index         2.4062        1.2815        .47477E-03   -.54540    
   3  Normalizat    1.2639        .22855        .52379E-04   -.84650    
   4  Prefactor     .91705        .20441        .54021E-04   -.95548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74909e-09
Minuit parameter uncertainties:
  1  93.057
  2  1.30147
  3  0.228729
  4  0.20458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290094': 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) = 6486.38214643
delta logL = 0.00137479481691

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  2.633e+01  9.306e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.406e+00  1.301e+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:  9.170e-01  2.046e-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.264e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/290094/cmap_HighResolution_421286401_421545601_4FGL_J1203.3+1119_daily_bin702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-09-04 22:23:49.576364', job_id='290094', GAL2='0.92', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630819429.58', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.37e-03', ts2='0.12', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='702' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:23:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 290094: <4FGL_J1203.3+1119_daily_bin702> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin702> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 22:10:34 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:10:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 22:10:35 2021
Terminated at Sat Sep  4 22:23:50 2021
Results reported at Sat Sep  4 22:23:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin702 180.833 11.3231 421286401 421545601 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 :                                   779.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

