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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin37
RA = 180.833, Dec = 11.3231
tmin = 248918401, tmax = 249177601
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='285537', job_status='RUN', time_executed='2021-09-04 21:58:12.357477', time_epoch_executed='1630817892.36' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285537

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285537/ft1_4FGL_J1203.3+1119_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285537/ft2_4FGL_J1203.3+1119_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285537/ft1_4FGL_J1203.3+1119_daily_bin37.fits outfile=/scratch/kocevski/285537/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin37.fits ra=180.833 dec=11.3231 rad=12.0 tmin=248918401.0 tmax=249177601.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.97
user 1.74
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285537/ft1_filtered_4FGL_J1203.3+1119_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/285537/ft2_4FGL_J1203.3+1119_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/285537/ltcube_248918401_249177601_4FGL_J1203.3+1119_daily_bin37.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/285537/ft2_4FGL_J1203.3+1119_daily_bin37.fits
.....................!
real 12.39
user 12.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285537/ft1_filtered_4FGL_J1203.3+1119_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/285537/ft2_4FGL_J1203.3+1119_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/285537/ltcube_248918401_249177601_4FGL_J1203.3+1119_daily_bin37.fits outfile=/scratch/kocevski/285537/expmap_248918401_249177601_4FGL_J1203.3+1119_daily_bin37.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/285537/ltcube_248918401_249177601_4FGL_J1203.3+1119_daily_bin37.fits
.....................!
real 191.12
user 185.99
sys 4.71

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/285537/ft1_filtered_4FGL_J1203.3+1119_daily_bin37.fits scfile=/scratch/kocevski/285537/ft2_4FGL_J1203.3+1119_daily_bin37.fits outfile=/scratch/kocevski/285537/cmap_248918401_249177601_4FGL_J1203.3+1119_daily_bin37.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/285537/ft1_filtered_4FGL_J1203.3+1119_daily_bin37.fits scfile=/scratch/kocevski/285537/ft2_4FGL_J1203.3+1119_daily_bin37.fits outfile=/scratch/kocevski/285537/cmap_HighResolution_248918401_249177601_4FGL_J1203.3+1119_daily_bin37.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.58
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5787       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.857       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1367       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3237       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14204E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    75.907       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .66757       1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.784       1.0000         .10000E-03   10000.    
    17 'norm      '    .19919       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.0738       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .98329       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0896       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0964       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=   5874.776     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     3099 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5785        9.0559        .26095E-05   -.90605E-05
   2  Prefactor     .10000E-03    50.135       -.76226E-06** at limit **
   3  Prefactor     .10000E-03    11.965       -.36243E-06** at limit **
   4  Prefactor     10.858        19.550       -.28491E-07   -.75740E-06
   5  Prefactor     .10000E-03    29.483       -.10225E-05** at limit **
   6  Prefactor     8.1324        13.258       -.86269E-06    .12155E-04
   7  Prefactor     4.3235        7.7830        .91491E-06   -.17419E-04
   8  Prefactor     .10000E-03    48.326       -.45634E-05** at limit **
   9  Prefactor     .10000E-03    1.1733       -.90760E-08** at limit **
  10  Prefactor     75.786        89.845        .77511E-05   -.68390E-05
  11  Prefactor     .10000E-03    25.859        .14693E-05** at limit **
  12  Prefactor     .10000E-03    1.3763       -.33531E-07** at limit **
  13  Prefactor     .10000E-03    1.0668       -.27959E-07** at limit **
  14  Prefactor     .10000E-03    10.403        .30672E-06** at limit **
  15  norm          .66751        2.4917        .13578E-06   -.47497E-05
  16  Prefactor     57.786        42.067       -.24934E-07    .13462E-05
  17  norm          .19920        .21247        .69616E-10   -.73717E-04
  18  norm          .10000E-03    30.911       -.17162E-05** at limit **
  19  Prefactor     .10000E-03    60.080        .33979E-05** at limit **
  20  norm          5.0737        .96240        .93996E-08    .55661E-04
  21  Prefactor     .10000E-03    9.3207       -.18181E-06** at limit **
  22  Prefactor     .10000E-03    26.948        .37737E-06** at limit **
  23  norm          .98336        1.2906        .31216E-07    .56852E-06
  24  Prefactor     .10000E-03    26.756        .68871E-06** at limit **
  25  Normalizat    1.0896        .19364        .23494E-06    .47626E-04
  26  Prefactor     1.0964        .18100       -.73441E-06    .49488E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.57846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.858
  Prefactor  = 0.0001
  Prefactor  = 8.13244
  Prefactor  = 4.32347
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 75.7861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.667512
  Prefactor  = 57.7862
  norm       = 0.199195
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.07375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.983358
  Prefactor  = 0.0001
  Normalizat = 1.08959
  Prefactor  = 1.09635
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.776     FROM HESSE     STATUS=OK           456 CALLS     3555 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5785        9.0904        .12708E-02   -1.5387    
   2  Prefactor     .10000E-03    50.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.858        19.542        .12159E-03   -1.5049    
   5  Prefactor     .10000E-03    29.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1324        13.234        .14055E-03   -1.5138    
   7  Prefactor     4.3235        7.7828        .96864E-03   -1.5292    
   8  Prefactor     .10000E-03    50.482        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1795        .81066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     75.786        90.263        .23044E-03   -1.3965    
  11  Prefactor     .10000E-03    25.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4227        .17549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0790        .77279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .66751        2.4271        .21838E-03   -1.5545    
  16  Prefactor     57.786        42.071        .52775E-04   -1.4186    
  17  norm          .19920        .19823        .35286E-03   -1.5619    
  18  norm          .10000E-03    30.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    59.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.0737        .95364        .30565E-04   -1.5257    
  21  Prefactor     .10000E-03    9.3980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .98336        1.2906        .52426E-04   -1.5510    
  24  Prefactor     .10000E-03    26.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0896        .23046        .26686E-03   -.90087    
  26  Prefactor     1.0964        .21490        .25072E-03   -.89583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33137e-10
Minuit parameter uncertainties:
  1  9.09528
  2  3.99012e-05
  3  1.08738e-05
  4  19.5532
  5  2.29228e-05
  6  13.2392
  7  7.7846
  8  0.00057128
  9  4.61155e-08
  10  90.427
  11  3.36702e-05
  12  1.09457e-07
  13  4.49019e-07
  14  4.57301e-06
  15  2.42746
  16  42.0924
  17  0.198232
  18  4.61597e-05
  19  0.000111508
  20  0.953646
  21  9.69275e-07
  22  1.28723e-05
  23  1.29064
  24  1.52488e-05
  25  0.230674
  26  0.215067
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  7.579e+01  9.043e+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.096e+00  2.151e-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.090e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 180.833 11.323
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.33e-05

TS (Fixed Index): 1.15
Ra Dec: 180.833 11.323
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285537/likelihoodResults_248918401_249177601_4FGL_J1203.3+1119_daily_bin37.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) = 5874.76436343
delta logL = 0.0112173627285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5874.74529117
delta logL = 0.0302896232733

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.488       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6868       1.0000          .0000       10.000    
     3 'Normalizat'    1.0733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1059       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=   5874.745     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      303 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.489        189.34        .55892E-04    .26199E-04
   2  Index         2.6868        2.2658        .77893E-02    .39922E-04
   3  Normalizat    1.0733        .25244        .26861E-03    .34198E-04
   4  Prefactor     1.1059        .22472        .24979E-03    .42737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.4894
  Index      = 2.68679
  Normalizat = 1.07326
  Prefactor  = 1.10595
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.745     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.489        113.56        .11178E-04   -1.4272    
   2  Index         2.6868        1.3872        .31157E-03   -.48097    
   3  Normalizat    1.0733        .23813        .10745E-04   -.90615    
   4  Prefactor     1.1059        .21779        .99915E-05   -.89277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22986e-11
Minuit parameter uncertainties:
  1  114.041
  2  1.41092
  3  0.23837
  4  0.217965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285537': 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) = 5874.74529116
delta logL = 0.0302896257299

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  5.149e+01  1.140e+02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.687e+00  1.411e+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.106e+00  2.180e-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.073e+00  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 180.833 11.323
Photon Index (Free Index): 2.69 +/- 1.41
Photon Flux (Free Index): 4.31e-08 +/- 6.46e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.14e-05

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/285537/cmap_HighResolution_248918401_249177601_4FGL_J1203.3+1119_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='1.05e-05', photon_flux_error='3.73e-08', dlogl='3.03e-02', energy_flux='1.12e-05', photon_flux2='4.31e-08', job_status='DONE', time_completed='2021-09-04 22:10:54.489404', photon_index_error2='1.41', photon_index2='2.69', ts='1.15', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.14e-05', EG='1.09', time_epoch_completed='1630818654.49', return_code='0', job_id='285537', GAL2='1.11', EG2='1.07', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='6.46e-08', ts2='1.21', photon_index='2.34' WHERE bin_id='37' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:10:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 285537: <4FGL_J1203.3+1119_daily_bin37> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin37> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:55:38 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:55:40 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:40 2021
Terminated at Sat Sep  4 22:10:55 2021
Results reported at Sat Sep  4 22:10:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin37 180.833 11.3231 248918401 249177601 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 :                                   761.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

