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


Performing analysis on: 4FGL_J1203.3+1119_daily_bin1290
RA = 180.833, Dec = 11.3231
tmin = 573696001, tmax = 573955201
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='293316', job_status='RUN', time_executed='2021-09-04 22:24:37.256199', time_epoch_executed='1630819477.26' WHERE source_name='4FGL J1203.3+1119' and cadence='daily' and bin_id='1290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293316

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293316/ft1_4FGL_J1203.3+1119_daily_bin1290.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293316/ft2_4FGL_J1203.3+1119_daily_bin1290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293316/ft1_4FGL_J1203.3+1119_daily_bin1290.fits outfile=/scratch/kocevski/293316/ft1_filteredMKT_4FGL_J1203.3+1119_daily_bin1290.fits ra=180.833 dec=11.3231 rad=12.0 tmin=573696001.0 tmax=573955201.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.46
user 4.20
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293316/ft1_filtered_4FGL_J1203.3+1119_daily_bin1290.fits" evtable="EVENTS" scfile=/scratch/kocevski/293316/ft2_4FGL_J1203.3+1119_daily_bin1290.fits sctable="SC_DATA" outfile=/scratch/kocevski/293316/ltcube_573696001_573955201_4FGL_J1203.3+1119_daily_bin1290.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/293316/ft2_4FGL_J1203.3+1119_daily_bin1290.fits
.....................!
real 13.93
user 13.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293316/ft1_filtered_4FGL_J1203.3+1119_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/293316/ft2_4FGL_J1203.3+1119_daily_bin1290.fits sctable="SC_DATA" expcube=/scratch/kocevski/293316/ltcube_573696001_573955201_4FGL_J1203.3+1119_daily_bin1290.fits outfile=/scratch/kocevski/293316/expmap_573696001_573955201_4FGL_J1203.3+1119_daily_bin1290.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/293316/ltcube_573696001_573955201_4FGL_J1203.3+1119_daily_bin1290.fits
.....................!
real 191.13
user 186.66
sys 4.09

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/293316/ft1_filtered_4FGL_J1203.3+1119_daily_bin1290.fits scfile=/scratch/kocevski/293316/ft2_4FGL_J1203.3+1119_daily_bin1290.fits outfile=/scratch/kocevski/293316/cmap_573696001_573955201_4FGL_J1203.3+1119_daily_bin1290.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.57
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.165       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8792       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5535       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33814E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12902E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6292       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.860       1.0000         .10000E-03   10000.    
    17 'norm      '    .85683E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    23.795       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .80531       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.001       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4386       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2274       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94865       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=   5707.514     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3114 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.163        13.380       -.77756E-06   -.94525E-05
   2  Prefactor     .10000E-03    42.975       -.37834E-05** at limit **
   3  Prefactor     1.8837        12.652       -.25981E-05   -.24027E-03
   4  Prefactor     .10000E-03    6.4668       -.16446E-06** at limit **
   5  Prefactor     .10000E-03    80.547       -.45093E-04** at limit **
   6  Prefactor     2.5529        5.5486       -.81060E-06   -.34424E-03
   7  Prefactor     .10000E-03    3.4409       -.80476E-07** at limit **
   8  Prefactor     .10000E-03    7.8330        .45938E-06** at limit **
   9  Prefactor     .10000E-03    2.4608       -.40034E-06** at limit **
  10  Prefactor     .10000E-03    51.450        .25046E-04** at limit **
  11  Prefactor     .10000E-03    46.083        .98310E-05** at limit **
  12  Prefactor     .10121E-03    1.7234       -.14837E-05** at limit **
  13  Prefactor     4.6315        5.1812        .16309E-05    .90224E-03
  14  Prefactor     .10000E-03    19.004        .13981E-04** at limit **
  15  norm          .10000E-03    2.0043       -.55379E-06** at limit **
  16  Prefactor     24.856        29.945       -.24535E-05    .12460E-04
  17  norm          .85678E-01    .29033       -.21534E-06   -.52251E-03
  18  norm          23.798        26.615        .19339E-05    .65808E-04
  19  Prefactor     .10000E-03    55.876        .29691E-04** at limit **
  20  norm          .80538        .65275       -.81280E-07    .13175E-03
  21  Prefactor     .10000E-03    3.7946        .22163E-06** at limit **
  22  Prefactor     22.988        38.894       -.15470E-04    .45500E-04
  23  norm          1.4385        1.4745       -.10927E-06   -.17308E-03
  24  Prefactor     .10000E-03    20.713       -.12300E-04** at limit **
  25  Normalizat    1.2274        .20530        .17585E-05    .45285E-03
  26  Prefactor     .94861        .17883        .81683E-06    .44526E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1625
  Prefactor  = 0.0001
  Prefactor  = 1.88372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.55285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101215
  Prefactor  = 4.63149
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 24.8559
  norm       = 0.0856785
  norm       = 23.7979
  Prefactor  = 0.0001
  norm       = 0.805379
  Prefactor  = 0.0001
  Prefactor  = 22.988
  norm       = 1.43847
  Prefactor  = 0.0001
  Normalizat = 1.22743
  Prefactor  = 0.948614
 **********
 **   18 **HESSE 
 **********

 FCN=   5707.514     FROM HESSE     STATUS=OK           458 CALLS     3572 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.163        13.379        .12568E-03   -1.5070    
   2  Prefactor     .10000E-03    43.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8837        12.662        .30371E-03   -1.5433    
   4  Prefactor     .10000E-03    6.4674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    80.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5529        5.5314        .25542E-03   -1.5388    
   7  Prefactor     .10000E-03    3.4684        .13685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1444        .22821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    51.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    46.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10121E-03    39.576        .17505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6315        4.8403        .15559E-03   -1.5278    
  14  Prefactor     .10000E-03    19.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.223        .19146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.856        29.940        .80342E-04   -1.4710    
  17  norm          .85678E-01    .29010        .37771E-04   -1.5649    
  18  norm          23.798        26.321        .82117E-04   -1.4732    
  19  Prefactor     .10000E-03    55.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .80538        .61065        .49636E-03   -1.5528    
  21  Prefactor     .10000E-03    3.7973        .14371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.988        38.967        .83521E-04   -1.4749    
  23  norm          1.4385        1.4544        .88842E-04   -1.5468    
  24  Prefactor     .10000E-03    20.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2274        .24158        .25270E-03   -.85759    
  26  Prefactor     .94861        .21072        .25537E-03   -.94463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94231e-08
Minuit parameter uncertainties:
  1  13.3834
  2  5.18113e-05
  3  9.7703
  4  1.79274e-06
  5  4.52771e-05
  6  5.53249
  7  6.57645e-06
  8  1.01656e-05
  9  0.000149503
  10  2.91101e-05
  11  9.29839e-05
  12  0.0138776
  13  4.84066
  14  4.24974e-05
  15  0.000313717
  16  29.9585
  17  0.290105
  18  26.3343
  19  6.02549e-06
  20  0.610654
  21  2.68175e-05
  22  39.0098
  23  1.45446
  24  1.12566e-05
  25  0.241799
  26  0.210906
Done.

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

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.911e-05  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:  9.486e-01  2.109e-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.227e+00  2.418e-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: 7.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293316/likelihoodResults_573696001_573955201_4FGL_J1203.3+1119_daily_bin1290.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) = 5707.51401141
delta logL = -9.26491684368e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5707.51392148
delta logL = -2.7200594559e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26830E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5511       1.0000          .0000       10.000    
     3 'Normalizat'    1.2274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94861       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=   5707.514     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      273 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10354E-03    13.644        .21436E-01** at limit **
   2  Index         2.5077        5.4112        .50000        .99479E-05
   3  Normalizat    1.2274        .29572E-02    .25270E-03    .60600E-04
   4  Prefactor     .94861        .26801E-02    .25537E-03   -.88147E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103536
  Index      = 2.5077
  Normalizat = 1.22743
  Prefactor  = 0.948612
 **********
 **   18 **HESSE 
 **********

 FCN=   5707.514     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10354E-03    93.586        .42872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5077        6.0016        .50000       -.52182    
   3  Normalizat    1.2274        .77521E-02    .10108E-04   -.85759    
   4  Prefactor     .94861        .70257E-02    .10215E-04   -.94463    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42716e-09
Minuit parameter uncertainties:
  1  0.0364414
  2  216.042
  3  0.00775207
  4  0.00702572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293316': 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) = 5707.51391911
delta logL = -3.48880348611e-07

Extracting fit parameters...

4FGL J1203.3+1119
   Spectrum: PowerLaw
314    Prefactor:  1.035e-04  3.644e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.508e+00  2.160e+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:  9.486e-01  7.026e-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.227e+00  7.752e-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/293316/cmap_HighResolution_573696001_573955201_4FGL_J1203.3+1119_daily_bin1290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-04 22:37:05.279601', job_id='293316', GAL2='0.95', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630820225.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-3.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1290' AND source_name='4FGL J1203.3+1119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:37:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 293316: <4FGL_J1203.3+1119_daily_bin1290> in cluster <slac> Done

Job <4FGL_J1203.3+1119_daily_bin1290> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 22:20:32 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:20:33 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:33 2021
Terminated at Sat Sep  4 22:37:06 2021
Results reported at Sat Sep  4 22:37:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1203.3+1119_daily_bin1290 180.833 11.3231 573696001 573955201 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 :                                   736.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

