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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin549
RA = 221.591, Dec = 31.1955
tmin = 381628801, tmax = 381888001
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='772062', job_status='RUN', time_executed='2021-09-10 08:59:43.433041', time_epoch_executed='1631289583.43' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772062

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772062/ft1_4FGL_J1446.3+3111_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772062/ft2_4FGL_J1446.3+3111_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772062/ft1_4FGL_J1446.3+3111_daily_bin549.fits outfile=/scratch/kocevski/772062/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin549.fits ra=221.591 dec=31.1955 rad=12.0 tmin=381628801.0 tmax=381888001.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 4.15
user 3.71
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772062/ft1_filtered_4FGL_J1446.3+3111_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/772062/ft2_4FGL_J1446.3+3111_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/772062/ltcube_381628801_381888001_4FGL_J1446.3+3111_daily_bin549.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/772062/ft2_4FGL_J1446.3+3111_daily_bin549.fits
.....................!
real 12.65
user 11.69
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772062/ft1_filtered_4FGL_J1446.3+3111_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/772062/ft2_4FGL_J1446.3+3111_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/772062/ltcube_381628801_381888001_4FGL_J1446.3+3111_daily_bin549.fits outfile=/scratch/kocevski/772062/expmap_381628801_381888001_4FGL_J1446.3+3111_daily_bin549.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/772062/ltcube_381628801_381888001_4FGL_J1446.3+3111_daily_bin549.fits
.....................!
real 199.57
user 186.31
sys 9.75

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/772062/ft1_filtered_4FGL_J1446.3+3111_daily_bin549.fits scfile=/scratch/kocevski/772062/ft2_4FGL_J1446.3+3111_daily_bin549.fits outfile=/scratch/kocevski/772062/cmap_381628801_381888001_4FGL_J1446.3+3111_daily_bin549.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.61
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772062/ft1_filtered_4FGL_J1446.3+3111_daily_bin549.fits scfile=/scratch/kocevski/772062/ft2_4FGL_J1446.3+3111_daily_bin549.fits outfile=/scratch/kocevski/772062/cmap_HighResolution_381628801_381888001_4FGL_J1446.3+3111_daily_bin549.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.0188       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9677       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2900       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.9083       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.637       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1599       1.0000         .10000E-03   10000.    
    11 'norm      '    .29258E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2107       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.147       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3656       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.097       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0818       1.0000         .10000E-03   10000.    
    19 'norm      '    2.1284       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.4671       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11442E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.567       1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.269       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1271       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89724       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=   6568.586     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3292 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4591        4.1892        .13949E-06    .85875E-04
   2  Prefactor     .10000E-03    4.7309        .88762E-07** at limit **
   3  norm          8.0185        4.3958       -.14047E-06   -.42422E-03
   4  Prefactor     .10000E-03    4.7398       -.35262E-07** at limit **
   5  Prefactor     3.9681        11.143        .29655E-06    .34589E-04
   6  Prefactor     6.2888        4.4008       -.89440E-07   -.45480E-03
   7  norm          .10000E-03    4.9922       -.10154E-06** at limit **
   8  norm          8.9078        3.0955        .49258E-07    .28161E-03
   9  Prefactor     17.640        26.628        .13203E-05    .27770E-03
  10  norm          5.1599        3.0766        .26562E-07    .17610E-04
  11  norm          .10026E-03    6.6116       -.22053E-05** at limit **
  12  Prefactor     9.2110        45.272        .36403E-06    .65025E-04
  13  norm          .10000E-03    1.0879       -.49741E-09** at limit **
  14  Prefactor     .10001E-03    12.040       -.30092E-05** at limit **
  15  norm          14.148        8.9963       -.10824E-06    .16200E-03
  16  Prefactor     9.3646        12.287        .15926E-05    .21634E-04
  17  Prefactor     12.098        9.1739        .73607E-06    .54169E-04
  18  Prefactor     9.0823        8.5101        .15349E-05   -.19925E-03
  19  norm          2.1282        1.7352       -.97949E-07    .12675E-03
  20  Prefactor     .10003E-03    23.297        .43131E-05** at limit **
  21  Prefactor     .10002E-03    5.4469        .24771E-05** at limit **
  22  norm          2.4674        1.3251        .67792E-07    .12628E-02
  23  Prefactor     .10002E-03    6.3248       -.12611E-05** at limit **
  24  Prefactor     36.564        35.830       -.74142E-06   -.90048E-04
  25  Prefactor     19.270        22.122        .28617E-06    .70457E-04
  26  Normalizat    1.1274        .18419       -.25455E-06    .23525E-03
  27  Prefactor     .89705        .16220       -.43773E-06    .74047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.45912
  Prefactor  = 0.0001
  norm       = 8.01845
  Prefactor  = 0.0001
  Prefactor  = 3.96815
  Prefactor  = 6.28885
  norm       = 0.0001
  norm       = 8.90781
  Prefactor  = 17.6397
  norm       = 5.15988
  norm       = 0.000100256
  Prefactor  = 9.21098
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 14.1481
  Prefactor  = 9.36465
  Prefactor  = 12.0975
  Prefactor  = 9.08225
  norm       = 2.12821
  Prefactor  = 0.000100026
  Prefactor  = 0.000100017
  norm       = 2.46744
  Prefactor  = 0.000100024
  Prefactor  = 36.564
  Prefactor  = 19.2697
  Normalizat = 1.12741
  Prefactor  = 0.897046
 **********
 **   18 **HESSE 
 **********

 FCN=   6568.586     FROM HESSE     STATUS=OK           498 CALLS     3790 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4591        4.1881        .17725E-03   -1.5336    
   2  Prefactor     .10000E-03    4.7328        .17218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.0185        4.4035        .12086E-03   -1.5142    
   4  Prefactor     .10000E-03    4.7471        .17222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9681        11.134        .20249E-03   -1.5310    
   6  Prefactor     6.2888        4.4499        .13359E-03   -1.5206    
   7  norm          .10000E-03    4.9960        .17686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.9078        3.0967        .81586E-04   -1.5111    
   9  Prefactor     17.640        26.898        .95370E-04   -1.4868    
  10  norm          5.1599        3.0755        .10667E-03   -1.5254    
  11  norm          .10026E-03    41.626        .34392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.2110        44.674        .13206E-03   -1.5101    
  13  norm          .10000E-03    1.0904        .82548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    12.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.148        8.9849        .10649E-03   -1.4956    
  16  Prefactor     9.3646        12.620        .65477E-03   -1.5096    
  17  Prefactor     12.098        9.2892        .57588E-03   -1.5012    
  18  Prefactor     9.0823        8.9462        .66498E-03   -1.5105    
  19  norm          2.1282        1.7259        .85104E-04   -1.5416    
  20  Prefactor     .10003E-03    25.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    12.276        .30407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.4674        1.2274        .59714E-04   -1.5394    
  23  Prefactor     .10002E-03    21.916        .32796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     36.564        34.615        .66275E-04   -1.4498    
  25  Prefactor     19.270        22.140        .91242E-04   -1.4830    
  26  Normalizat    1.1274        .21729        .24768E-03   -.88877    
  27  Prefactor     .89705        .19120        .25527E-03   -.96244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07186e-08
Minuit parameter uncertainties:
  1  4.18848
  2  1.48025e-05
  3  4.40363
  4  2.64023e-06
  5  11.1396
  6  4.45014
  7  1.47054e-05
  8  3.09671
  9  26.916
  10  3.0756
  11  0.00652795
  12  40.6194
  13  1.80783e-07
  14  0.000805606
  15  8.98578
  16  12.6241
  17  9.29026
  18  8.94747
  19  1.72591
  20  0.00161538
  21  0.000923749
  22  1.22737
  23  0.0014465
  24  34.634
  25  22.149
  26  0.217467
  27  0.191344
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  8.056e-04  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:  8.970e-01  1.913e-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.127e+00  2.175e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/772062/likelihoodResults_381628801_381888001_4FGL_J1446.3+3111_daily_bin549.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) = 6568.58605466
delta logL = -0.00036867183826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6568.58568657
delta logL = -5.82358552492e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11227E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5354       1.0000          .0000       10.000    
     3 'Normalizat'    1.1273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89716       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=   6568.586     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      259 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.432        .18142E-01** at limit **
   2  Index         2.0682        5.9484        .50000        .79740E-07
   3  Normalizat    1.1274        .72459E-02    .24768E-03   -.13766E-03
   4  Prefactor     .89705        .67795E-02    .25527E-03   -.13191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06823
  Normalizat = 1.12741
  Prefactor  = 0.897047
 **********
 **   18 **HESSE 
 **********

 FCN=   6568.586     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    258.38        .31774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0682        5.4351        .50000       -.62655    
   3  Normalizat    1.1274        .17960E-01    .99073E-05   -.88877    
   4  Prefactor     .89705        .16804E-01    .10211E-04   -.96244    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79026e-10
Minuit parameter uncertainties:
  1  8.78804e-05
  2  815.317
  3  0.01796
  4  0.0168041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772062': 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) = 6568.58568521
delta logL = 7.75885382609e-07

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  8.788e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.068e+00  8.153e+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:  8.970e-01  1.680e-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.127e+00  1.796e-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/772062/cmap_HighResolution_381628801_381888001_4FGL_J1446.3+3111_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.81e-08', time_completed='2021-09-10 09:12:19.949814', job_id='772062', GAL2='0.90', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631290339.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='7.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='549' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:12:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 772062: <4FGL_J1446.3+3111_daily_bin549> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin549> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 08:56:17 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:56:21 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:56:21 2021
Terminated at Fri Sep 10 09:12:20 2021
Results reported at Fri Sep 10 09:12:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin549 221.591 31.1955 381628801 381888001 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 :                                   750.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            963 sec.

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

