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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin41
RA = 203.323, Dec = 27.4221
tmin = 249955201, tmax = 250214401
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='764977', job_status='RUN', time_executed='2021-09-08 02:58:48.800345', time_epoch_executed='1631095128.8' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764977

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764977/ft1_4FGL_J1333.2+2725_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764977/ft2_4FGL_J1333.2+2725_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764977/ft1_4FGL_J1333.2+2725_daily_bin41.fits outfile=/scratch/kocevski/764977/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin41.fits ra=203.323 dec=27.4221 rad=12.0 tmin=249955201.0 tmax=250214401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.47
user 1.29
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764977/ft1_filtered_4FGL_J1333.2+2725_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/764977/ft2_4FGL_J1333.2+2725_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/764977/ltcube_249955201_250214401_4FGL_J1333.2+2725_daily_bin41.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/764977/ft2_4FGL_J1333.2+2725_daily_bin41.fits
.....................!
real 17.47
user 17.00
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764977/ft1_filtered_4FGL_J1333.2+2725_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/764977/ft2_4FGL_J1333.2+2725_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/764977/ltcube_249955201_250214401_4FGL_J1333.2+2725_daily_bin41.fits outfile=/scratch/kocevski/764977/expmap_249955201_250214401_4FGL_J1333.2+2725_daily_bin41.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/764977/ltcube_249955201_250214401_4FGL_J1333.2+2725_daily_bin41.fits
.....................!
real 190.95
user 185.67
sys 4.82

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/764977/ft1_filtered_4FGL_J1333.2+2725_daily_bin41.fits scfile=/scratch/kocevski/764977/ft2_4FGL_J1333.2+2725_daily_bin41.fits outfile=/scratch/kocevski/764977/cmap_249955201_250214401_4FGL_J1333.2+2725_daily_bin41.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764977/ft1_filtered_4FGL_J1333.2+2725_daily_bin41.fits scfile=/scratch/kocevski/764977/ft2_4FGL_J1333.2+2725_daily_bin41.fits outfile=/scratch/kocevski/764977/cmap_HighResolution_249955201_250214401_4FGL_J1333.2+2725_daily_bin41.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7323       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1616       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.966       1.0000         .10000E-03   10000.    
     7 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    27.266       1.0000         .10000E-03   10000.    
     9 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35115E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.292       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7203       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.814       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2542       1.0000         .10000E-03   10000.    
    18 'Prefactor '    98.969       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1692       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94071       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0364       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6713.005     FROM MIGRAD    STATUS=CONVERGED     91 CALLS     2156 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    23.909       -.16194E-05** at limit **
   2  Prefactor     9.7312        1.4041       -.14177E-06   -.47362E-02
   3  norm          .10000E-03    1.4147        .10485E-05** at limit **
   4  Prefactor     4.1662        1.3440       -.58270E-06    .71254E-03
   5  norm          .10000E-03    .92394        .30514E-05** at limit **
   6  Prefactor     10.975        1.9555       -.22800E-06   -.82080E-03
   7  norm          .10000E-03    3.8588       -.51556E-05** at limit **
   8  norm          27.271        5.4178       -.52399E-06    .19333E-02
   9  norm          .10000E-03    4.0601       -.41254E-06** at limit **
  10  norm          .10001E-03    17.362        .11422E-04** at limit **
  11  Prefactor     .10121E-03    225.23        .15063E-04** at limit **
  12  Prefactor     12.319        7.1412       -.24849E-05    .72334E-02
  13  norm          1.7205        1.9834        .12579E-05    .54316E-02
  14  Prefactor     .10013E-03    15.367       -.41149E-05** at limit **
  15  norm          .10000E-03    1.8611       -.34577E-06** at limit **
  16  Prefactor     12.814        1.0590        .11819E-06   -.82188E-03
  17  Prefactor     4.2529        1.0584        .16548E-06   -.15391E-03
  18  Prefactor     98.969        1.0029        .36121E-08   -.80239E-03
  19  Prefactor     .10000E-03    2.8671       -.28736E-05** at limit **
  20  Prefactor     2.1670        1.5250        .67641E-06   -.30783E-04
  21  Prefactor     .10000E-03    1.2122        .51615E-06** at limit **
  22  Normalizat    .94070        .18260        .60825E-05    .22810E-03
  23  Prefactor     1.0364        .19596        .16225E-06    .18151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100062
  Prefactor  = 9.73119
  norm       = 0.0001
  Prefactor  = 4.16623
  norm       = 0.0001
  Prefactor  = 10.9753
  norm       = 0.0001
  norm       = 27.271
  norm       = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.000101205
  Prefactor  = 12.3188
  norm       = 1.72049
  Prefactor  = 0.000100127
  norm       = 0.0001
  Prefactor  = 12.8135
  Prefactor  = 4.25288
  Prefactor  = 98.9689
  Prefactor  = 0.0001
  Prefactor  = 2.16696
  Prefactor  = 0.0001
  Normalizat = 0.940699
  Prefactor  = 1.03645
 **********
 **   18 **HESSE 
 **********

 FCN=   6713.005     FROM HESSE     STATUS=OK           422 CALLS     2578 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    26.114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.7312        6.6287        .32113E-02   -1.5084    
   3  norm          .10000E-03    1.4095        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1662        13.030        .49394E-02   -1.5300    
   5  norm          .10000E-03    .92004        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.975        18.457        .30246E-02   -1.5045    
   7  norm          .10000E-03    3.8429        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          27.271        5.8502        .19180E-02   -1.4663    
   9  norm          .10000E-03    4.0648        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    18.226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10121E-03    1.7657        .70931E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.319        12.201        .28563E-02   -1.5006    
  13  norm          1.7205        5.7216        .80071E-02   -1.5446    
  14  Prefactor     .10013E-03    20.913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.8589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.814        10.928        .27975E-02   -1.4992    
  17  Prefactor     4.2529        16.954        .48837E-02   -1.5295    
  18  Prefactor     98.969        76.935        .10102E-02   -1.3715    
  19  Prefactor     .10000E-03    2.7687        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.1670        14.972        .69903E-02   -1.5414    
  21  Prefactor     .10000E-03    1.2060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94070        .16394        .45420E-01   -.95044    
  23  Prefactor     1.0364        .16874        .40783E-01   -.91524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75181e-07
Minuit parameter uncertainties:
  1  0.00254074
  2  6.62924
  3  2.37038e-06
  4  13.0386
  5  6.19858e-06
  6  18.4662
  7  2.77746e-05
  8  5.85034
  9  5.18734e-06
  10  0.000817566
  11  0.00291771
  12  12.203
  13  5.72346
  14  0.00325955
  15  1.04628e-06
  16  10.9295
  17  16.973
  18  77.013
  19  9.47117e-06
  20  11.3958
  21  8.74909e-07
  22  0.164022
  23  0.168824
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  4.253e+00  1.697e+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.036e+00  1.688e-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:  9.407e-01  1.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/764977/likelihoodResults_249955201_250214401_4FGL_J1333.2+2725_daily_bin41.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) = 6712.93301838
delta logL = 0.0720449739911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6712.93118804
delta logL = 0.0738753133537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6894       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9068       1.0000          .0000       10.000    
     3 'Normalizat'    .93112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0420       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6712.931     FROM MIGRAD    STATUS=FAILED        99 CALLS      255 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6837        20.685        .10513E-02   -.14079E-04
   2  Index         2.9065        2.2633        .11706E-01    .26941E-03
   3  Normalizat    .93129        .18257        .24031E-03   -.15849E-04
   4  Prefactor     1.0419        .19582        .24689E-03   -.39785E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6712.931     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      332 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6837        20.685        .27977E-03   -1.5324    
   2  Index         2.9065        2.2633        .14834E-02   -.43202    
   3  Normalizat    .93129        .18257        .26785E-03   -.95369    
   4  Prefactor     1.0419        .19582        .24274E-03   -.91346    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6712.931     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      369 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6837        12.313        .42053E-04   -.70289E-05
   2  Index         2.9065        1.6348        .23411E-02    .79640E-06
   3  Normalizat    .93128        .18287        .96122E-05   -.47309E-06
   4  Prefactor     1.0419        .19594        .98757E-05   -.23024E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.68369
  Index      = 2.90648
  Normalizat = 0.931285
  Prefactor  = 1.04189
 **********
 **   18 **HESSE 
 **********

 FCN=   6712.931     FROM HESSE     STATUS=OK            23 CALLS      392 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6837        11.875        .16821E-05   -1.5324    
   2  Index         2.9065        1.5792        .93645E-04   -.43202    
   3  Normalizat    .93128        .18279        .19224E-05   -.95369    
   4  Prefactor     1.0419        .19587        .19751E-05   -.91346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20701e-13
Minuit parameter uncertainties:
  1  11.8826
  2  1.61287
  3  0.182917
  4  0.196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764977': 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) = 6712.93118733
delta logL = 0.0738760199556

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  3.684e+00  1.188e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.906e+00  1.613e+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.042e+00  1.960e-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:  9.313e-01  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/764977/cmap_HighResolution_249955201_250214401_4FGL_J1333.2+2725_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-09-08 03:09:38.741200', job_id='764977', GAL2='1.04', fit_tolerance='1e-08', EG2='0.93', EG='0.94', time_epoch_completed='1631095778.74', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='7.39e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='41' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:09:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 764977: <4FGL_J1333.2+2725_daily_bin41> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin41> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 02:55:58 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:58:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 02:58:37 2021
Terminated at Wed Sep  8 03:09:39 2021
Results reported at Wed Sep  8 03:09:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin41 203.323 27.4221 249955201 250214401 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 :                                   645.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            821 sec.

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

