/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 210 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7371
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1422
RA = 221.591, Dec = 31.1955
tmin = 607910401, tmax = 608169601
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='776602', job_status='RUN', time_executed='2021-09-10 09:14:48.673249', time_epoch_executed='1631290488.67' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776602

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776602/ft1_4FGL_J1446.3+3111_daily_bin1422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776602/ft2_4FGL_J1446.3+3111_daily_bin1422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776602/ft1_4FGL_J1446.3+3111_daily_bin1422.fits outfile=/scratch/kocevski/776602/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1422.fits ra=221.591 dec=31.1955 rad=12.0 tmin=607910401.0 tmax=608169601.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.50
user 3.29
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776602/ft1_filtered_4FGL_J1446.3+3111_daily_bin1422.fits" evtable="EVENTS" scfile=/scratch/kocevski/776602/ft2_4FGL_J1446.3+3111_daily_bin1422.fits sctable="SC_DATA" outfile=/scratch/kocevski/776602/ltcube_607910401_608169601_4FGL_J1446.3+3111_daily_bin1422.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/776602/ft2_4FGL_J1446.3+3111_daily_bin1422.fits
.....................!
real 11.93
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776602/ft1_filtered_4FGL_J1446.3+3111_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/776602/ft2_4FGL_J1446.3+3111_daily_bin1422.fits sctable="SC_DATA" expcube=/scratch/kocevski/776602/ltcube_607910401_608169601_4FGL_J1446.3+3111_daily_bin1422.fits outfile=/scratch/kocevski/776602/expmap_607910401_608169601_4FGL_J1446.3+3111_daily_bin1422.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/776602/ltcube_607910401_608169601_4FGL_J1446.3+3111_daily_bin1422.fits
.....................!
real 189.54
user 185.25
sys 3.94

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/776602/ft1_filtered_4FGL_J1446.3+3111_daily_bin1422.fits scfile=/scratch/kocevski/776602/ft2_4FGL_J1446.3+3111_daily_bin1422.fits outfile=/scratch/kocevski/776602/cmap_607910401_608169601_4FGL_J1446.3+3111_daily_bin1422.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776602/ft1_filtered_4FGL_J1446.3+3111_daily_bin1422.fits scfile=/scratch/kocevski/776602/ft2_4FGL_J1446.3+3111_daily_bin1422.fits outfile=/scratch/kocevski/776602/cmap_HighResolution_607910401_608169601_4FGL_J1446.3+3111_daily_bin1422.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6042       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6774       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1075       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.372       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8017       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42543       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0892       1.0000         .10000E-03   10000.    
    11 'norm      '    6.1426       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1186       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7024       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.975       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .47168       1.0000         .10000E-03   10000.    
    20 'Prefactor '    81.896       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.8585       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.6780       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2189       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .67670       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.

 FCN=   6098.686     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     2845 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6037        4.1020        .12076E-05   -.16730E-02
   2  Prefactor     5.6772        15.889        .53809E-06   -.14334E-05
   3  norm          3.1074        3.0943        .42664E-07   -.88255E-04
   4  Prefactor     .10000E-03    6.4880        .65304E-06** at limit **
   5  Prefactor     .10000E-03    5.4058        .14350E-06** at limit **
   6  Prefactor     11.371        4.4467       -.17838E-06   -.36196E-03
   7  norm          .10000E-03    3.8466        .11317E-07** at limit **
   8  norm          3.8017        2.1173       -.45919E-08    .35323E-04
   9  Prefactor     .35775        20.177        .87703E-07   -.30731E-04
  10  norm          2.0892        2.4053        .34379E-07   -.78702E-04
  11  norm          6.1425        4.9154       -.21318E-07   -.62561E-04
  12  Prefactor     .10000E-03    55.530       -.35061E-07** at limit **
  13  norm          4.1187        3.2538        .61241E-08   -.33132E-05
  14  Prefactor     .10000E-03    21.830        .66590E-07** at limit **
  15  norm          4.7025        6.6990        .61824E-07   -.29874E-04
  16  Prefactor     21.966        15.760       -.39738E-06   -.15972E-03
  17  Prefactor     .10000E-03    3.0281       -.41000E-07** at limit **
  18  Prefactor     .10000E-03    6.0593       -.36045E-06** at limit **
  19  norm          .47343        1.3142        .58937E-06   -.20765E-03
  20  Prefactor     81.875        56.171       -.54037E-05   -.40837E-03
  21  Prefactor     .10000E-03    6.6942       -.27045E-06** at limit **
  22  norm          1.8584        1.2536        .44698E-07   -.18006E-03
  23  Prefactor     .10000E-03    5.2236       -.41922E-07** at limit **
  24  Prefactor     .10000E-03    10.143        .14378E-09** at limit **
  25  Prefactor     6.6795        14.344        .89647E-06    .64432E-04
  26  Normalizat    1.2190        .17643        .58078E-07   -.96828E-04
  27  Prefactor     .67662        .15101       -.23872E-06   -.23344E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60365
  Prefactor  = 5.67716
  norm       = 3.10742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3711
  norm       = 0.0001
  norm       = 3.80174
  Prefactor  = 0.357749
  norm       = 2.08918
  norm       = 6.14246
  Prefactor  = 0.0001
  norm       = 4.11873
  Prefactor  = 0.0001
  norm       = 4.70251
  Prefactor  = 21.9661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.473431
  Prefactor  = 81.8752
  Prefactor  = 0.0001
  norm       = 1.85843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.67949
  Normalizat = 1.21899
  Prefactor  = 0.676621
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.686     FROM HESSE     STATUS=OK           498 CALLS     3343 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6037        5.0418        .88568E-03   -1.5279    
   2  Prefactor     5.6772        15.848        .16858E-03   -1.5231    
   3  norm          3.1074        3.0875        .13252E-03   -1.5355    
   4  Prefactor     .10000E-03    6.5118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4193        .17726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.371        4.4749        .98379E-04   -1.5033    
   7  norm          .10000E-03    3.8474        .14958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8017        2.1197        .82480E-04   -1.5318    
   9  Prefactor     .35775        27.434        .10305       -1.5588    
  10  norm          2.0892        2.3943        .12629E-03   -1.5419    
  11  norm          6.1425        4.9192        .14951E-03   -1.5212    
  12  Prefactor     .10000E-03    55.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1187        3.2536        .12149E-03   -1.5302    
  14  Prefactor     .10000E-03    21.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7025        6.6913        .18557E-03   -1.5274    
  16  Prefactor     21.966        15.840        .85444E-04   -1.4770    
  17  Prefactor     .10000E-03    3.0388        .13260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.1313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .47343        1.3069        .13723E-03   -1.5570    
  20  Prefactor     81.875        59.961        .22192E-03   -1.3896    
  21  Prefactor     .10000E-03    6.7860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.8584        1.2442        .67501E-04   -1.5435    
  23  Prefactor     .10000E-03    5.2997        .17379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.6795        14.350        .15528E-03   -1.5191    
  26  Normalizat    1.2190        .21005        .22205E-03   -.86018    
  27  Prefactor     .67662        .17725        .26037E-03   -1.0445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47953e-09
Minuit parameter uncertainties:
  1  5.04231
  2  15.8593
  3  3.08766
  4  4.53012e-05
  5  7.13317e-06
  6  4.47506
  7  2.71912e-08
  8  2.11977
  9  6.26768
  10  2.3944
  11  4.91957
  12  1.08919e-05
  13  3.25379
  14  1.43395e-05
  15  6.6924
  16  15.8428
  17  6.83466e-07
  18  2.855e-05
  19  1.30696
  20  60.0056
  21  2.35393e-05
  22  1.24424
  23  2.36208e-06
  24  8.56788e-08
  25  14.3576
  26  0.210191
  27  0.177393
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.434e-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:  6.766e-01  1.774e-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.219e+00  2.102e-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: 7.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/776602/likelihoodResults_607910401_608169601_4FGL_J1446.3+3111_daily_bin1422.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) = 6098.68603818
delta logL = -0.000217709397475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6098.68582062
delta logL = -1.48076651385e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4648       1.0000          .0000       10.000    
     3 'Normalizat'    1.2190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67662       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.

 FCN=   6098.686     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      235 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6929.5        .90712E-02** at limit **
   2  Index         2.4800        5.2343        .50000       -.65266E-05
   3  Normalizat    1.2190        .10781        .50225E-01    .20576E-04
   4  Prefactor     .67662        .96757E-01    .42089E-01    .28463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47999
  Normalizat = 1.21899
  Prefactor  = 0.676621
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.686     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4800        6.2398        .50000       -.52823    
   3  Normalizat    1.2190        .19157        .22205E-03   -.86018    
   4  Prefactor     .67662        .17307        .26037E-03   -1.0445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34405e-11
Minuit parameter uncertainties:
  1  6.22232e-05
  2  4.55949
  3  0.191678
  4  0.173211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776602': 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) = 6098.68582058
delta logL = -1.15352122521e-07

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  6.222e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.480e+00  4.559e+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.766e-01  1.732e-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.219e+00  1.917e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/776602/cmap_HighResolution_607910401_608169601_4FGL_J1446.3+3111_daily_bin1422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-10 09:25:56.826123', job_id='776602', GAL2='0.68', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631291156.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-1.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1422' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:25:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 776602: <4FGL_J1446.3+3111_daily_bin1422> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin1422> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 09:11:08 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:11:09 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:11:09 2021
Terminated at Fri Sep 10 09:25:57 2021
Results reported at Fri Sep 10 09:25:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1422 221.591 31.1955 607910401 608169601 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 :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            889 sec.

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

