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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1155
RA = 203.323, Dec = 27.4221
tmin = 538704001, tmax = 538963201
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='772131', job_status='RUN', time_executed='2021-09-08 03:18:11.158569', time_epoch_executed='1631096291.16' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772131/ft1_4FGL_J1333.2+2725_daily_bin1155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772131/ft2_4FGL_J1333.2+2725_daily_bin1155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772131/ft1_4FGL_J1333.2+2725_daily_bin1155.fits outfile=/scratch/kocevski/772131/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1155.fits ra=203.323 dec=27.4221 rad=12.0 tmin=538704001.0 tmax=538963201.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.59
user 3.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/772131/ft2_4FGL_J1333.2+2725_daily_bin1155.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/772131/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1155.fits evtable="EVENTS" outfile="/scratch/kocevski/772131/ft1_filtered_4FGL_J1333.2+2725_daily_bin1155.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.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772131/ft1_filtered_4FGL_J1333.2+2725_daily_bin1155.fits" evtable="EVENTS" scfile=/scratch/kocevski/772131/ft2_4FGL_J1333.2+2725_daily_bin1155.fits sctable="SC_DATA" outfile=/scratch/kocevski/772131/ltcube_538704001_538963201_4FGL_J1333.2+2725_daily_bin1155.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/772131/ft2_4FGL_J1333.2+2725_daily_bin1155.fits
.....................!
real 14.96
user 14.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772131/ft1_filtered_4FGL_J1333.2+2725_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/772131/ft2_4FGL_J1333.2+2725_daily_bin1155.fits sctable="SC_DATA" expcube=/scratch/kocevski/772131/ltcube_538704001_538963201_4FGL_J1333.2+2725_daily_bin1155.fits outfile=/scratch/kocevski/772131/expmap_538704001_538963201_4FGL_J1333.2+2725_daily_bin1155.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/772131/ltcube_538704001_538963201_4FGL_J1333.2+2725_daily_bin1155.fits
.....................!
real 191.93
user 186.13
sys 4.93

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/772131/ft1_filtered_4FGL_J1333.2+2725_daily_bin1155.fits scfile=/scratch/kocevski/772131/ft2_4FGL_J1333.2+2725_daily_bin1155.fits outfile=/scratch/kocevski/772131/cmap_538704001_538963201_4FGL_J1333.2+2725_daily_bin1155.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772131/ft1_filtered_4FGL_J1333.2+2725_daily_bin1155.fits scfile=/scratch/kocevski/772131/ft2_4FGL_J1333.2+2725_daily_bin1155.fits outfile=/scratch/kocevski/772131/cmap_HighResolution_538704001_538963201_4FGL_J1333.2+2725_daily_bin1155.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.58
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/772131/ft1_filtered_4FGL_J1333.2+2725_daily_bin1155.fits', '/scratch/kocevski/772131/ft2_4FGL_J1333.2+2725_daily_bin1155.fits', expMap='/scratch/kocevski/772131/expmap_538704001_538963201_4FGL_J1333.2+2725_daily_bin1155.fits', expCube='/scratch/kocevski/772131/ltcube_538704001_538963201_4FGL_J1333.2+2725_daily_bin1155.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/772131/Model_4FGL_J1333.2+2725_daily_bin1155.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/772131/ft1_filtered_4FGL_J1333.2+2725_daily_bin1155.fits
Spacecraft file(s): /scratch/kocevski/772131/ft2_4FGL_J1333.2+2725_daily_bin1155.fits
Exposure map: /scratch/kocevski/772131/expmap_538704001_538963201_4FGL_J1333.2+2725_daily_bin1155.fits
Exposure cube: /scratch/kocevski/772131/ltcube_538704001_538963201_4FGL_J1333.2+2725_daily_bin1155.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/772131/Model_4FGL_J1333.2+2725_daily_bin1155.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) = 5337.12713828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31362       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.3970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.199       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3793       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7870       1.0000         .10000E-03   10000.    
     9 'norm      '    .45621E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .49373       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1551       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.157       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    90.766       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5592       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28011       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .65628       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2075       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=   5337.126     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2590 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.639        .23845E-05** at limit **
   2  Prefactor     .31002        4.6859       -.62542E-06   -.98857E-04
   3  norm          .10000E-03    1.1770        .87330E-07** at limit **
   4  Prefactor     .10000E-03    8.1683        .32931E-06** at limit **
   5  norm          8.3979        4.3454       -.98333E-07   -.38023E-03
   6  Prefactor     11.198        14.612        .10282E-06   -.41930E-04
   7  norm          5.3788        4.9544        .16738E-06    .81414E-04
   8  norm          1.7779        2.8087       -.83386E-06   -.11900E-02
   9  norm          .10006E-03    21.653        .18155E-04** at limit **
  10  norm          .40895        33.109        .20156E-04   -.37922E-04
  11  Prefactor     3.1537        2.5648       -.26243E-07   -.64349E-03
  12  Prefactor     .10000E-03    4.4664        .22076E-07** at limit **
  13  norm          .10000E-03    2.5377       -.12521E-06** at limit **
  14  Prefactor     .10002E-03    67.204        .33146E-05** at limit **
  15  norm          21.158        9.6676        .23349E-06   -.23226E-03
  16  Prefactor     .10000E-03    4.7874        .24300E-07** at limit **
  17  Prefactor     .10000E-03    6.7065       -.46990E-07** at limit **
  18  Prefactor     90.748        83.653        .31736E-05   -.18904E-03
  19  Prefactor     .10000E-03    1.8445        .33969E-07** at limit **
  20  Prefactor     4.5572        11.024        .14505E-05    .30563E-03
  21  Prefactor     .27028        6.1255        .87063E-05    .37311E-03
  22  Normalizat    .65629        .16864        .40800E-06   -.55238E-03
  23  Prefactor     1.2075        .18238       -.19969E-05   -.94207E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.310016
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.39785
  Prefactor  = 11.1984
  norm       = 5.37876
  norm       = 1.7779
  norm       = 0.00010006
  norm       = 0.408953
  Prefactor  = 3.15367
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100015
  norm       = 21.1575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 90.7482
  Prefactor  = 0.0001
  Prefactor  = 4.55719
  Prefactor  = 0.270276
  Normalizat = 0.65629
  Prefactor  = 1.20754
 **********
 **   18 **HESSE 
 **********

 FCN=   5337.126     FROM HESSE     STATUS=OK           382 CALLS     2972 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .31002        44.839        .29815E-02   -1.5597    
   3  norm          .10000E-03    1.1821        .77408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.3979        4.3439        .10425E-03   -1.5128    
   6  Prefactor     11.198        14.606        .11972E-03   -1.5039    
   7  norm          5.3788        4.9475        .14601E-03   -1.5244    
   8  norm          1.7779        3.6371        .14933E-03   -1.5441    
   9  norm          .10006E-03    7.7053        .50108E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .40895        84.653        .46173E-02   -1.5580    
  11  Prefactor     3.1537        2.5576        .10004E-03   -1.5353    
  12  Prefactor     .10000E-03    4.4766        .15076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5477        .11357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    67.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.158        9.6666        .87078E-04   -1.4788    
  16  Prefactor     .10000E-03    4.8141        .15611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     90.748        84.204        .42178E-04   -1.3800    
  19  Prefactor     .10000E-03    1.8777        .96816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.5572        11.095        .18853E-03   -1.5281    
  21  Prefactor     .27028        13.812        .20996E-02   -1.5604    
  22  Normalizat    .65629        .20000        .25507E-03   -1.0564    
  23  Prefactor     1.2075        .21791        .21855E-03   -.86100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27915e-08
Minuit parameter uncertainties:
  1  0.000520508
  2  7.46123
  3  2.58368e-06
  4  1.9832e-06
  5  4.34411
  6  14.6107
  7  4.94791
  8  3.63753
  9  0.00135767
  10  11.7831
  11  2.55766
  12  2.53796e-06
  13  1.71101e-05
  14  0.00201845
  15  9.66732
  16  1.83752e-06
  17  1.25304e-05
  18  84.3153
  19  2.86278e-06
  20  11.1004
  21  3.86447
  22  0.200222
  23  0.218068
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.253e-05  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.208e+00  2.181e-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:  6.563e-01  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.323 27.422
Photon Flux Upper Limit: 4.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/772131/likelihoodResults_538704001_538963201_4FGL_J1333.2+2725_daily_bin1155.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) = 5337.12659695
delta logL = -0.000704587306245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5337.12589228
delta logL = 7.64848664403e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2971       1.0000          .0000       10.000    
     3 'Normalizat'    .65629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2076       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5337.126     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10156E-03    81.451        .18142E-02** at limit **
   2  Index         2.2299        7.3433        .50000        .18340E-04
   3  Normalizat    .65629        .13437E-01    .25507E-03    .92707E-05
   4  Prefactor     1.2075        .15271E-01    .21855E-03    .37360E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101557
  Index      = 2.22991
  Normalizat = 0.656288
  Prefactor  = 1.20755
 **********
 **   18 **HESSE 
 **********

 FCN=   5337.126     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10156E-03    338.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2299        5.5567        .50000       -.58718    
   3  Normalizat    .65629        .28731E-01    .10203E-04   -1.0564    
   4  Prefactor     1.2075        .32652E-01    .43710E-04   -.86099    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40855e-08
Minuit parameter uncertainties:
  1  0.0461959
  2  741.536
  3  0.0287319
  4  0.0326522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772131': 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) = 5337.12589205
delta logL = 3.11030817102e-07

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.016e-04  4.620e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.230e+00  7.415e+02  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.208e+00  3.265e-02  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:  6.563e-01  2.873e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/772131/cmap_HighResolution_538704001_538963201_4FGL_J1333.2+2725_daily_bin1155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-03', job_status='DONE', photon_flux_upper_limit='4.26e-08', time_completed='2021-09-08 03:28:28.251191', job_id='772131', GAL2='1.21', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1631096908.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='3.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1155' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:28:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 772131: <4FGL_J1333.2+2725_daily_bin1155> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1155> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 03:15:45 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:18:01 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:18:01 2021
Terminated at Wed Sep  8 03:28:29 2021
Results reported at Wed Sep  8 03:28:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1155 203.323 27.4221 538704001 538963201 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 :                                   599.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             301.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            764 sec.

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

