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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin21
RA = 221.591, Dec = 31.1955
tmin = 244771201, tmax = 245030401
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='767789', job_status='RUN', time_executed='2021-09-10 08:43:43.338298', time_epoch_executed='1631288623.34' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/767789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/767789/ft1_4FGL_J1446.3+3111_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/767789/ft2_4FGL_J1446.3+3111_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/767789/ft1_4FGL_J1446.3+3111_daily_bin21.fits outfile=/scratch/kocevski/767789/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin21.fits ra=221.591 dec=31.1955 rad=12.0 tmin=244771201.0 tmax=245030401.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 2.96
user 1.24
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/767789/ft2_4FGL_J1446.3+3111_daily_bin21.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/767789/ft2_4FGL_J1446.3+3111_daily_bin21.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/767789/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin21.fits evtable="EVENTS" outfile="/scratch/kocevski/767789/ft1_filtered_4FGL_J1446.3+3111_daily_bin21.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/767789/ft1_filtered_4FGL_J1446.3+3111_daily_bin21.fits" evtable="EVENTS" scfile=/scratch/kocevski/767789/ft2_4FGL_J1446.3+3111_daily_bin21.fits sctable="SC_DATA" outfile=/scratch/kocevski/767789/ltcube_244771201_245030401_4FGL_J1446.3+3111_daily_bin21.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/767789/ft2_4FGL_J1446.3+3111_daily_bin21.fits
.....................!
real 12.44
user 12.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/767789/ft1_filtered_4FGL_J1446.3+3111_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/767789/ft2_4FGL_J1446.3+3111_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/767789/ltcube_244771201_245030401_4FGL_J1446.3+3111_daily_bin21.fits outfile=/scratch/kocevski/767789/expmap_244771201_245030401_4FGL_J1446.3+3111_daily_bin21.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/767789/ltcube_244771201_245030401_4FGL_J1446.3+3111_daily_bin21.fits
.....................!
real 189.92
user 185.12
sys 4.46

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

Setting source of interest to:
4FGL J1446.3+3111 @ 221.591 31.1955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/767789/ft1_filtered_4FGL_J1446.3+3111_daily_bin21.fits scfile=/scratch/kocevski/767789/ft2_4FGL_J1446.3+3111_daily_bin21.fits outfile=/scratch/kocevski/767789/cmap_244771201_245030401_4FGL_J1446.3+3111_daily_bin21.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=221.591 yref=31.1955 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/767789/ft1_filtered_4FGL_J1446.3+3111_daily_bin21.fits scfile=/scratch/kocevski/767789/ft2_4FGL_J1446.3+3111_daily_bin21.fits outfile=/scratch/kocevski/767789/cmap_HighResolution_244771201_245030401_4FGL_J1446.3+3111_daily_bin21.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=221.591 yref=31.1955 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/767789/ft1_filtered_4FGL_J1446.3+3111_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/767789/ft2_4FGL_J1446.3+3111_daily_bin21.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/767789/Model_4FGL_J1446.3+3111_daily_bin21.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/767789/ft1_filtered_4FGL_J1446.3+3111_daily_bin21.fits.....................!
real 49.04
user 47.67
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/767789/ft1_filtered_4FGL_J1446.3+3111_daily_bin21.fits', '/scratch/kocevski/767789/ft2_4FGL_J1446.3+3111_daily_bin21.fits', expMap='/scratch/kocevski/767789/expmap_244771201_245030401_4FGL_J1446.3+3111_daily_bin21.fits', expCube='/scratch/kocevski/767789/ltcube_244771201_245030401_4FGL_J1446.3+3111_daily_bin21.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/767789/Model_4FGL_J1446.3+3111_daily_bin21.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1446.3+3111'

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.552e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/767789/ft1_filtered_4FGL_J1446.3+3111_daily_bin21.fits
Spacecraft file(s): /scratch/kocevski/767789/ft2_4FGL_J1446.3+3111_daily_bin21.fits
Exposure map: /scratch/kocevski/767789/expmap_244771201_245030401_4FGL_J1446.3+3111_daily_bin21.fits
Exposure cube: /scratch/kocevski/767789/ltcube_244771201_245030401_4FGL_J1446.3+3111_daily_bin21.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/767789/Model_4FGL_J1446.3+3111_daily_bin21.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) = 6374.25980887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3944       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9037       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3346       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7526       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7794       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8975       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .66197       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.889       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8524       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23503E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6653       1.0000         .10000E-03   10000.    
    22 'norm      '    7.9233       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .90157       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1693       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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=   6374.245     FROM MIGRAD    STATUS=CONVERGED   1150 CALLS     4305 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3946        3.0443        .15343E-03    .97065E-05
   2  Prefactor     .10000E-03    7.5518        .18142E-02** at limit **
   3  norm          2.9046        4.1860        .18694E-03    .70970E-04
   4  Prefactor     .10000E-03    8.7955        .18142E-02** at limit **
   5  Prefactor     6.3327        15.506        .15948E-03    .10265E-04
   6  Prefactor     .10000E-03    4.2775        .23151E-02** at limit **
   7  norm          .10000E-03    5.3256        .17988E-02** at limit **
   8  norm          1.7526        1.7325        .10101E-03    .14519E-04
   9  Prefactor     .10000E-03    6.2545        .18142E-02** at limit **
  10  norm          .10000E-03    1.0208        .78591E-03** at limit **
  11  norm          .10000E-03    5.1616        .34651E-03** at limit **
  12  Prefactor     .10000E-03    9.2124        .18142E-02** at limit **
  13  norm          .10000E-03    2.5804        .24714E-03** at limit **
  14  Prefactor     .10000E-03    13.649        .18142E-02** at limit **
  15  norm          4.7799        5.5873        .92017E-03   -.16185E-04
  16  Prefactor     7.9112        12.842        .14268E-03   -.13888E-03
  17  Prefactor     .62491        59.534        .33757E-02    .12693E-03
  18  Prefactor     17.888        11.152        .94696E-04    .14887E-04
  19  norm          2.8551        2.7724        .90955E-04   -.60146E-03
  20  Prefactor     .10001E-03    106.25        .20479    ** at limit **
  21  Prefactor     5.6652        6.6591        .84383E-03    .55642E-04
  22  norm          7.9228        1.7860        .47944E-04   -.31988E-03
  23  Prefactor     .10000E-03    6.0573        .18142E-02** at limit **
  24  Prefactor     .10000E-03    13.881        .18142E-02** at limit **
  25  Prefactor     .10000E-03    23.279        .18142E-02** at limit **
  26  Normalizat    .90145        .21873        .27280E-03   -.24879E-04
  27  Prefactor     1.1694        .20050        .23216E-03   -.16503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39456
  Prefactor  = 0.0001
  norm       = 2.90463
  Prefactor  = 0.0001
  Prefactor  = 6.33274
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.75262
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.77992
  Prefactor  = 7.91115
  Prefactor  = 0.624906
  Prefactor  = 17.8885
  norm       = 2.85512
  Prefactor  = 0.000100012
  Prefactor  = 5.66524
  norm       = 7.92276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.901449
  Prefactor  = 1.16935
 **********
 **   18 **HESSE 
 **********

 FCN=   6374.245     FROM HESSE     STATUS=OK           476 CALLS     4781 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3946        3.0443        .61373E-05   -1.5398    
   2  Prefactor     .10000E-03    7.5520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9046        4.1855        .74777E-05   -1.5367    
   4  Prefactor     .10000E-03    8.7959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3327        15.505        .63792E-05   -1.5205    
   6  Prefactor     .10000E-03    4.2911        .46302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.3257        .35977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7526        1.7325        .40405E-05   -1.5443    
   9  Prefactor     .10000E-03    6.2546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0208        .15718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.1620        .69303E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.2124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5805        .49427E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.650        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7799        5.5856        .36807E-04   -1.5271    
  16  Prefactor     7.9112        12.768        .57072E-05   -1.5145    
  17  Prefactor     .62491        52.723        .13503E-03   -1.5550    
  18  Prefactor     17.888        11.152        .37878E-05   -1.4862    
  19  norm          2.8551        2.6290        .36382E-05   -1.5370    
  20  Prefactor     .10001E-03    114.26        .19531       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.6652        6.6583        .33753E-04   -1.5232    
  22  norm          7.9228        1.7858        .19178E-05   -1.5145    
  23  Prefactor     .10000E-03    6.0585        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .90145        .21871        .10912E-04   -.96409    
  27  Prefactor     1.1694        .20067        .46432E-04   -.87280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68988e-10
Minuit parameter uncertainties:
  1  3.04452
  2  3.06816e-05
  3  4.18592
  4  1.87343e-05
  5  15.5148
  6  0.00012891
  7  6.2399e-06
  8  1.73251
  9  1.469e-05
  10  3.44359e-07
  11  9.58697e-07
  12  1.47382e-05
  13  4.48079e-07
  14  3.84699e-05
  15  5.58617
  16  12.7726
  17  11.4894
  18  11.1533
  19  2.62907
  20  0.00233525
  21  6.6592
  22  1.78578
  23  1.90335e-05
  24  1.79986e-05
  25  0.00011976
  26  0.218925
  27  0.200798
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.847e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.169e+00  2.008e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.014e-01  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 221.591 31.195
Photon Flux Upper Limit: 5.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/767789/likelihoodResults_244771201_245030401_4FGL_J1446.3+3111_daily_bin21.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) = 6374.24556474
delta logL = -0.000348954842593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6374.24521585
delta logL = -6.60820660414e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5365       1.0000          .0000       10.000    
     3 'Normalizat'    .90142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1694       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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=   6374.245     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      256 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.925        .18142E-01** at limit **
   2  Index         2.0288        5.8463        .50000        .14284E-06
   3  Normalizat    .90145        .82427E-02    .27280E-03   -.99809E-04
   4  Prefactor     1.1694        .79156E-02    .23216E-03   -.11557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.02875
  Normalizat = 0.901448
  Prefactor  = 1.16935
 **********
 **   18 **HESSE 
 **********

 FCN=   6374.245     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    352.29        .32450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0288        5.7213        .50000       -.63633    
   3  Normalizat    .90145        .20573E-01    .10912E-04   -.96409    
   4  Prefactor     1.1694        .19757E-01    .46432E-04   -.87280    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.16003e-10
Minuit parameter uncertainties:
  1  0.000431402
  2  987.213
  3  0.0205735
  4  0.0197571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/767789': 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) = 6374.245215
delta logL = 7.89686964708e-07

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  4.314e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.029e+00  9.872e+02  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.169e+00  1.976e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.014e-01  2.057e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 221.591 31.195

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/767789/cmap_HighResolution_244771201_245030401_4FGL_J1446.3+3111_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='5.89e-08', time_completed='2021-09-10 08:56:43.759100', job_id='767789', GAL2='1.17', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631289403.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='7.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='21' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 08:56:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 767789: <4FGL_J1446.3+3111_daily_bin21> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin21> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 08:41:30 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:41:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 08:41:33 2021
Terminated at Fri Sep 10 08:56:44 2021
Results reported at Fri Sep 10 08:56:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin21 221.591 31.1955 244771201 245030401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1446.3+3111 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   778.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

