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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1626
RA = 353.557, Dec = 7.602
tmin = 660787201, tmax = 661046401
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='172018', job_status='RUN', time_executed='2021-12-13 00:39:47.214780', time_epoch_executed='1639384787.21' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172018/ft1_4FGL_J2334.2+0736_daily_bin1626.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172018/ft2_4FGL_J2334.2+0736_daily_bin1626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172018/ft1_4FGL_J2334.2+0736_daily_bin1626.fits outfile=/scratch/kocevski/172018/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1626.fits ra=353.557 dec=7.602 rad=12.0 tmin=660787201.0 tmax=661046401.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.54
user 3.29
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/172018/ft2_4FGL_J2334.2+0736_daily_bin1626.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/172018/ft2_4FGL_J2334.2+0736_daily_bin1626.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/172018/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1626.fits evtable="EVENTS" outfile="/scratch/kocevski/172018/ft1_filtered_4FGL_J2334.2+0736_daily_bin1626.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/172018/ft1_filtered_4FGL_J2334.2+0736_daily_bin1626.fits" evtable="EVENTS" scfile=/scratch/kocevski/172018/ft2_4FGL_J2334.2+0736_daily_bin1626.fits sctable="SC_DATA" outfile=/scratch/kocevski/172018/ltcube_660787201_661046401_4FGL_J2334.2+0736_daily_bin1626.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/172018/ft2_4FGL_J2334.2+0736_daily_bin1626.fits
.....................!
real 11.57
user 11.16
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172018/ft1_filtered_4FGL_J2334.2+0736_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/172018/ft2_4FGL_J2334.2+0736_daily_bin1626.fits sctable="SC_DATA" expcube=/scratch/kocevski/172018/ltcube_660787201_661046401_4FGL_J2334.2+0736_daily_bin1626.fits outfile=/scratch/kocevski/172018/expmap_660787201_661046401_4FGL_J2334.2+0736_daily_bin1626.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/172018/ltcube_660787201_661046401_4FGL_J2334.2+0736_daily_bin1626.fits
.....................!
real 190.38
user 184.90
sys 5.13

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

Setting source of interest to:
4FGL J2334.2+0736 @ 353.557 7.602

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/172018/ft1_filtered_4FGL_J2334.2+0736_daily_bin1626.fits scfile=/scratch/kocevski/172018/ft2_4FGL_J2334.2+0736_daily_bin1626.fits outfile=/scratch/kocevski/172018/cmap_660787201_661046401_4FGL_J2334.2+0736_daily_bin1626.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=353.557 yref=7.602 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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/172018/ft1_filtered_4FGL_J2334.2+0736_daily_bin1626.fits scfile=/scratch/kocevski/172018/ft2_4FGL_J2334.2+0736_daily_bin1626.fits outfile=/scratch/kocevski/172018/cmap_HighResolution_660787201_661046401_4FGL_J2334.2+0736_daily_bin1626.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=353.557 yref=7.602 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/172018/ft1_filtered_4FGL_J2334.2+0736_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/172018/ft2_4FGL_J2334.2+0736_daily_bin1626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/172018/Model_4FGL_J2334.2+0736_daily_bin1626.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/172018/ft1_filtered_4FGL_J2334.2+0736_daily_bin1626.fits.....................!
real 68.03
user 66.60
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/172018/ft1_filtered_4FGL_J2334.2+0736_daily_bin1626.fits', '/scratch/kocevski/172018/ft2_4FGL_J2334.2+0736_daily_bin1626.fits', expMap='/scratch/kocevski/172018/expmap_660787201_661046401_4FGL_J2334.2+0736_daily_bin1626.fits', expCube='/scratch/kocevski/172018/ltcube_660787201_661046401_4FGL_J2334.2+0736_daily_bin1626.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/172018/Model_4FGL_J2334.2+0736_daily_bin1626.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2334.2+0736'

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.621e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/172018/ft1_filtered_4FGL_J2334.2+0736_daily_bin1626.fits
Spacecraft file(s): /scratch/kocevski/172018/ft2_4FGL_J2334.2+0736_daily_bin1626.fits
Exposure map: /scratch/kocevski/172018/expmap_660787201_661046401_4FGL_J2334.2+0736_daily_bin1626.fits
Exposure cube: /scratch/kocevski/172018/ltcube_660787201_661046401_4FGL_J2334.2+0736_daily_bin1626.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/172018/Model_4FGL_J2334.2+0736_daily_bin1626.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) = 6303.23914275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1877       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1079       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .24772       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.6076       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    271.63       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.103       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.834       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .69543E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13620E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.763       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .40015       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.452       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .52145       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2578       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6303.202     FROM MIGRAD    STATUS=FAILED       944 CALLS     3164 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1929        19.210        .14962E-03    .41716E-04
   2  Prefactor     .10000E-03    5.8882        .18142E-02** at limit **
   3  Prefactor     .10000E-03    39.512        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.0449        .11067E-02** at limit **
   5  Prefactor     4.1090        9.7517        .99450E-03   -.63223E-03
   6  Prefactor     .10000E-03    5.7190        .18142E-02** at limit **
   7  norm          .24772        .51825        .40773E-04    .20382E-03
   8  Prefactor     .10000E-03    2.9262        .13257E-02** at limit **
   9  Prefactor     .10000E-03    24.297        .18142E-02** at limit **
  10  Prefactor     .10000E-03    14.780        .18142E-02** at limit **
  11  norm          6.6025        7.1621        .15611E-03   -.18206E-05
  12  Prefactor     .10000E-03    4.8849        .17040E-02** at limit **
  13  Prefactor     271.59        260.76        .12303E-03    .41157E-04
  14  Prefactor     15.109        13.462        .10306E-03    .87923E-03
  15  Prefactor     18.829        29.381        .92289E-04   -.39912E-04
  16  norm          .10000E-03    5.9253        .18142E-02** at limit **
  17  norm          .10001E-03    142.92        .65594E-02** at limit **
  18  Prefactor     .10031E-03    23.424        .24687E-02** at limit **
  19  Prefactor     .10000E-03    10.101        .18142E-02** at limit **
  20  Prefactor     41.753        29.683        .62031E-04   -.12848E-03
  21  Prefactor     .40498        35.343        .39429E-02    .17135E-02
  22  Prefactor     18.452        17.637        .93241E-04    .76327E-04
  23  Normalizat    .52133        .25325        .41216E-03    .19482E-03
  24  Prefactor     1.2578        .16315        .18433E-03    .17127E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6303.202     FROM SIMPLEX   STATUS=PROGRESS    1181 CALLS     4345 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1929        19.210        .58547E-06   -1.5172    
   2  Prefactor     .10000E-03    5.8882        .33655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.512        .15740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0449        .15956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1090        9.7517        .55168E-06   -1.5303    
   6  Prefactor     .10000E-03    5.7190        .22765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .24772        .51825        .56322E-06   -1.5608    
   8  Prefactor     .10000E-03    2.9262        .21637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.297        .20872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.780        .39934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.6025        7.1621        .54918E-06   -1.5194    
  12  Prefactor     .10000E-03    4.8849        .30931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     271.59        260.76        .45037E-06   -1.2397    
  14  Prefactor     15.109        13.462        .54227E-06   -1.4930    
  15  Prefactor     18.829        29.381        .55451E-06   -1.4840    
  16  norm          .10000E-03    5.9253        .28660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    142.92        .74873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10031E-03    23.424        .22404E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.101        .34048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.753        29.683        .52094E-06   -1.4415    
  21  Prefactor     .40498        35.343        .57686E-06   -1.5581    
  22  Prefactor     18.452        17.637        .53660E-06   -1.4849    
  23  Normalizat    .52133        .25325        .40352E-06   -1.1144    
  24  Prefactor     1.2578        .16315        .30517E-06   -.84570    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6303.202     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     4725 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1929        19.203        .59847E-05    .37992E-05
   2  Prefactor     .10000E-03    5.8882        .36285E-03** at limit **
   3  Prefactor     .10000E-03    39.519        .36285E-03** at limit **
   4  Prefactor     .10000E-03    2.0450        .22134E-03** at limit **
   5  Prefactor     4.1093        9.7489        .39780E-04    .85737E-06
   6  Prefactor     .10000E-03    5.7193        .36285E-03** at limit **
   7  norm          .24772        .51824        .16309E-05    .56212E-04
   8  Prefactor     .10000E-03    2.9262        .26513E-03** at limit **
   9  Prefactor     .10000E-03    24.308        .36285E-03** at limit **
  10  Prefactor     .10000E-03    14.780        .36285E-03** at limit **
  11  norm          6.6025        7.1607        .62445E-05    .18206E-05
  12  Prefactor     .10000E-03    4.8861        .34080E-03** at limit **
  13  Prefactor     271.59        260.73        .24607E-04    .24117E-04
  14  Prefactor     15.109        13.340        .20612E-04    .18741E-03
  15  Prefactor     18.830        29.374        .36916E-05    .30796E-05
  16  norm          .10000E-03    5.9256        .36285E-03** at limit **
  17  norm          .10000E-03    144.51        .26238E-03** at limit **
  18  Prefactor     .10000E-03    23.617        .49373E-03** at limit **
  19  Prefactor     .10000E-03    10.101        .36285E-03** at limit **
  20  Prefactor     41.754        29.673        .12406E-04    .87972E-05
  21  Prefactor     .40503        35.513        .78857E-03    .49738E-05
  22  Prefactor     18.452        17.634        .37296E-05    .26215E-04
  23  Normalizat    .52133        .25272        .16486E-04    .43720E-04
  24  Prefactor     1.2578        .16320        .36865E-04    .68770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.19289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.10931
  Prefactor  = 0.0001
  norm       = 0.24772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.60254
  Prefactor  = 0.0001
  Prefactor  = 271.592
  Prefactor  = 15.1085
  Prefactor  = 18.8296
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.7535
  Prefactor  = 0.405029
  Prefactor  = 18.4517
  Normalizat = 0.521332
  Prefactor  = 1.25784
 **********
 **   18 **HESSE 
 **********

 FCN=   6303.202     FROM HESSE     STATUS=OK           375 CALLS     5100 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1929        19.200        .11969E-05   -1.5172    
   2  Prefactor     .10000E-03    5.8882        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.519        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0450        .44268E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1093        9.7460        .15912E-05   -1.5303    
   6  Prefactor     .10000E-03    5.7193        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .24772        .51839        .37213E-06   -1.5608    
   8  Prefactor     .10000E-03    2.9262        .53027E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.308        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.780        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.6025        7.1611        .12489E-05   -1.5194    
  12  Prefactor     .10000E-03    4.8861        .68161E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     271.59        260.67        .49213E-05   -1.2397    
  14  Prefactor     15.109        13.337        .41225E-05   -1.4930    
  15  Prefactor     18.830        29.346        .73831E-06   -1.4840    
  16  norm          .10000E-03    5.9256        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    144.51        .52475E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.625        .98746E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.101        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.754        29.665        .24812E-05   -1.4415    
  21  Prefactor     .40503        35.431        .31543E-04   -1.5581    
  22  Prefactor     18.452        17.685        .74593E-06   -1.4849    
  23  Normalizat    .52133        .25279        .32973E-05   -1.1144    
  24  Prefactor     1.2578        .16332        .73730E-05   -.84570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34053e-11
Minuit parameter uncertainties:
  1  19.2162
  2  2.45339e-08
  3  1.52422e-06
  4  4.20666e-08
  5  9.74977
  6  2.77129e-07
  7  0.5184
  8  3.70664e-09
  9  2.8924e-06
  10  8.09965e-07
  11  7.16199
  12  1.92578e-07
  13  261.804
  14  13.34
  15  29.3682
  16  1.42288e-07
  17  0.00113765
  18  0.000136907
  19  5.77434e-07
  20  29.6756
  21  7.58008
  22  17.6905
  23  0.253349
  24  0.163387
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.883e+01  2.937e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.258e+00  1.634e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  5.213e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/172018/likelihoodResults_660787201_661046401_4FGL_J2334.2+0736_daily_bin1626.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) = 6302.9687472
delta logL = 0.23297410994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6302.94405029
delta logL = 0.257671013232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2525       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4503       1.0000          .0000       10.000    
     3 'Normalizat'    .48539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2738       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+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=   6302.944     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      289 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2503        337.15        .16054E-03   -.12137E-02
   2  Index         3.4506        6.5248        .72352E-02   -.25633E-03
   3  Normalizat    .48539        .24964        .42627E-03   -.23097E-03
   4  Prefactor     1.2738        .17422        .18326E-03   -.52482E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.25028
  Index      = 3.45055
  Normalizat = 0.485394
  Prefactor  = 1.27383
 **********
 **   18 **HESSE 
 **********

 FCN=   6302.944     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2503        18.021        .64214E-05   -1.5208    
   2  Index         3.4506        1.5122        .28941E-03   -.31508    
   3  Normalizat    .48539        .24578        .17051E-04   -1.1310    
   4  Prefactor     1.2738        .16321        .36653E-04   -.84089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12159e-09
Minuit parameter uncertainties:
  1  18.0366
  2  1.53889
  3  0.246328
  4  0.163275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172018': 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) = 6302.9440502
delta logL = 0.257671111463

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  6.250e+00  1.804e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  3.451e+00  1.539e+00  0.000e+00  1.000e+01 (-1.000e+00)
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.274e+00  1.633e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  4.854e-01  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 353.557 7.602
Photon Index (Free Index): 3.45 +/- 1.54
Photon Flux (Free Index): 6.39e-08 +/- 7.06e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.20e-05

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/172018/cmap_HighResolution_660787201_661046401_4FGL_J2334.2+0736_daily_bin1626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='2.58e-01', photon_flux2='6.39e-08', job_status='DONE', time_completed='2021-12-13 00:52:30.517153', photon_index_error2='1.54', photon_index2='3.45', ts='0.54', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.20e-05', EG='0.52', time_epoch_completed='1639385550.52', return_code='0', job_id='172018', GAL2='1.27', EG2='0.49', return_code2='0', photon_flux_error2='7.06e-08', ts2='1.13', photon_index='2.47' WHERE bin_id='1626' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 13 00:52:30 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 172018: <4FGL_J2334.2+0736_daily_bin1626> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin1626> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Dec 13 00:36:06 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:36:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:36:08 2021
Terminated at Mon Dec 13 00:52:31 2021
Results reported at Mon Dec 13 00:52:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1626 353.557 7.602 660787201 661046401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2334.2+0736 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   765.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

