/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 90 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 = 7471
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1203.3+1119_daily_bin965
RA = 180.833, Dec = 11.3231
tmin = 489456001, tmax = 489715201
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='291912', job_status='RUN', time_executed='2021-09-04 22:18:10.253536', time_epoch_executed='1630819090.25' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291912

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291912/ft1_4FGL_J1203.3+1119_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291912/ft2_4FGL_J1203.3+1119_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291912/ft1_4FGL_J1203.3+1119_daily_bin965.fits outfile=/scratch/kocevski/291912/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin965.fits ra=180.833 dec=11.3231 rad=12.0 tmin=489456001.0 tmax=489715201.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 5.23
user 4.86
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/291912/ft2_4FGL_J1203.3+1119_daily_bin965.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/291912/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin965.fits evtable="EVENTS" outfile="/scratch/kocevski/291912/ft1_filtered_4FGL_J1203.3+1119_daily_bin965.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/291912/ft1_filtered_4FGL_J1203.3+1119_daily_bin965.fits" evtable="EVENTS" scfile=/scratch/kocevski/291912/ft2_4FGL_J1203.3+1119_daily_bin965.fits sctable="SC_DATA" outfile=/scratch/kocevski/291912/ltcube_489456001_489715201_4FGL_J1203.3+1119_daily_bin965.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/291912/ft2_4FGL_J1203.3+1119_daily_bin965.fits
.....................!
real 11.83
user 11.36
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291912/ft1_filtered_4FGL_J1203.3+1119_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/291912/ft2_4FGL_J1203.3+1119_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/291912/ltcube_489456001_489715201_4FGL_J1203.3+1119_daily_bin965.fits outfile=/scratch/kocevski/291912/expmap_489456001_489715201_4FGL_J1203.3+1119_daily_bin965.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/291912/ltcube_489456001_489715201_4FGL_J1203.3+1119_daily_bin965.fits
.....................!
real 192.40
user 187.40
sys 4.55

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/291912/ft1_filtered_4FGL_J1203.3+1119_daily_bin965.fits scfile=/scratch/kocevski/291912/ft2_4FGL_J1203.3+1119_daily_bin965.fits outfile=/scratch/kocevski/291912/cmap_489456001_489715201_4FGL_J1203.3+1119_daily_bin965.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291912/ft1_filtered_4FGL_J1203.3+1119_daily_bin965.fits scfile=/scratch/kocevski/291912/ft2_4FGL_J1203.3+1119_daily_bin965.fits outfile=/scratch/kocevski/291912/cmap_HighResolution_489456001_489715201_4FGL_J1203.3+1119_daily_bin965.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/291912/ft1_filtered_4FGL_J1203.3+1119_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/291912/ft2_4FGL_J1203.3+1119_daily_bin965.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/291912/Model_4FGL_J1203.3+1119_daily_bin965.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/291912/ft1_filtered_4FGL_J1203.3+1119_daily_bin965.fits....................!
real 48.48
user 46.94
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.258       1.0000         .10000E-03   10000.    
     2 'Prefactor '    73.729       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9828       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11155E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.360       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .61810       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.568       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1210       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .45915       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    168.25       1.0000         .10000E-03   10000.    
    20 'norm      '    .54090       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.5437       1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.114       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3912       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79560       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=   4940.874     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3081 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.258        16.510        .17804E-06   -.10742E-04
   2  Prefactor     73.723        53.022        .52134E-06   -.32162E-04
   3  Prefactor     .10000E-03    3.2791        .25854E-07** at limit **
   4  Prefactor     .10000E-03    20.182        .30282E-06** at limit **
   5  Prefactor     .10000E-03    72.254        .12129E-05** at limit **
   6  Prefactor     6.9748        18.059        .98317E-06   -.61518E-05
   7  Prefactor     .10066E-03    16.983        .39880E-05** at limit **
   8  Prefactor     .10000E-03    8.9626        .17085E-07** at limit **
   9  Prefactor     .10000E-03    1.8653        .54737E-07** at limit **
  10  Prefactor     .10000E-03    94.686       -.22327E-06** at limit **
  11  Prefactor     60.370        66.061        .66300E-07   -.10956E-03
  12  Prefactor     .10000E-03    .95188       -.50535E-07** at limit **
  13  Prefactor     .61766        2.2687        .17041E-05    .68413E-03
  14  Prefactor     22.582        33.984       -.59877E-06   -.32674E-04
  15  norm          3.1115        6.3010        .12150E-05    .24781E-03
  16  Prefactor     .10000E-03    30.595       -.22874E-07** at limit **
  17  norm          .45918        .29966        .25010E-07   -.27174E-03
  18  norm          .10000E-03    17.581       -.17078E-06** at limit **
  19  Prefactor     168.26        166.88       -.87419E-06   -.15600E-04
  20  norm          .54259        .92854       -.40376E-07   -.11783E-03
  21  Prefactor     .10000E-03    3.9680       -.89863E-07** at limit **
  22  Prefactor     .10000E-03    102.00       -.27235E-05** at limit **
  23  norm          2.5428        2.2911        .82311E-07   -.79098E-05
  24  Prefactor     51.087        68.061       -.47749E-06   -.66919E-04
  25  Normalizat    1.3912        .22976       -.14034E-05   -.45463E-03
  26  Prefactor     .79558        .19710       -.79807E-06   -.45053E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.258
  Prefactor  = 73.723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.97484
  Prefactor  = 0.000100664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.3695
  Prefactor  = 0.0001
  Prefactor  = 0.617657
  Prefactor  = 22.5817
  norm       = 3.11148
  Prefactor  = 0.0001
  norm       = 0.459178
  norm       = 0.0001
  Prefactor  = 168.265
  norm       = 0.542589
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.54284
  Prefactor  = 51.0865
  Normalizat = 1.39124
  Prefactor  = 0.79558
 **********
 **   18 **HESSE 
 **********

 FCN=   4940.874     FROM HESSE     STATUS=OK           450 CALLS     3531 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.258        16.514        .74069E-04   -1.4626    
   2  Prefactor     73.723        53.178        .46758E-04   -1.3989    
   3  Prefactor     .10000E-03    3.2854        .12431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    72.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.9748        18.105        .15182E-03   -1.5180    
   7  Prefactor     .10066E-03    59.147        .36858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.9740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8927        .93740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    94.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     60.370        65.482        .51644E-04   -1.4152    
  12  Prefactor     .10000E-03    .95817        .66934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .61766        2.3094        .19987E-03   -1.5551    
  14  Prefactor     22.582        33.865        .84316E-04   -1.4757    
  15  norm          3.1115        6.0653        .19287E-03   -1.5355    
  16  Prefactor     .10000E-03    30.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .45918        .29269        .29784E-04   -1.5572    
  18  norm          .10000E-03    17.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     168.26        166.75        .15550E-03   -1.3106    
  20  norm          .54259        .85461        .71460E-04   -1.5561    
  21  Prefactor     .10000E-03    3.9693        .13673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    102.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.5428        2.2736        .95227E-04   -1.5389    
  24  Prefactor     51.087        68.107        .56095E-04   -1.4277    
  25  Normalizat    1.3912        .27274        .25039E-03   -.80882    
  26  Prefactor     .79558        .23380        .28730E-03   -.99891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15066e-08
Minuit parameter uncertainties:
  1  16.5168
  2  53.2123
  3  3.56144e-06
  4  9.74625e-05
  5  0.000849818
  6  18.1191
  7  0.0125432
  8  3.6374e-06
  9  5.06188e-06
  10  0.000241704
  11  65.5607
  12  3.25195e-06
  13  2.30977
  14  33.8938
  15  6.06654
  16  7.98086e-05
  17  0.292691
  18  5.96205e-05
  19  167.217
  20  0.854627
  21  4.7444e-06
  22  0.00133008
  23  2.27367
  24  68.2105
  25  0.27302
  26  0.23409
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.417e-04  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:  7.956e-01  2.341e-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.391e+00  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/291912/likelihoodResults_489456001_489715201_4FGL_J1203.3+1119_daily_bin965.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) = 4940.87422462
delta logL = -4.94510513818e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4940.87422395
delta logL = -4.8788395361e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93884E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3393       1.0000          .0000       10.000    
     3 'Normalizat'    1.3912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79558       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.

 FCN=   4940.874     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      211 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    98.773        .90955E-02** at limit **
   2  Index         2.3700        6.1850        .50000       -.30837E-05
   3  Normalizat    1.3912        .21633        .56625E-01    .17079E-04
   4  Prefactor     .79558        .19471        .64946E-01    .37542E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37003
  Normalizat = 1.39124
  Prefactor  = 0.795582
 **********
 **   18 **HESSE 
 **********

 FCN=   4940.874     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.11        .18191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3700        6.1840        .50000       -.55388    
   3  Normalizat    1.3912        .25507        .25039E-03   -.80882    
   4  Prefactor     .79558        .22935        .28730E-03   -.99891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02801e-11
Minuit parameter uncertainties:
  1  0.000423707
  2  4.44861
  3  0.255307
  4  0.229627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291912': 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) = 4940.87417514
delta logL = 2.19561115955e-08

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.237e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.370e+00  4.449e+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:  7.956e-01  2.296e-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.391e+00  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/291912/cmap_HighResolution_489456001_489715201_4FGL_J1203.3+1119_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.11e-03', job_status='DONE', photon_flux_upper_limit='9.24e-08', time_completed='2021-09-04 22:30:20.432225', job_id='291912', GAL2='0.80', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630819820.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='965' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:30:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 291912: <4FGL_J1203.3+1119_daily_bin965> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin965> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 22:16:14 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:16:16 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:16:16 2021
Terminated at Sat Sep  4 22:30:21 2021
Results reported at Sat Sep  4 22:30:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin965 180.833 11.3231 489456001 489715201 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 :                                   680.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            847 sec.

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

