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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1002
RA = 203.323, Dec = 27.4221
tmin = 499046401, tmax = 499305601
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='771905', job_status='RUN', time_executed='2021-09-08 03:16:58.346783', time_epoch_executed='1631096218.35' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771905

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771905/ft1_4FGL_J1333.2+2725_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771905/ft2_4FGL_J1333.2+2725_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771905/ft1_4FGL_J1333.2+2725_daily_bin1002.fits outfile=/scratch/kocevski/771905/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1002.fits ra=203.323 dec=27.4221 rad=12.0 tmin=499046401.0 tmax=499305601.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.38
user 4.14
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/771905/ft2_4FGL_J1333.2+2725_daily_bin1002.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/771905/ft2_4FGL_J1333.2+2725_daily_bin1002.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/771905/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1002.fits evtable="EVENTS" outfile="/scratch/kocevski/771905/ft1_filtered_4FGL_J1333.2+2725_daily_bin1002.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.54
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/771905/ft1_filtered_4FGL_J1333.2+2725_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/771905/ft2_4FGL_J1333.2+2725_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/771905/ltcube_499046401_499305601_4FGL_J1333.2+2725_daily_bin1002.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/771905/ft2_4FGL_J1333.2+2725_daily_bin1002.fits
.....................!
real 18.88
user 18.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771905/ft1_filtered_4FGL_J1333.2+2725_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/771905/ft2_4FGL_J1333.2+2725_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/771905/ltcube_499046401_499305601_4FGL_J1333.2+2725_daily_bin1002.fits outfile=/scratch/kocevski/771905/expmap_499046401_499305601_4FGL_J1333.2+2725_daily_bin1002.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/771905/ltcube_499046401_499305601_4FGL_J1333.2+2725_daily_bin1002.fits
.....................!
real 196.42
user 191.00
sys 4.83

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J1333.2+2725 @ 203.323 27.4221

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/771905/ft1_filtered_4FGL_J1333.2+2725_daily_bin1002.fits scfile=/scratch/kocevski/771905/ft2_4FGL_J1333.2+2725_daily_bin1002.fits outfile=/scratch/kocevski/771905/cmap_499046401_499305601_4FGL_J1333.2+2725_daily_bin1002.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=203.323 yref=27.4221 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.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771905/ft1_filtered_4FGL_J1333.2+2725_daily_bin1002.fits scfile=/scratch/kocevski/771905/ft2_4FGL_J1333.2+2725_daily_bin1002.fits outfile=/scratch/kocevski/771905/cmap_HighResolution_499046401_499305601_4FGL_J1333.2+2725_daily_bin1002.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=203.323 yref=27.4221 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/771905/ft1_filtered_4FGL_J1333.2+2725_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/771905/ft2_4FGL_J1333.2+2725_daily_bin1002.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/771905/Model_4FGL_J1333.2+2725_daily_bin1002.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/771905/ft1_filtered_4FGL_J1333.2+2725_daily_bin1002.fits.....................!
real 47.41
user 45.85
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/771905/ft1_filtered_4FGL_J1333.2+2725_daily_bin1002.fits', '/scratch/kocevski/771905/ft2_4FGL_J1333.2+2725_daily_bin1002.fits', expMap='/scratch/kocevski/771905/expmap_499046401_499305601_4FGL_J1333.2+2725_daily_bin1002.fits', expCube='/scratch/kocevski/771905/ltcube_499046401_499305601_4FGL_J1333.2+2725_daily_bin1002.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/771905/Model_4FGL_J1333.2+2725_daily_bin1002.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1333.2+2725'

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  6.668e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/771905/ft1_filtered_4FGL_J1333.2+2725_daily_bin1002.fits
Spacecraft file(s): /scratch/kocevski/771905/ft2_4FGL_J1333.2+2725_daily_bin1002.fits
Exposure map: /scratch/kocevski/771905/expmap_499046401_499305601_4FGL_J1333.2+2725_daily_bin1002.fits
Exposure cube: /scratch/kocevski/771905/ltcube_499046401_499305601_4FGL_J1333.2+2725_daily_bin1002.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/771905/Model_4FGL_J1333.2+2725_daily_bin1002.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) = 5631.89428337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.908       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5358       1.0000         .10000E-03   10000.    
     3 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.410       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8651       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.471       1.0000         .10000E-03   10000.    
     7 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10505E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .17789E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.853       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .92169       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .30525E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0862       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9137       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.091       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5115       1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.140       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8974       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3658       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .75007E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .58890       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4632       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5631.874     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2658 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.897        58.637        .16685E-05   -.30176E-04
   2  Prefactor     1.5348        12.496        .57220E-05   -.29096E-03
   3  norm          .10000E-03    6.6036        .18701E-06** at limit **
   4  Prefactor     13.427        28.784       -.36939E-06   -.30151E-03
   5  norm          1.8650        2.2071       -.50585E-07   -.54262E-04
   6  Prefactor     15.474        22.846        .25849E-06   -.51502E-04
   7  norm          .10000E-03    7.2013       -.10974E-06** at limit **
   8  norm          .10000E-03    1.8738        .46458E-06** at limit **
   9  norm          .10000E-03    3.9334        .34427E-07** at limit **
  10  norm          16.840        19.363       -.36901E-06   -.13552E-03
  11  Prefactor     .92454        5.3196        .46168E-06   -.19687E-03
  12  Prefactor     .10000E-03    6.8147       -.23447E-06** at limit **
  13  norm          .10001E-03    9.4429        .40318E-05** at limit **
  14  Prefactor     5.0791        139.29        .15815E-05   -.11945E-04
  15  norm          2.8913        9.5972       -.37126E-05   -.40242E-03
  16  Prefactor     19.096        19.679        .29561E-07   -.91044E-04
  17  Prefactor     8.5107        27.691        .57418E-06   -.33572E-04
  18  Prefactor     54.097        110.16        .42638E-05    .12121E-04
  19  Prefactor     4.8976        4.0618        .25533E-06   -.18246E-03
  20  Prefactor     2.3678        19.218        .38166E-05   -.95482E-04
  21  Prefactor     .82778E-01    1.9486       -.70038E-06    .20180E-03
  22  Normalizat    .58864        .19570       -.20425E-06   -.28322E-03
  23  Prefactor     1.4634        .19708       -.12515E-05   -.51049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.8966
  Prefactor  = 1.53477
  norm       = 0.000100005
  Prefactor  = 13.4269
  norm       = 1.86503
  Prefactor  = 15.4741
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.000100001
  norm       = 16.8402
  Prefactor  = 0.924538
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 5.07906
  norm       = 2.89126
  Prefactor  = 19.0958
  Prefactor  = 8.51074
  Prefactor  = 54.0972
  Prefactor  = 4.89764
  Prefactor  = 2.36782
  Prefactor  = 0.0827784
  Normalizat = 0.588637
  Prefactor  = 1.46343
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.874     FROM HESSE     STATUS=OK           382 CALLS     3040 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.897        58.315        .72070E-04   -1.4596    
   2  Prefactor     1.5348        12.818        .17211E-02   -1.5460    
   3  norm          .10000E-03    6.9291        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.427        28.617        .10938E-03   -1.4975    
   5  norm          1.8650        2.2017        .11794E-03   -1.5435    
   6  Prefactor     15.474        22.559        .10183E-03   -1.4921    
   7  norm          .10000E-03    7.3366        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8343        .18978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    28.836        .27847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.840        19.305        .97562E-04   -1.4887    
  11  Prefactor     .92454        4.6357        .26700E-03   -1.5516    
  12  Prefactor     .10000E-03    6.8165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    49.325        .37783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.0791        126.01        .17828E-03   -1.5257    
  15  norm          2.8913        9.7709        .23802E-03   -1.5368    
  16  Prefactor     19.096        19.620        .91666E-04   -1.4834    
  17  Prefactor     8.5107        27.597        .13740E-03   -1.5124    
  18  Prefactor     54.097        109.72        .54513E-04   -1.4236    
  19  Prefactor     4.8976        4.0734        .65223E-03   -1.5265    
  20  Prefactor     2.3678        19.583        .13321E-02   -1.5400    
  21  Prefactor     .82778E-01    16.429        .19464E-02   -1.5650    
  22  Normalizat    .58864        .23104        .30181E-03   -1.0847    
  23  Prefactor     1.4634        .23383        .21788E-03   -.78569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28825e-09
Minuit parameter uncertainties:
  1  58.4233
  2  8.87296
  3  0.000359393
  4  28.6465
  5  2.20183
  6  22.571
  7  0.000104472
  8  0.000120939
  9  0.000311626
  10  19.3123
  11  4.14074
  12  2.01196e-05
  13  0.00129641
  14  50.7156
  15  9.7763
  16  19.627
  17  27.6379
  18  110.132
  19  4.07366
  20  13.6248
  21  2.33157
  22  0.231415
  23  0.234002
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  8.511e+00  2.764e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.463e+00  2.340e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  5.886e-01  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 203.323 27.422
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/771905/likelihoodResults_499046401_499305601_4FGL_J1333.2+2725_daily_bin1002.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) = 5631.70550032
delta logL = 0.168264701858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5631.69407751
delta logL = 0.1796875073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3259       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1199       1.0000          .0000       10.000    
     3 'Normalizat'    .55533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4841       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5631.694     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      221 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3259        354.76        .37047E-02    .50036E-03
   2  Index         3.1200        6.5597        .16291        .92729E-04
   3  Normalizat    .55534        .52437E-01    .70088E-01    .31231E-04
   4  Prefactor     1.4841        .53325E-01    .48989E-01   -.28979E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.32588
  Index      = 3.11996
  Normalizat = 0.555337
  Prefactor  = 1.48414
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.694     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3259        23.532        .14819E-03   -1.5167    
   2  Index         3.1200        1.7553        .89489E-02   -.38548    
   3  Normalizat    .55534        .21909        .31025E-03   -1.0992    
   4  Prefactor     1.4841        .23188        .21656E-03   -.77985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33089e-08
Minuit parameter uncertainties:
  1  23.5621
  2  1.80021
  3  0.219434
  4  0.232043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771905': 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) = 5631.6940775
delta logL = 0.179687518336

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  7.326e+00  2.356e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.120e+00  1.800e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.484e+00  2.320e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  5.553e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 203.323 27.422

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/771905/cmap_HighResolution_499046401_499305601_4FGL_J1333.2+2725_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-08 03:27:24.108834', job_id='771905', GAL2='1.48', fit_tolerance='1e-08', EG2='0.56', EG='0.59', time_epoch_completed='1631096844.11', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='1.80e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1002' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:27:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 771905: <4FGL_J1333.2+2725_daily_bin1002> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1002> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 03:15:31 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:16:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 03:16:33 2021
Terminated at Wed Sep  8 03:27:24 2021
Results reported at Wed Sep  8 03:27:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1002 203.323 27.4221 499046401 499305601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1333.2+2725 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   623.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            713 sec.

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

