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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1
RA = 203.323, Dec = 27.4221
tmin = 239587201, tmax = 239846401
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='764937', job_status='RUN', time_executed='2021-09-08 02:59:05.173631', time_epoch_executed='1631095145.17' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764937

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764937/ft1_4FGL_J1333.2+2725_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764937/ft2_4FGL_J1333.2+2725_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764937/ft1_4FGL_J1333.2+2725_daily_bin1.fits outfile=/scratch/kocevski/764937/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1.fits ra=203.323 dec=27.4221 rad=12.0 tmin=239587201.0 tmax=239846401.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.34
user 1.15
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/764937/ft2_4FGL_J1333.2+2725_daily_bin1.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/764937/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/764937/ft1_filtered_4FGL_J1333.2+2725_daily_bin1.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764937/ft1_filtered_4FGL_J1333.2+2725_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/764937/ft2_4FGL_J1333.2+2725_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/764937/ltcube_239587201_239846401_4FGL_J1333.2+2725_daily_bin1.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/764937/ft2_4FGL_J1333.2+2725_daily_bin1.fits
.....................!
real 18.20
user 17.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764937/ft1_filtered_4FGL_J1333.2+2725_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/764937/ft2_4FGL_J1333.2+2725_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/764937/ltcube_239587201_239846401_4FGL_J1333.2+2725_daily_bin1.fits outfile=/scratch/kocevski/764937/expmap_239587201_239846401_4FGL_J1333.2+2725_daily_bin1.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/764937/ltcube_239587201_239846401_4FGL_J1333.2+2725_daily_bin1.fits
.....................!
real 191.88
user 186.85
sys 4.63

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/764937/ft1_filtered_4FGL_J1333.2+2725_daily_bin1.fits scfile=/scratch/kocevski/764937/ft2_4FGL_J1333.2+2725_daily_bin1.fits outfile=/scratch/kocevski/764937/cmap_239587201_239846401_4FGL_J1333.2+2725_daily_bin1.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764937/ft1_filtered_4FGL_J1333.2+2725_daily_bin1.fits scfile=/scratch/kocevski/764937/ft2_4FGL_J1333.2+2725_daily_bin1.fits outfile=/scratch/kocevski/764937/cmap_HighResolution_239587201_239846401_4FGL_J1333.2+2725_daily_bin1.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.390       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6912       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .31122       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8259       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8418       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.043       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.219       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .62205E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2511       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .63321       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=   4160.752     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2522 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.387        44.113       -.44927E-05    .13446E-04
   2  Prefactor     .10000E-03    1.9539       -.27230E-07** at limit **
   3  norm          .10000E-03    2.8101        .14617E-06** at limit **
   4  Prefactor     .10000E-03    19.150       -.84003E-05** at limit **
   5  norm          1.6913        1.7519        .45555E-07    .19507E-03
   6  Prefactor     .10000E-03    10.719        .34971E-05** at limit **
   7  norm          .10000E-03    3.8796        .12333E-06** at limit **
   8  norm          .31078        3.1656       -.16769E-05    .54710E-04
   9  norm          .10000E-03    6.7233        .62513E-06** at limit **
  10  norm          .10000E-03    9.6732       -.70787E-06** at limit **
  11  Prefactor     4.8264        3.7982        .19443E-06    .30340E-03
  12  Prefactor     .10000E-03    9.3724       -.28949E-05** at limit **
  13  norm          .10000E-03    4.1157       -.82853E-07** at limit **
  14  Prefactor     .10000E-03    52.068       -.24868E-05** at limit **
  15  norm          .10000E-03    10.707        .34430E-05** at limit **
  16  Prefactor     3.8439        16.244       -.29413E-06   -.49936E-04
  17  Prefactor     .10000E-03    12.393       -.26316E-05** at limit **
  18  Prefactor     22.053        138.58        .20801E-04    .36173E-05
  19  Prefactor     10.220        5.2173        .28595E-07    .12087E-04
  20  Prefactor     .10000E-03    21.078        .95976E-05** at limit **
  21  Prefactor     .10003E-03    3.1436       -.53877E-06** at limit **
  22  Normalizat    1.2510        .19635       -.59689E-06    .11059E-03
  23  Prefactor     .63328        .19806        .63709E-06   -.18557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.387
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.69127
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.310785
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.82638
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.84391
  Prefactor  = 0.0001
  Prefactor  = 22.0529
  Prefactor  = 10.2199
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Normalizat = 1.25095
  Prefactor  = 0.633275
 **********
 **   18 **HESSE 
 **********

 FCN=   4160.752     FROM HESSE     STATUS=OK           366 CALLS     2888 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.387        44.045        .93397E-04   -1.4850    
   2  Prefactor     .10000E-03    1.9555        .88056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8593        .10553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6913        1.7659        .84794E-04   -1.5448    
   6  Prefactor     .10000E-03    10.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9194        .12400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .31078        6.6811        .21539E-02   -1.5596    
   9  norm          .10000E-03    6.8057        .16226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.6841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8264        3.7906        .10565E-03   -1.5269    
  12  Prefactor     .10000E-03    9.4201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.1676        .12774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    52.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8439        16.231        .20590E-03   -1.5316    
  17  Prefactor     .10000E-03    12.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.053        140.36        .85314E-04   -1.4768    
  19  Prefactor     10.220        5.2333        .10062E-03   -1.5068    
  20  Prefactor     .10000E-03    21.475        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    23.129        .21959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2510        .22836        .19668E-03   -.85042    
  23  Prefactor     .63328        .23057        .28129E-03   -1.0620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62927e-09
Minuit parameter uncertainties:
  1  44.1229
  2  2.02467e-07
  3  1.88101e-05
  4  7.26849e-05
  5  1.76593
  6  1.06738e-06
  7  1.29267e-06
  8  2.88182
  9  8.63836e-05
  10  4.68815e-07
  11  3.7908
  12  7.07942e-06
  13  3.19409e-06
  14  3.78776e-05
  15  1.26522e-05
  16  15.8047
  17  4.7079e-06
  18  111.657
  19  5.23353
  20  0.000152505
  21  0.00173636
  22  0.228546
  23  0.230918
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.708e-06  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:  6.333e-01  2.309e-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:  1.251e+00  2.285e-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: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/764937/likelihoodResults_239587201_239846401_4FGL_J1333.2+2725_daily_bin1.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) = 4160.7522524
delta logL = -0.000383648382922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4160.75186875
delta logL = 2.75304046227e-09

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 'Index     '    2.3095       1.0000          .0000       10.000    
     3 'Normalizat'    1.2510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63328       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=   4160.752     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10024E-03    233.18        .18142E-02** at limit **
   2  Index         2.2772        5.8151        .50000        .29587E-05
   3  Normalizat    1.2510        .20317E-01    .19668E-03   -.15376E-05
   4  Prefactor     .63328        .21441E-01    .28129E-03   -.40416E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100238
  Index      = 2.2772
  Normalizat = 1.25095
  Prefactor  = 0.633277
 **********
 **   18 **HESSE 
 **********

 FCN=   4160.752     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10024E-03    964.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2772        8.8406        .50000       -.57586    
   3  Normalizat    1.2510        .45378E-01    .39336E-04   -.85043    
   4  Prefactor     .63328        .47885E-01    .11252E-04   -1.0620    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.68488e-09
Minuit parameter uncertainties:
  1  0.030828
  2  1756.94
  3  0.0453797
  4  0.0478878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764937': 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) = 4160.75186873
delta logL = 2.12075974559e-08

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.002e-04  3.083e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.277e+00  1.757e+03  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:  6.333e-01  4.789e-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:  1.251e+00  4.538e-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/764937/cmap_HighResolution_239587201_239846401_4FGL_J1333.2+2725_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-08 03:08:12.021815', job_id='764937', GAL2='0.63', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631095692.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='2.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:08:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 764937: <4FGL_J1333.2+2725_daily_bin1> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 02:55:53 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:58:04 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:04 2021
Terminated at Wed Sep  8 03:08:12 2021
Results reported at Wed Sep  8 03:08:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1 203.323 27.4221 239587201 239846401 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 :                                   545.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            739 sec.

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

