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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1039
RA = 180.833, Dec = 11.3231
tmin = 508636801, tmax = 508896001
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='292056', job_status='RUN', time_executed='2021-09-04 22:17:10.725426', time_epoch_executed='1630819030.73' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1039'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/292056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/292056/ft1_4FGL_J1203.3+1119_daily_bin1039.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/292056/ft2_4FGL_J1203.3+1119_daily_bin1039.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/292056/ft1_4FGL_J1203.3+1119_daily_bin1039.fits outfile=/scratch/kocevski/292056/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1039.fits ra=180.833 dec=11.3231 rad=12.0 tmin=508636801.0 tmax=508896001.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 4.39
user 3.50
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/292056/ft1_filtered_4FGL_J1203.3+1119_daily_bin1039.fits" evtable="EVENTS" scfile=/scratch/kocevski/292056/ft2_4FGL_J1203.3+1119_daily_bin1039.fits sctable="SC_DATA" outfile=/scratch/kocevski/292056/ltcube_508636801_508896001_4FGL_J1203.3+1119_daily_bin1039.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/292056/ft2_4FGL_J1203.3+1119_daily_bin1039.fits
.....................!
real 11.89
user 11.41
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/292056/ft1_filtered_4FGL_J1203.3+1119_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/292056/ft2_4FGL_J1203.3+1119_daily_bin1039.fits sctable="SC_DATA" expcube=/scratch/kocevski/292056/ltcube_508636801_508896001_4FGL_J1203.3+1119_daily_bin1039.fits outfile=/scratch/kocevski/292056/expmap_508636801_508896001_4FGL_J1203.3+1119_daily_bin1039.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/292056/ltcube_508636801_508896001_4FGL_J1203.3+1119_daily_bin1039.fits
.....................!
real 189.82
user 184.67
sys 4.32

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/292056/ft1_filtered_4FGL_J1203.3+1119_daily_bin1039.fits scfile=/scratch/kocevski/292056/ft2_4FGL_J1203.3+1119_daily_bin1039.fits outfile=/scratch/kocevski/292056/cmap_508636801_508896001_4FGL_J1203.3+1119_daily_bin1039.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/292056/ft1_filtered_4FGL_J1203.3+1119_daily_bin1039.fits scfile=/scratch/kocevski/292056/ft2_4FGL_J1203.3+1119_daily_bin1039.fits outfile=/scratch/kocevski/292056/cmap_HighResolution_508636801_508896001_4FGL_J1203.3+1119_daily_bin1039.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.286       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12879E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.706       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.232       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7215       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.408       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12187E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7523       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8712       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8944       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .56018       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2277       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11983E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.846       1.0000         .10000E-03   10000.    
    23 'norm      '    .53038       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4401       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .74485       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=   6842.923     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3049 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.277        14.279        .11366E-06    .44520E-04
   2  Prefactor     .10000E-03    82.290       -.70303E-06** at limit **
   3  Prefactor     .10000E-03    5.8845       -.10608E-07** at limit **
   4  Prefactor     10.702        16.590       -.23462E-07    .16425E-04
   5  Prefactor     18.206        106.27       -.28167E-04   -.13590E-03
   6  Prefactor     .10000E-03    5.0772        .53476E-07** at limit **
   7  Prefactor     4.7209        5.9553        .21250E-05   -.15452E-02
   8  Prefactor     13.377        17.952        .14043E-05    .13419E-03
   9  Prefactor     .10000E-03    .87126        .14263E-07** at limit **
  10  Prefactor     .10000E-03    33.583       -.28179E-05** at limit **
  11  Prefactor     .10000E-03    34.818       -.11139E-05** at limit **
  12  Prefactor     3.7519        2.9365       -.20151E-07   -.66236E-04
  13  Prefactor     5.8711        3.5516       -.49661E-07   -.36561E-04
  14  Prefactor     .10000E-03    11.549        .21561E-06** at limit **
  15  norm          2.8937        3.0017        .12931E-07   -.17091E-03
  16  Prefactor     .10000E-03    11.621       -.16973E-06** at limit **
  17  norm          .56021        .32802       -.91453E-09   -.21083E-03
  18  norm          .10000E-03    23.336        .70777E-06** at limit **
  19  Prefactor     .10000E-03    36.833        .29950E-05** at limit **
  20  norm          2.2276        .62696       -.13716E-07   -.36092E-04
  21  Prefactor     .10000E-03    10.490       -.27511E-07** at limit **
  22  Prefactor     31.855        25.863        .96045E-06    .12182E-03
  23  norm          .53027        .90213        .82816E-07   -.22527E-03
  24  Prefactor     .10000E-03    17.315       -.21801E-06** at limit **
  25  Normalizat    1.4403        .19612        .85993E-06   -.40796E-04
  26  Prefactor     .74476        .16727       -.69865E-06    .68241E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.2767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7017
  Prefactor  = 18.2062
  Prefactor  = 0.0001
  Prefactor  = 4.72091
  Prefactor  = 13.3772
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.75192
  Prefactor  = 5.8711
  Prefactor  = 0.0001
  norm       = 2.89375
  Prefactor  = 0.0001
  norm       = 0.560211
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.22765
  Prefactor  = 0.0001
  Prefactor  = 31.8548
  norm       = 0.530269
  Prefactor  = 0.0001
  Normalizat = 1.44027
  Prefactor  = 0.744763
 **********
 **   18 **HESSE 
 **********

 FCN=   6842.923     FROM HESSE     STATUS=OK           456 CALLS     3505 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.277        14.312        .88928E-04   -1.4807    
   2  Prefactor     .10000E-03    82.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.702        16.620        .12245E-03   -1.5054    
   5  Prefactor     18.206        113.57        .93799E-04   -1.4854    
   6  Prefactor     .10000E-03    5.1169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7209        8.6065        .92592E-03   -1.5273    
   8  Prefactor     13.377        18.000        .10939E-03   -1.4976    
   9  Prefactor     .10000E-03    .87281        .75395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7519        2.9293        .11658E-03   -1.5321    
  13  Prefactor     5.8711        3.5485        .11239E-03   -1.5223    
  14  Prefactor     .10000E-03    11.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8937        2.9933        .13440E-03   -1.5368    
  16  Prefactor     .10000E-03    11.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .56021        .32037        .34731E-04   -1.5558    
  18  norm          .10000E-03    23.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2276        .62520        .32324E-04   -1.5409    
  21  Prefactor     .10000E-03    10.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     31.855        25.874        .71003E-04   -1.4579    
  23  norm          .53027        .75887        .99430E-03   -1.5562    
  24  Prefactor     .10000E-03    17.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4403        .23541        .24733E-03   -.79471    
  26  Prefactor     .74476        .19836        .29289E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43813e-09
Minuit parameter uncertainties:
  1  14.3144
  2  0.000246395
  3  6.79784e-06
  4  16.6275
  5  91.2015
  6  1.54003e-05
  7  8.60876
  8  18.0076
  9  2.23372e-07
  10  0.000382253
  11  6.00414e-05
  12  2.92944
  13  3.54866
  14  1.90921e-05
  15  2.99344
  16  1.54704e-05
  17  0.320368
  18  7.55675e-05
  19  0.000404621
  20  0.625203
  21  3.76293e-05
  22  25.8835
  23  0.758882
  24  2.45795e-05
  25  0.235585
  26  0.198553
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.823e-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.448e-01  1.986e-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.440e+00  2.356e-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: 6.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/292056/likelihoodResults_508636801_508896001_4FGL_J1203.3+1119_daily_bin1039.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): 102
logL (Free Index) = 6842.92326652
delta logL = -0.000141286442158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6842.92312517
delta logL = 6.91088644089e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2676       1.0000          .0000       10.000    
     3 'Normalizat'    1.4403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74476       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=   6842.923     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      245 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7714.4        .90712E-02** at limit **
   2  Index         2.2506        5.9503        .50000        .40441E-05
   3  Normalizat    1.4403        .99622E-01    .55935E-01   -.70217E-05
   4  Prefactor     .74476        .88449E-01    .66202E-01    .12769E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25059
  Normalizat = 1.44027
  Prefactor  = 0.744762
 **********
 **   18 **HESSE 
 **********

 FCN=   6842.923     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2506        6.0888        .50000       -.58222    
   3  Normalizat    1.4403        .22108        .24733E-03   -.79471    
   4  Prefactor     .74476        .19613        .29289E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95403e-11
Minuit parameter uncertainties:
  1  8.8711e-05
  2  4.84324
  3  0.221226
  4  0.196318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/292056': 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) = 6842.92312515
delta logL = 8.85702320375e-08

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.871e-05  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.251e+00  4.843e+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.448e-01  1.963e-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.440e+00  2.212e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/292056/cmap_HighResolution_508636801_508896001_4FGL_J1203.3+1119_daily_bin1039.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='6.10e-08', time_completed='2021-09-04 22:31:04.264808', job_id='292056', GAL2='0.74', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630819864.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='8.86e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1039' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:31:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 292056: <4FGL_J1203.3+1119_daily_bin1039> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1039 180.833 11.3231 508636801 508896001 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 :                                   817.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

