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


Performing analysis on: 4FGL_J1044.6+8053_daily_bin1205
RA = 161.164, Dec = 80.8941
tmin = 551664001, tmax = 551923201
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='90499', job_status='RUN', time_executed='2021-09-02 09:38:52.792857', time_epoch_executed='1630600732.79' WHERE source_name='4FGL J1044.6+8053' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90499/ft1_4FGL_J1044.6+8053_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90499/ft2_4FGL_J1044.6+8053_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90499/ft1_4FGL_J1044.6+8053_daily_bin1205.fits outfile=/scratch/kocevski/90499/ft1_filteredMKT_4FGL_J1044.6+8053_daily_bin1205.fits ra=161.164 dec=80.8941 rad=12.0 tmin=551664001.0 tmax=551923201.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.82
user 3.58
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/90499/ft2_4FGL_J1044.6+8053_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90499/ft2_4FGL_J1044.6+8053_daily_bin1205.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/90499/ft1_filteredMKT_4FGL_J1044.6+8053_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/90499/ft1_filtered_4FGL_J1044.6+8053_daily_bin1205.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90499/ft1_filtered_4FGL_J1044.6+8053_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/90499/ft2_4FGL_J1044.6+8053_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/90499/ltcube_551664001_551923201_4FGL_J1044.6+8053_daily_bin1205.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/90499/ft2_4FGL_J1044.6+8053_daily_bin1205.fits
.....................!
real 18.18
user 17.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90499/ft1_filtered_4FGL_J1044.6+8053_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/90499/ft2_4FGL_J1044.6+8053_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/90499/ltcube_551664001_551923201_4FGL_J1044.6+8053_daily_bin1205.fits outfile=/scratch/kocevski/90499/expmap_551664001_551923201_4FGL_J1044.6+8053_daily_bin1205.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/90499/ltcube_551664001_551923201_4FGL_J1044.6+8053_daily_bin1205.fits
.....................!
real 195.49
user 189.47
sys 5.05

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

Setting source of interest to:
4FGL J1044.6+8053 @ 161.164 80.8941

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/90499/ft1_filtered_4FGL_J1044.6+8053_daily_bin1205.fits scfile=/scratch/kocevski/90499/ft2_4FGL_J1044.6+8053_daily_bin1205.fits outfile=/scratch/kocevski/90499/cmap_551664001_551923201_4FGL_J1044.6+8053_daily_bin1205.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=161.164 yref=80.8941 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.66
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90499/ft1_filtered_4FGL_J1044.6+8053_daily_bin1205.fits scfile=/scratch/kocevski/90499/ft2_4FGL_J1044.6+8053_daily_bin1205.fits outfile=/scratch/kocevski/90499/cmap_HighResolution_551664001_551923201_4FGL_J1044.6+8053_daily_bin1205.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=161.164 yref=80.8941 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.61
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90499/ft1_filtered_4FGL_J1044.6+8053_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/90499/ft2_4FGL_J1044.6+8053_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90499/Model_4FGL_J1044.6+8053_daily_bin1205.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/90499/ft1_filtered_4FGL_J1044.6+8053_daily_bin1205.fits.!
real 14.13
user 12.44
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90499/ft1_filtered_4FGL_J1044.6+8053_daily_bin1205.fits', '/scratch/kocevski/90499/ft2_4FGL_J1044.6+8053_daily_bin1205.fits', expMap='/scratch/kocevski/90499/expmap_551664001_551923201_4FGL_J1044.6+8053_daily_bin1205.fits', expCube='/scratch/kocevski/90499/ltcube_551664001_551923201_4FGL_J1044.6+8053_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90499/Model_4FGL_J1044.6+8053_daily_bin1205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1044.6+8053'

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  2.944e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  2.821e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
345         beta:  2.167e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/90499/ft1_filtered_4FGL_J1044.6+8053_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/90499/ft2_4FGL_J1044.6+8053_daily_bin1205.fits
Exposure map: /scratch/kocevski/90499/expmap_551664001_551923201_4FGL_J1044.6+8053_daily_bin1205.fits
Exposure cube: /scratch/kocevski/90499/ltcube_551664001_551923201_4FGL_J1044.6+8053_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90499/Model_4FGL_J1044.6+8053_daily_bin1205.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) = 8.41384473972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .67515E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11943E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11699E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32242E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1656       1.0000         .10000E-03   10000.    
     7 'Prefactor '    691.37       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8325       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11121E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5011       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6988       1.0000         .10000E-03   10000.    
    12 'norm      '    .40598E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0808       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4469       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7141       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11318E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3317       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5885       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .46155E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1332       1.0000         .10000E-03   10000.    
    21 'norm      '    6.1602       1.0000         .10000E-03   10000.    
    22 'norm      '    .24298E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.4676       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21786E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.9178       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14021E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .90390E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71476E-10   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+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=   7.533053     FROM MIGRAD    STATUS=FAILED      1384 CALLS     3697 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    895.35        .84728E-03** at limit **
   2  norm          .10000E-03    1203.4        .98777E-03** at limit **
   3  norm          .10002E-03    1536.1        .11229E-02** at limit **
   4  Prefactor     .10005E-03    1842.7        .12371E-02** at limit **
   5  Prefactor     .10000E-03    431.77        .58361E-03** at limit **
   6  Prefactor     .10059E-03    9754.7        .88440E-03** at limit **
   7  Prefactor     609.82        685.11        .78837E-03    .11743E-04
   8  Prefactor    10000.0        5616.6        .76747E-02** at limit **
   9  Prefactor     .10011E-03    791.51        .79532E-03** at limit **
  10  Prefactor    10000.0        9844.8        .73216E-02   -.32169E-05
  11  Prefactor    10000.0        9873.4        .92820E-02** at limit **
  12  norm          .10000E-03    425.42        .57928E-03** at limit **
  13  Prefactor    10000.0        5017.6        .23169E-01** at limit **
  14  norm         10000.0        5085.4        .10892E-01** at limit **
  15  norm         10000.0        7960.2        .16050E-01** at limit **
  16  Prefactor     .10001E-03    941.81        .86978E-03** at limit **
  17  Prefactor    10000.0        8055.0        .19024E-01** at limit **
  18  Prefactor    10000.0        5963.8        .16837E-01** at limit **
  19  Prefactor     .10005E-03    1756.3        .12059E-02** at limit **
  20  Prefactor    10000.0        6934.6        .75096E-02   -.55903E-05
  21  norm          9999.9        9106.7        .80875E-02    .10416E-04
  22  norm          .10000E-03    342.06        .51867E-03** at limit **
  23  Prefactor     .10000E-03    9315.7        .73381E-03** at limit **
  24  Prefactor     .10000E-03    665.17        .72736E-03** at limit **
  25  Prefactor    10000.0        8208.0        .82537E-02** at limit **
  26  Prefactor     .10002E-03    6583.4        .16665E-02** at limit **
  27  Prefactor     .10010E-03    1813.5        .12265E-02** at limit **
  28  Normalizat    .10000E-01    1.9132        .12632E-02** at limit **
  29  Prefactor     .33340E-11    .94598        .87179E-03** at limit **
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7.533053     FROM SIMPLEX   STATUS=UNCHANGED   1247 CALLS     4944 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    895.35        .32838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1203.4        .70968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10002E-03    1536.1        .10925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10005E-03    1842.7        .85121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    431.77        .77032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10059E-03    9754.7        .11915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     609.82        685.11        .71594E-07   -1.0717    
   8  Prefactor    10000.0        5616.6        .11474E-03    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10011E-03    791.51        .24734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        9844.8        .19058E-04    1.5693    
  11  Prefactor    10000.0        9873.4        .28774E-04    1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    425.42        .43136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        5017.6        .39231E-04    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        5085.4        .38749E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        7960.2        .15821E-03    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    941.81        .16461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        8055.0        .53787E-04    1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        5963.8        .76078E-04    1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    1756.3        .56911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        6934.6        .56338E-04    1.5676    
  21  norm          9999.9        9106.7        .58505E-04    1.5762    
  22  norm          .10000E-03    342.06        .32709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9315.7        .41430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    665.17        .62394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        8208.0        .14487E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    6583.4        .93243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10010E-03    1813.5        .46410E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    1.9132        .12965E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .33340E-11    .94598        .78648E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7.533053     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     5470 TOTAL
                     EDM=   .13E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    895.35        .16946E-03** at limit **
   2  norm          .10000E-03    1203.4        .19755E-03** at limit **
   3  norm          .10000E-03    1536.1        .22458E-03** at limit **
   4  Prefactor     .10000E-03    1842.7        .24742E-03** at limit **
   5  Prefactor     .10000E-03    431.77        .11672E-03** at limit **
   6  Prefactor     .10000E-03    9754.7        .17688E-03** at limit **
   7  Prefactor     609.82        685.11        .31535E-04   -.12202E-06
   8  Prefactor    10000.0        5617.6        .15349E-02** at limit **
   9  Prefactor     .10000E-03    791.51        .15906E-03** at limit **
  10  Prefactor     10000.        9843.4        .14643E-02** at limit **
  11  Prefactor     10000.        9872.5        .18564E-02** at limit **
  12  norm          .10000E-03    425.42        .11586E-03** at limit **
  13  Prefactor    10000.0        5017.6        .46338E-02** at limit **
  14  norm         10000.0        5085.5        .21785E-02** at limit **
  15  norm         10000.0        7960.5        .32100E-02** at limit **
  16  Prefactor     .10000E-03    941.81        .17396E-03** at limit **
  17  Prefactor     10000.        8051.8        .38048E-02** at limit **
  18  Prefactor    10000.0        5963.0        .33673E-02** at limit **
  19  Prefactor     .10000E-03    1756.3        .24117E-03** at limit **
  20  Prefactor    10000.0        6942.7        .15019E-02** at limit **
  21  norm         10000.0        9096.8        .16175E-02** at limit **
  22  norm          .10000E-03    342.06        .10373E-03** at limit **
  23  Prefactor     .10000E-03    9315.7        .14676E-03** at limit **
  24  Prefactor     .10000E-03    665.17        .14547E-03** at limit **
  25  Prefactor     10000.        8207.9        .16507E-02** at limit **
  26  Prefactor     .10000E-03    6583.4        .33330E-03** at limit **
  27  Prefactor     .10000E-03    1813.5        .24531E-03** at limit **
  28  Normalizat    .10000E-01    1.9132        .25264E-03** at limit **
  29  Prefactor      .0000        .94598        .17436E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 609.822
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   7.533053     FROM HESSE     STATUS=OK           523 CALLS     5993 TOTAL
                     EDM=   .13E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    895.35        .33891E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1203.4        .39511E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1536.1        .44916E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1842.7        .49483E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    431.77        .11672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9754.7        .17688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     609.82        685.11        .63070E-05   -1.0717    
   8  Prefactor    10000.0        5617.6        .30699E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    791.51        .31813E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10000.        9843.5        .29286E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10000.        9872.5        .37128E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    425.42        .23171E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        5017.6        .92675E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        5085.5        .43569E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        7960.5        .64201E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    941.81        .34791E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10000.        8051.8        .38048E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        5963.0        .67346E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1756.3        .48235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        6942.8        .30039E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm         10000.0        9096.9        .32350E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    342.06        .20747E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9315.7        .14676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    665.17        .29094E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10000.        8207.9        .33015E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6583.4        .66661E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1813.5        .49062E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    1.9132        .50528E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor      .0000        .94598        .34872E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31872e-15
Minuit parameter uncertainties:
  1  7.63538e-08
  2  7.5653e-09
  3  2.69647e-08
  4  4.06085e-08
  5  2.45043e-09
  6  5.86811e-06
  7  694.832
  8  0.00143407
  9  1.51324e-06
  10  5.13753e-05
  11  0.00103045
  12  3.00855e-07
  13  0.00265537
  14  0.000552076
  15  0.00227168
  16  8.80927e-07
  17  9.84997e-07
  18  0.00773687
  19  2.3532e-06
  20  0.00277266
  21  0.0133061
  22  9.14905e-08
  23  1.35419e-05
  24  3.69476e-07
  25  0.00100699
  26  8.21565e-08
  27  3.02205e-07
  28  1.81387e-09
  29  7.69847e-10
Done.

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

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  1.000e-04  3.009e-07  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  2.821e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
345         beta:  2.167e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  0.000e+00  7.698e-10  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.000e-02  1.814e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 161.164 80.894
Photon Flux Upper Limit: 1.98e-05 ph cm-2 s-1
Energy Flux Upper Limit: 4.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90499/likelihoodResults_551664001_551923201_4FGL_J1044.6+8053_daily_bin1205.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) = 7.53306480914
delta logL = -1.15773953793e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7.53305353733
delta logL = -3.05592383398e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8445       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .35288E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+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=   7.533053     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      261 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    5266.6        .33264E-02** at limit **
   2  alpha         1.6677        2.9415        .20000        .10572E-07
   3  Normalizat    .10000E-01    .54611        .12539E-02** at limit **
   4  Prefactor     .22580E-10    .26298        .86536E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100014
  alpha      = 1.6677
  Normalizat = 0.01
  Prefactor  = 2.25803e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   7.533053     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    799.55        .66529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6677        2.8322        .80000E-02   -.33940    
   3  Normalizat    .10000E-01    1.9132        .25077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22580E-10    .94598        .17307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92166e-10
Minuit parameter uncertainties:
  1  0.00685893
  2  4124.16
  3  6.34066e-05
  4  9.39586e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90499': 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) = 7.53305317922
delta logL = 5.25164898235e-08

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  1.000e-04  6.859e-03  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  1.668e+00  4.124e+03  0.000e+00  5.000e+00 ( 1.000e+00)
345         beta:  2.167e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  2.258e-11  9.396e-06  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.000e-02  6.341e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 161.164 80.894

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/90499/cmap_HighResolution_551664001_551923201_4FGL_J1044.6+8053_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-03', job_status='DONE', photon_flux_upper_limit='1.98e-05', time_completed='2021-09-02 09:44:54.929743', job_id='90499', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630601094.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='5.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='1205' AND source_name='4FGL J1044.6+8053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:44:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 90499: <4FGL_J1044.6+8053_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1044.6+8053_daily_bin1205> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:36:18 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:36:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 09:36:21 2021
Terminated at Thu Sep  2 09:44:55 2021
Results reported at Thu Sep  2 09:44:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1044.6+8053_daily_bin1205 161.164 80.8941 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1044.6+8053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   355.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             258.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            517 sec.

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

