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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin5
RA = 180.833, Dec = 11.3231
tmin = 240624001, tmax = 240883201
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='285481', job_status='RUN', time_executed='2021-09-04 21:58:10.133289', time_epoch_executed='1630817890.13' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285481

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285481/ft1_4FGL_J1203.3+1119_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285481/ft2_4FGL_J1203.3+1119_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285481/ft1_4FGL_J1203.3+1119_daily_bin5.fits outfile=/scratch/kocevski/285481/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin5.fits ra=180.833 dec=11.3231 rad=12.0 tmin=240624001.0 tmax=240883201.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.61
user 1.22
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285481/ft1_filtered_4FGL_J1203.3+1119_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/285481/ft2_4FGL_J1203.3+1119_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/285481/ltcube_240624001_240883201_4FGL_J1203.3+1119_daily_bin5.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/285481/ft2_4FGL_J1203.3+1119_daily_bin5.fits
.....................!
real 13.53
user 12.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285481/ft1_filtered_4FGL_J1203.3+1119_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/285481/ft2_4FGL_J1203.3+1119_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/285481/ltcube_240624001_240883201_4FGL_J1203.3+1119_daily_bin5.fits outfile=/scratch/kocevski/285481/expmap_240624001_240883201_4FGL_J1203.3+1119_daily_bin5.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/285481/ltcube_240624001_240883201_4FGL_J1203.3+1119_daily_bin5.fits
.....................!
real 192.26
user 185.56
sys 5.37

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/285481/ft1_filtered_4FGL_J1203.3+1119_daily_bin5.fits scfile=/scratch/kocevski/285481/ft2_4FGL_J1203.3+1119_daily_bin5.fits outfile=/scratch/kocevski/285481/cmap_240624001_240883201_4FGL_J1203.3+1119_daily_bin5.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.54
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285481/ft1_filtered_4FGL_J1203.3+1119_daily_bin5.fits scfile=/scratch/kocevski/285481/ft2_4FGL_J1203.3+1119_daily_bin5.fits outfile=/scratch/kocevski/285481/cmap_HighResolution_240624001_240883201_4FGL_J1203.3+1119_daily_bin5.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11124E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9342       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7337       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.891       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2724       1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.268       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.053       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7949       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .33388       1.0000         .10000E-03   10000.    
    18 'norm      '    19.490       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17249E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3996       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97802       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1044       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=   6104.136     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3175 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    70.904       -.18848E-04** at limit **
   2  Prefactor     .10000E-03    45.083        .39220E-06** at limit **
   3  Prefactor     .10000E-03    9.5170        .57220E-06** at limit **
   4  Prefactor     .10000E-03    6.5684        .41695E-07** at limit **
   5  Prefactor     2.0819        347.51        .23901E-05   -.17306E-04
   6  Prefactor     .10001E-03    17.319       -.74407E-06** at limit **
   7  Prefactor     2.7352        6.4411       -.30242E-06    .26674E-03
   8  Prefactor     22.893        18.855        .23833E-06    .26632E-04
   9  Prefactor     3.2744        4.3894       -.55909E-08    .19150E-03
  10  Prefactor     43.290        80.087        .66235E-06    .10547E-04
  11  Prefactor     16.046        34.662       -.19841E-06    .77576E-04
  12  Prefactor     1.7947        2.4326       -.31322E-06   -.26604E-03
  13  Prefactor     .10000E-03    1.6158        .14622E-05** at limit **
  14  Prefactor     .10000E-03    19.647        .23791E-06** at limit **
  15  norm          .10000E-03    1.6166        .68241E-06** at limit **
  16  Prefactor     .10000E-03    12.184        .52344E-07** at limit **
  17  norm          .33389        .18421        .90123E-08   -.22621E-03
  18  norm          19.487        32.619       -.12162E-05   -.21135E-03
  19  Prefactor     .10000E-03    146.87       -.11510E-05** at limit **
  20  norm          3.3994        .75438       -.40608E-07   -.27585E-02
  21  Prefactor     .10000E-03    5.6888        .28601E-06** at limit **
  22  Prefactor     .10000E-03    11.722        .36850E-06** at limit **
  23  norm          .10000E-03    .72354       -.27628E-07** at limit **
  24  Prefactor     .10000E-03    16.392        .15311E-07** at limit **
  25  Normalizat    .97790        .18878       -.14058E-05   -.28526E-03
  26  Prefactor     1.1043        .17141       -.76825E-06   -.32072E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.08194
  Prefactor  = 0.000100006
  Prefactor  = 2.73518
  Prefactor  = 22.8932
  Prefactor  = 3.27439
  Prefactor  = 43.2899
  Prefactor  = 16.0456
  Prefactor  = 1.79473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.333888
  norm       = 19.4875
  Prefactor  = 0.0001
  norm       = 3.39938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.977904
  Prefactor  = 1.1043
 **********
 **   18 **HESSE 
 **********

 FCN=   6104.136     FROM HESSE     STATUS=OK           452 CALLS     3627 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    70.582        .48184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.7962        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0819        338.21        .29860E-03   -1.5419    
   6  Prefactor     .10001E-03    17.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7352        6.3696        .24627E-03   -1.5377    
   8  Prefactor     22.893        18.869        .83719E-04   -1.4751    
   9  Prefactor     3.2744        4.3562        .17697E-03   -1.5346    
  10  Prefactor     43.290        80.024        .60946E-04   -1.4391    
  11  Prefactor     16.046        34.488        .99963E-04   -1.4907    
  12  Prefactor     1.7947        2.3512        .13105E-03   -1.5440    
  13  Prefactor     .10000E-03   10.0000        .17397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6020        .18661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33389        .18290        .24222E-04   -1.5592    
  18  norm          19.487        31.998        .90723E-04   -1.4825    
  19  Prefactor     .10000E-03    147.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3994        .75285        .30012E-04   -1.5339    
  21  Prefactor     .10000E-03    5.7446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.4057        .12838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .97790        .22151        .26801E-03   -.93774    
  26  Prefactor     1.1043        .20193        .23852E-03   -.89329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27148e-09
Minuit parameter uncertainties:
  1  0.00137731
  2  9.12041e-05
  3  3.19166e-05
  4  7.97433e-06
  5  53.3795
  6  0.000637499
  7  6.37118
  8  18.8741
  9  4.35657
  10  80.2236
  11  34.5311
  12  2.3513
  13  2.83173e-05
  14  7.84778e-05
  15  5.90425e-05
  16  1.39901e-05
  17  0.182898
  18  32.0262
  19  0.00027912
  20  0.752848
  21  1.07186e-05
  22  2.24112e-05
  23  2.10393e-05
  24  3.16257e-06
  25  0.221718
  26  0.202066
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  4.329e+01  8.022e+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.104e+00  2.021e-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:  9.779e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/285481/likelihoodResults_240624001_240883201_4FGL_J1203.3+1119_daily_bin5.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) = 6104.11823288
delta logL = 0.0172697087073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6104.11147342
delta logL = 0.0240291650134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.046       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0713       1.0000          .0000       10.000    
     3 'Normalizat'    .98371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1008       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=   6104.111     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      269 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.055        98.728        .54560E-04   -.84932E-04
   2  Index         2.0709        1.1743        .11822E-01   -.72924E-04
   3  Normalizat    .98362        .21402        .26734E-03    .52039E-03
   4  Prefactor     1.1009        .20080        .23883E-03    .41652E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.0551
  Index      = 2.07087
  Normalizat = 0.983621
  Prefactor  = 1.1009
 **********
 **   18 **HESSE 
 **********

 FCN=   6104.111     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.055        96.696        .10912E-04   -1.4236    
   2  Index         2.0709        1.1503        .47288E-03   -.62590    
   3  Normalizat    .98362        .21404        .53467E-04   -.93581    
   4  Prefactor     1.1009        .20090        .47767E-04   -.89438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00529e-09
Minuit parameter uncertainties:
  1  96.9785
  2  1.16633
  3  0.214227
  4  0.201035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285481': 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) = 6104.1114732
delta logL = 0.0240293799097

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  5.406e+01  9.698e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.071e+00  1.166e+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.101e+00  2.010e-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:  9.836e-01  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/285481/cmap_HighResolution_240624001_240883201_4FGL_J1203.3+1119_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', job_status='DONE', photon_flux_upper_limit='9.72e-08', time_completed='2021-09-04 22:11:01.538248', job_id='285481', GAL2='1.10', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630818661.54', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.40e-02', ts2='0.47', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='5' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:11:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 285481: <4FGL_J1203.3+1119_daily_bin5> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin5 180.833 11.3231 240624001 240883201 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 :                                   769.00 sec.
    Max Memory :                                 1010 MB
    Average Memory :                             280.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

