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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1250
RA = 221.591, Dec = 31.1955
tmin = 563328001, tmax = 563587201
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='775217', job_status='RUN', time_executed='2021-09-10 09:06:36.988423', time_epoch_executed='1631289996.99' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775217/ft1_4FGL_J1446.3+3111_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775217/ft2_4FGL_J1446.3+3111_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775217/ft1_4FGL_J1446.3+3111_daily_bin1250.fits outfile=/scratch/kocevski/775217/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1250.fits ra=221.591 dec=31.1955 rad=12.0 tmin=563328001.0 tmax=563587201.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.97
user 2.77
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775217/ft1_filtered_4FGL_J1446.3+3111_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/775217/ft2_4FGL_J1446.3+3111_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/775217/ltcube_563328001_563587201_4FGL_J1446.3+3111_daily_bin1250.fits outfile=/scratch/kocevski/775217/expmap_563328001_563587201_4FGL_J1446.3+3111_daily_bin1250.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/775217/ltcube_563328001_563587201_4FGL_J1446.3+3111_daily_bin1250.fits
.....................!
real 190.22
user 185.55
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/775217/ft1_filtered_4FGL_J1446.3+3111_daily_bin1250.fits scfile=/scratch/kocevski/775217/ft2_4FGL_J1446.3+3111_daily_bin1250.fits outfile=/scratch/kocevski/775217/cmap_563328001_563587201_4FGL_J1446.3+3111_daily_bin1250.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.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7464       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1609       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9028       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.364       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.592       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5862       1.0000         .10000E-03   10000.    
    11 'norm      '    12.882       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16704E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .46095E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37007E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.372       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7257       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .94645       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10684       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.6836       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.6933       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2861       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78450       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=   8886.775     FROM MIGRAD    STATUS=CONVERGED   1241 CALLS     3509 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7480        3.4993        .24343E-03    .26433E-04
   2  Prefactor     6.1631        10.004        .16174E-03    .22914E-04
   3  norm          .10000E-03    2.1203        .26392E-03** at limit **
   4  Prefactor     .10000E-03    5.6008        .18142E-02** at limit **
   5  Prefactor     .10000E-03    5.7339        .18142E-02** at limit **
   6  Prefactor     4.9036        3.0064        .60888E-03   -.97092E-04
   7  norm          .10000E-03    5.5871        .18142E-02** at limit **
   8  norm          10.365        3.1917        .90223E-04   -.59475E-04
   9  Prefactor     28.582        23.455        .74926E-04    .66763E-05
  10  norm          1.5880        3.5885        .12968E-02   -.45056E-03
  11  norm          12.871        6.3925        .11160E-03    .73954E-04
  12  Prefactor     .10001E-03    218.54        .92916E-02** at limit **
  13  norm          .10000E-03    1.9514        .12789E-02** at limit **
  14  Prefactor     .10000E-03    9.6270        .18142E-02** at limit **
  15  norm          .10000E-03    1.7689        .12241E-02** at limit **
  16  Prefactor     .18354        8.5579        .74399E-01    .38945E-03
  17  Prefactor     .24761E-03    4.3836        .56748E-01** at limit **
  18  Prefactor     18.376        8.7902        .93443E-04   -.72707E-04
  19  norm          1.7244        1.3919        .90495E-04    .58140E-03
  20  Prefactor     .10000E-03    18.175        .18142E-02** at limit **
  21  Prefactor     .10000E-03    5.3283        .18142E-02** at limit **
  22  norm          .94414        1.0800        .80119E-03    .39232E-03
  23  Prefactor     .12803        12.841        .56771E-01    .44954E-03
  24  Prefactor     2.6503        36.990        .24873E-03    .12432E-04
  25  Prefactor     9.6953        14.027        .12871E-03   -.79494E-05
  26  Normalizat    1.2861        .18348        .23236E-03    .31607E-04
  27  Prefactor     .78426        .16110        .26841E-03    .10674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.748
  Prefactor  = 6.16307
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.9036
  norm       = 0.0001
  norm       = 10.3649
  Prefactor  = 28.5819
  norm       = 1.58803
  norm       = 12.8706
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.183537
  Prefactor  = 0.000247608
  Prefactor  = 18.3756
  norm       = 1.72435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.944141
  Prefactor  = 0.128027
  Prefactor  = 2.65035
  Prefactor  = 9.69525
  Normalizat = 1.28606
  Prefactor  = 0.784259
 **********
 **   18 **HESSE 
 **********

 FCN=   8886.775     FROM HESSE     STATUS=OK           496 CALLS     4005 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7480        3.4990        .97373E-05   -1.5444    
   2  Prefactor     6.1631        10.003        .64696E-05   -1.5211    
   3  norm          .10000E-03    2.1204        .52785E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6024        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9036        3.0057        .24355E-04   -1.5265    
   7  norm          .10000E-03    5.5882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.365        3.1915        .36089E-05   -1.5064    
   9  Prefactor     28.582        23.442        .29970E-05   -1.4638    
  10  norm          1.5880        3.5865        .51871E-04   -1.5456    
  11  norm          12.871        6.3864        .44642E-05   -1.4990    
  12  Prefactor     .10001E-03    227.34        .37167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9518        .25578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6275        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7689        .24482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .18354        8.0401        .77970E-01   -1.5622    
  17  Prefactor     .24761E-03    4.3095        .57568E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.376        8.7901        .18689E-04   -1.4850    
  19  norm          1.7244        1.3920        .36198E-05   -1.5445    
  20  Prefactor     .10000E-03    18.176        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .94414        1.0522        .32048E-04   -1.5514    
  23  Prefactor     .12803        10.633        .61686E-01   -1.5636    
  24  Prefactor     2.6503        36.554        .99492E-05   -1.5382    
  25  Prefactor     9.6953        14.028        .51484E-05   -1.5085    
  26  Normalizat    1.2861        .18350        .92945E-05   -.83983    
  27  Prefactor     .78426        .16121        .10736E-04   -1.0031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28412e-09
Minuit parameter uncertainties:
  1  3.49942
  2  10.0053
  3  1.09883e-05
  4  3.88784e-06
  5  2.21756e-05
  6  3.00581
  7  7.3743e-06
  8  3.19153
  9  23.4496
  10  3.58694
  11  6.38675
  12  0.00307904
  13  7.94416e-06
  14  1.86481e-05
  15  5.11125e-06
  16  2.42921
  17  0.0504465
  18  8.79076
  19  1.39198
  20  6.09993e-06
  21  3.15755e-05
  22  1.05224
  23  2.33298
  24  19.7
  25  14.0327
  26  0.183596
  27  0.16131
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.865e-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:  7.843e-01  1.613e-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.286e+00  1.836e-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: 4.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/775217/likelihoodResults_563328001_563587201_4FGL_J1446.3+3111_daily_bin1250.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) = 8886.77504675
delta logL = -0.000494725749377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8886.77455257
delta logL = -5.51799530513e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5347       1.0000          .0000       10.000    
     3 'Normalizat'    1.2861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78422       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=   8886.775     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      262 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.207        .18142E-01** at limit **
   2  Index         1.8932        5.6670        .50000       -.44565E-07
   3  Normalizat    1.2861        .77433E-02    .23236E-03    .34836E-04
   4  Prefactor     .78426        .72109E-02    .26841E-03    .34223E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89317
  Normalizat = 1.28606
  Prefactor  = 0.784259
 **********
 **   18 **HESSE 
 **********

 FCN=   8886.775     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    313.25        .34269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8932        8.8281        .50000       -.67048    
   3  Normalizat    1.2861        .18367E-01    .92945E-05   -.83983    
   4  Prefactor     .78426        .17104E-01    .10736E-04   -1.0031    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94876e-10
Minuit parameter uncertainties:
  1  0.000133594
  2  805.192
  3  0.0183669
  4  0.017104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775217': 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) = 8886.77455042
delta logL = 1.59773662745e-06

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.336e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  1.893e+00  8.052e+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:  7.843e-01  1.710e-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:  1.286e+00  1.837e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/775217/cmap_HighResolution_563328001_563587201_4FGL_J1446.3+3111_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.59e-08', time_completed='2021-09-10 09:21:38.870151', job_id='775217', GAL2='0.78', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631290898.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1250' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 775217: <4FGL_J1446.3+3111_daily_bin1250> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin1250> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 10 09:06:26 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:06:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 09:06:27 2021
Terminated at Fri Sep 10 09:21:39 2021
Results reported at Fri Sep 10 09:21:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1250 221.591 31.1955 563328001 563587201 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 :                                   901.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            913 sec.

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

