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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1435
RA = 180.833, Dec = 11.3231
tmin = 611280001, tmax = 611539201
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='293540', job_status='RUN', time_executed='2021-09-04 22:23:11.813014', time_epoch_executed='1630819391.81' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293540

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293540/ft1_4FGL_J1203.3+1119_daily_bin1435.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293540/ft2_4FGL_J1203.3+1119_daily_bin1435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293540/ft1_4FGL_J1203.3+1119_daily_bin1435.fits outfile=/scratch/kocevski/293540/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1435.fits ra=180.833 dec=11.3231 rad=12.0 tmin=611280001.0 tmax=611539201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.44
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293540/ft1_filtered_4FGL_J1203.3+1119_daily_bin1435.fits" evtable="EVENTS" scfile=/scratch/kocevski/293540/ft2_4FGL_J1203.3+1119_daily_bin1435.fits sctable="SC_DATA" outfile=/scratch/kocevski/293540/ltcube_611280001_611539201_4FGL_J1203.3+1119_daily_bin1435.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/293540/ft2_4FGL_J1203.3+1119_daily_bin1435.fits
.....................!
real 12.06
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293540/ft1_filtered_4FGL_J1203.3+1119_daily_bin1435.fits evtable="EVENTS" scfile=/scratch/kocevski/293540/ft2_4FGL_J1203.3+1119_daily_bin1435.fits sctable="SC_DATA" expcube=/scratch/kocevski/293540/ltcube_611280001_611539201_4FGL_J1203.3+1119_daily_bin1435.fits outfile=/scratch/kocevski/293540/expmap_611280001_611539201_4FGL_J1203.3+1119_daily_bin1435.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/293540/ltcube_611280001_611539201_4FGL_J1203.3+1119_daily_bin1435.fits
.....................!
real 192.07
user 186.93
sys 4.76

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/293540/ft1_filtered_4FGL_J1203.3+1119_daily_bin1435.fits scfile=/scratch/kocevski/293540/ft2_4FGL_J1203.3+1119_daily_bin1435.fits outfile=/scratch/kocevski/293540/cmap_611280001_611539201_4FGL_J1203.3+1119_daily_bin1435.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.75
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293540/ft1_filtered_4FGL_J1203.3+1119_daily_bin1435.fits scfile=/scratch/kocevski/293540/ft2_4FGL_J1203.3+1119_daily_bin1435.fits outfile=/scratch/kocevski/293540/cmap_HighResolution_611280001_611539201_4FGL_J1203.3+1119_daily_bin1435.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.91
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.465       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8845       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60267E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11294E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3042       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10235E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1549       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.301       1.0000         .10000E-03   10000.    
    17 'norm      '    .92136E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9061       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.682       1.0000         .10000E-03   10000.    
    23 'norm      '    2.1188       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3127       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75045       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=   5173.710     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3136 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.1410        .44728E-07** at limit **
   2  Prefactor     .10000E-03    68.362        .67172E-06** at limit **
   3  Prefactor     .10000E-03    5.8523        .99915E-07** at limit **
   4  Prefactor     .10000E-03    10.291        .39587E-07** at limit **
   5  Prefactor     25.448        91.902       -.26092E-05    .40835E-05
   6  Prefactor     1.8702        23.782        .14982E-04    .15847E-03
   7  Prefactor     .10000E-03    6.4013        .61715E-07** at limit **
   8  Prefactor     .10080E-03    21.107       -.84512E-05** at limit **
   9  Prefactor     .10000E-03    2.2714        .49941E-06** at limit **
  10  Prefactor     .10001E-03    153.56       -.21778E-05** at limit **
  11  Prefactor     .10000E-03    87.096       -.78333E-06** at limit **
  12  Prefactor     4.3051        2.6630       -.59379E-07   -.29678E-03
  13  Prefactor     .10003E-03    1.5995       -.12021E-05** at limit **
  14  Prefactor     .10000E-03    10.599       -.50919E-07** at limit **
  15  norm          3.1552        3.5216        .17744E-06    .20320E-03
  16  Prefactor     23.298        33.610        .36435E-06    .12295E-04
  17  norm          .92186E-01    .17856        .62453E-07    .73057E-03
  18  norm          .10000E-03    16.813        .98679E-07** at limit **
  19  Prefactor     .10000E-03    42.992       -.30990E-06** at limit **
  20  norm          1.9061        .78697        .19349E-07    .20092E-03
  21  Prefactor     .10000E-03    6.0632       -.65695E-06** at limit **
  22  Prefactor     24.679        23.073        .59769E-07   -.43564E-04
  23  norm          2.1188        1.4156        .23789E-07    .23234E-04
  24  Prefactor     .10000E-03    15.953       -.13481E-06** at limit **
  25  Normalizat    1.3127        .19965       -.47566E-06    .79350E-04
  26  Prefactor     .75038        .17737       -.13513E-05   -.40905E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4482
  Prefactor  = 1.87016
  Prefactor  = 0.0001
  Prefactor  = 0.000100804
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100003
  Prefactor  = 4.30514
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  norm       = 3.15525
  Prefactor  = 23.2976
  norm       = 0.0921861
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9061
  Prefactor  = 0.0001
  Prefactor  = 24.6787
  norm       = 2.11879
  Prefactor  = 0.0001
  Normalizat = 1.31272
  Prefactor  = 0.75038
 **********
 **   18 **HESSE 
 **********

 FCN=   5173.710     FROM HESSE     STATUS=OK           468 CALLS     3604 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1679        .17408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    69.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8971        .16992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.448        92.345        .79383E-04   -1.4699    
   6  Prefactor     1.8702        25.417        .15160E-02   -1.5434    
   7  Prefactor     .10000E-03    6.4619        .17771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10080E-03    16.651        .78970E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3225        .20866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    154.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    88.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3051        2.5751        .85444E-04   -1.5293    
  13  Prefactor     .10003E-03    17.969        .15835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1552        3.5131        .12972E-03   -1.5353    
  16  Prefactor     23.298        33.617        .82982E-04   -1.4742    
  17  norm          .92186E-01    .15555        .40690E-03   -1.5647    
  18  norm          .10000E-03    16.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9061        .78213        .37463E-04   -1.5432    
  21  Prefactor     .10000E-03    28.690        .33362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.679        22.510        .80629E-04   -1.4714    
  23  norm          2.1188        1.4188        .67656E-04   -1.5417    
  24  Prefactor     .10000E-03    15.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3127        .23229        .22770E-03   -.83187    
  26  Prefactor     .75038        .20711        .26772E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51116e-09
Minuit parameter uncertainties:
  1  9.13451e-06
  2  0.00101571
  3  2.03894e-05
  4  2.12663e-06
  5  92.8703
  6  13.7956
  7  1.27838e-05
  8  0.00732013
  9  7.87543e-05
  10  0.00234228
  11  0.00103735
  12  2.57521
  13  0.00146522
  14  3.14658e-06
  15  3.51329
  16  33.6441
  17  0.155548
  18  3.0524e-05
  19  0.000129591
  20  0.78213
  21  0.000193207
  22  22.5176
  23  1.41878
  24  4.99386e-05
  25  0.232478
  26  0.207323
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.342e-03  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.504e-01  2.073e-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.313e+00  2.325e-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.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293540/likelihoodResults_611280001_611539201_4FGL_J1203.3+1119_daily_bin1435.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) = 5173.71039801
delta logL = -3.07975151372e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5173.71036732
delta logL = -1.10644577944e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5184       1.0000          .0000       10.000    
     3 'Normalizat'    1.3127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75038       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=   5173.710     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      242 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    89.039        .90712E-02** at limit **
   2  Index         2.4746        8.7605        .50000        .28160E-05
   3  Normalizat    1.3127        .40732E-02    .51501E-01   -.11138E-03
   4  Prefactor     .75038        .37505E-02    .43068E-01   -.10066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47459
  Normalizat = 1.31272
  Prefactor  = 0.750383
 **********
 **   18 **HESSE 
 **********

 FCN=   5173.710     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    524.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4746        7.7023        .50000       -.52948    
   3  Normalizat    1.3127        .99738E-02    .22770E-03   -.83187    
   4  Prefactor     .75038        .91826E-02    .26772E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.12856e-08
Minuit parameter uncertainties:
  1  0.000790082
  2  374.666
  3  0.00997386
  4  0.00918258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293540': 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): 102
logL (Free Index) = 5173.71036728
delta logL = -6.64103936288e-08

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  7.901e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.475e+00  3.747e+02  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.504e-01  9.183e-03  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.313e+00  9.974e-03  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/293540/cmap_HighResolution_611280001_611539201_4FGL_J1203.3+1119_daily_bin1435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-09-04 22:35:06.329457', job_id='293540', GAL2='0.75', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630820106.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-6.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1435' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:35:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 293540: <4FGL_J1203.3+1119_daily_bin1435> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1435> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 22:20:49 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:20:51 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:20:51 2021
Terminated at Sat Sep  4 22:35:07 2021
Results reported at Sat Sep  4 22:35:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1435 180.833 11.3231 611280001 611539201 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 :                                   705.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            858 sec.

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

