/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 120 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1446.3+3111_daily_bin307
RA = 221.591, Dec = 31.1955
tmin = 318902401, tmax = 319161601
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='769346', job_status='RUN', time_executed='2021-09-10 08:48:31.786239', time_epoch_executed='1631288911.79' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769346

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769346/ft1_4FGL_J1446.3+3111_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769346/ft2_4FGL_J1446.3+3111_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769346/ft1_4FGL_J1446.3+3111_daily_bin307.fits outfile=/scratch/kocevski/769346/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin307.fits ra=221.591 dec=31.1955 rad=12.0 tmin=318902401.0 tmax=319161601.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.39
user 3.18
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/769346/ft2_4FGL_J1446.3+3111_daily_bin307.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/769346/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin307.fits evtable="EVENTS" outfile="/scratch/kocevski/769346/ft1_filtered_4FGL_J1446.3+3111_daily_bin307.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769346/ft1_filtered_4FGL_J1446.3+3111_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/769346/ft2_4FGL_J1446.3+3111_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/769346/ltcube_318902401_319161601_4FGL_J1446.3+3111_daily_bin307.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/769346/ft2_4FGL_J1446.3+3111_daily_bin307.fits
.....................!
real 11.77
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769346/ft1_filtered_4FGL_J1446.3+3111_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/769346/ft2_4FGL_J1446.3+3111_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/769346/ltcube_318902401_319161601_4FGL_J1446.3+3111_daily_bin307.fits outfile=/scratch/kocevski/769346/expmap_318902401_319161601_4FGL_J1446.3+3111_daily_bin307.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/769346/ltcube_318902401_319161601_4FGL_J1446.3+3111_daily_bin307.fits
.....................!
real 190.43
user 185.73
sys 4.32

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/769346/ft1_filtered_4FGL_J1446.3+3111_daily_bin307.fits scfile=/scratch/kocevski/769346/ft2_4FGL_J1446.3+3111_daily_bin307.fits outfile=/scratch/kocevski/769346/cmap_318902401_319161601_4FGL_J1446.3+3111_daily_bin307.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769346/ft1_filtered_4FGL_J1446.3+3111_daily_bin307.fits scfile=/scratch/kocevski/769346/ft2_4FGL_J1446.3+3111_daily_bin307.fits outfile=/scratch/kocevski/769346/cmap_HighResolution_318902401_319161601_4FGL_J1446.3+3111_daily_bin307.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/769346/ft1_filtered_4FGL_J1446.3+3111_daily_bin307.fits', '/scratch/kocevski/769346/ft2_4FGL_J1446.3+3111_daily_bin307.fits', expMap='/scratch/kocevski/769346/expmap_318902401_319161601_4FGL_J1446.3+3111_daily_bin307.fits', expCube='/scratch/kocevski/769346/ltcube_318902401_319161601_4FGL_J1446.3+3111_daily_bin307.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/769346/Model_4FGL_J1446.3+3111_daily_bin307.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/769346/ft1_filtered_4FGL_J1446.3+3111_daily_bin307.fits
Spacecraft file(s): /scratch/kocevski/769346/ft2_4FGL_J1446.3+3111_daily_bin307.fits
Exposure map: /scratch/kocevski/769346/expmap_318902401_319161601_4FGL_J1446.3+3111_daily_bin307.fits
Exposure cube: /scratch/kocevski/769346/ltcube_318902401_319161601_4FGL_J1446.3+3111_daily_bin307.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/769346/Model_4FGL_J1446.3+3111_daily_bin307.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) = 7070.54509219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.5658       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9898       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13136E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .46725E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.294       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8660       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.2335       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11947E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.519       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5995       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4940       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42819       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.7539       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .82465E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5227       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .63458       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=   7070.438     FROM MIGRAD    STATUS=CONVERGED   1216 CALLS     3383 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0892        4.8907        .19672E-03    .63518E-03
   2  Prefactor     .10000E-03    5.4992        .18142E-02** at limit **
   3  norm          9.5662        4.9066        .12607E-03    .38731E-03
   4  Prefactor     2.0176        14.224        .29372E-03    .10915E-04
   5  Prefactor     .10000E-03    19.909        .36285E-03** at limit **
   6  Prefactor     .10000E-03    3.9671        .23222E-02** at limit **
   7  norm          .10000E-03    32.753        .46773E-02** at limit **
   8  norm          19.293        4.4123        .81668E-04   -.12542E-03
   9  Prefactor     .10000E-03    7.5870        .18142E-02** at limit **
  10  norm          1.8659        1.8432        .10987E-03   -.10327E-03
  11  norm          .10000E-03    1.7978        .10991E-02** at limit **
  12  Prefactor     .10000E-03    16.679        .18142E-02** at limit **
  13  norm          5.2317        3.9123        .13931E-03    .75816E-04
  14  Prefactor     .10001E-03    79.592        .18142E-02** at limit **
  15  norm          11.520        7.8595        .11803E-03    .58657E-04
  16  Prefactor     4.5988        12.058        .18768E-03   -.52215E-04
  17  Prefactor     4.4929        5.3779        .18993E-03    .24554E-03
  18  Prefactor     .10000E-03    8.7916        .18142E-02** at limit **
  19  norm          .10000E-03    .42047        .52876E-03** at limit **
  20  Prefactor     .12269        73.804        .19935       -.10820E-04
  21  Prefactor     .10000E-03    3.5833        .15487E-02** at limit **
  22  norm          7.7564        1.9932        .48281E-04   -.87002E-03
  23  Prefactor     .60564E-01    13.355        .55805E-01   -.61453E-04
  24  Prefactor     .10000E-03    11.855        .18142E-02** at limit **
  25  Prefactor     .10000E-03    28.058        .18142E-02** at limit **
  26  Normalizat    1.5228        .20466        .22691E-03    .19425E-03
  27  Prefactor     .63459        .17828        .30626E-03    .56795E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.08923
  Prefactor  = 0.0001
  norm       = 9.56624
  Prefactor  = 2.01759
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100001
  norm       = 19.2927
  Prefactor  = 0.0001
  norm       = 1.86587
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.23171
  Prefactor  = 0.000100007
  norm       = 11.5205
  Prefactor  = 4.5988
  Prefactor  = 4.49293
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.122694
  Prefactor  = 0.0001
  norm       = 7.75639
  Prefactor  = 0.0605639
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.52281
  Prefactor  = 0.634588
 **********
 **   18 **HESSE 
 **********

 FCN=   7070.438     FROM HESSE     STATUS=OK           480 CALLS     3863 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0892        4.8907        .78689E-05   -1.5304    
   2  Prefactor     .10000E-03    5.4994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.5662        4.9058        .50428E-05   -1.5089    
   4  Prefactor     2.0176        14.183        .11749E-04   -1.5424    
   5  Prefactor     .10000E-03    19.909        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9808        .46444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    33.015        .93546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.293        4.4124        .32667E-05   -1.4829    
   9  Prefactor     .10000E-03    7.5873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8659        1.8432        .43948E-05   -1.5435    
  11  norm          .10000E-03    1.7979        .21982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.679        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.2317        3.9123        .55722E-05   -1.5250    
  14  Prefactor     .10001E-03    79.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.520        7.8592        .47214E-05   -1.5029    
  16  Prefactor     4.5988        12.056        .75073E-05   -1.5279    
  17  Prefactor     4.4929        5.3776        .75970E-05   -1.5284    
  18  Prefactor     .10000E-03    8.7971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .42048        .10575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12269        78.769        .19118       -1.5638    
  21  Prefactor     .10000E-03    3.5841        .30974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.7564        1.9662        .96561E-05   -1.5151    
  23  Prefactor     .60564E-01    10.161        .65614E-01   -1.5659    
  24  Prefactor     .10000E-03    11.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    28.063        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.5228        .20478        .45383E-04   -.77139    
  27  Prefactor     .63459        .17839        .12250E-04   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33576e-09
Minuit parameter uncertainties:
  1  4.89113
  2  1.99382e-05
  3  4.90598
  4  10.7022
  5  8.55074e-05
  6  0.000190429
  7  0.000395569
  8  4.41243
  9  1.23459e-05
  10  1.84321
  11  9.16553e-06
  12  0.000293273
  13  3.91252
  14  0.00152806
  15  7.85991
  16  12.0627
  17  5.37813
  18  0.000106366
  19  5.59855e-06
  20  6.22324
  21  2.28482e-05
  22  1.96621
  23  1.56789
  24  1.49377e-05
  25  0.000383613
  26  0.204895
  27  0.178551
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.528e-03  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:  6.346e-01  1.786e-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:  1.523e+00  2.049e-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: 8.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/769346/likelihoodResults_318902401_319161601_4FGL_J1446.3+3111_daily_bin307.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) = 7070.43846641
delta logL = -5.97540920353e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7070.43840682
delta logL = -1.56735040946e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5079       1.0000          .0000       10.000    
     3 'Normalizat'    1.5228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63459       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=   7070.438     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      290 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    8687.5        .18142E-02** at limit **
   2  Index         2.6047        8.5100        .50000       -.16054E-04
   3  Normalizat    1.5228        .51325E-01    .22691E-03    .27757E-04
   4  Prefactor     .63459        .47040E-01    .30627E-03   -.12287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010003
  Index      = 2.60473
  Normalizat = 1.52281
  Prefactor  = 0.634589
 **********
 **   18 **HESSE 
 **********

 FCN=   7070.438     FROM HESSE     STATUS=OK            29 CALLS      319 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    282.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6047        5.8913        .50000       -.49958    
   3  Normalizat    1.5228        .19189        .90763E-05   -.77139    
   4  Prefactor     .63459        .17589        .12251E-04   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94661e-10
Minuit parameter uncertainties:
  1  0.00583768
  2  7.25414
  3  0.191984
  4  0.176046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769346': 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) = 7070.43840649
delta logL = 1.67893631442e-07

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  5.838e-03  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.605e+00  7.254e+00  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:  6.346e-01  1.760e-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:  1.523e+00  1.920e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/769346/cmap_HighResolution_318902401_319161601_4FGL_J1446.3+3111_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', job_status='DONE', photon_flux_upper_limit='8.47e-08', time_completed='2021-09-10 09:01:42.388708', job_id='769346', GAL2='0.63', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1631289702.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='307' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:01:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 769346: <4FGL_J1446.3+3111_daily_bin307> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin307> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 08:46:22 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:46:23 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:46:23 2021
Terminated at Fri Sep 10 09:01:43 2021
Results reported at Fri Sep 10 09:01:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin307 221.591 31.1955 318902401 319161601 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 :                                   790.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

