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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin492
RA = 221.591, Dec = 31.1955
tmin = 366854401, tmax = 367113601
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='770801', job_status='RUN', time_executed='2021-09-10 08:51:29.221093', time_epoch_executed='1631289089.22' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/770801

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/770801/ft1_4FGL_J1446.3+3111_daily_bin492.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/770801/ft2_4FGL_J1446.3+3111_daily_bin492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/770801/ft1_4FGL_J1446.3+3111_daily_bin492.fits outfile=/scratch/kocevski/770801/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin492.fits ra=221.591 dec=31.1955 rad=12.0 tmin=366854401.0 tmax=367113601.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 5.33
user 5.05
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/770801/ft1_filtered_4FGL_J1446.3+3111_daily_bin492.fits" evtable="EVENTS" scfile=/scratch/kocevski/770801/ft2_4FGL_J1446.3+3111_daily_bin492.fits sctable="SC_DATA" outfile=/scratch/kocevski/770801/ltcube_366854401_367113601_4FGL_J1446.3+3111_daily_bin492.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/770801/ft2_4FGL_J1446.3+3111_daily_bin492.fits
.....................!
real 11.46
user 11.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/770801/ft1_filtered_4FGL_J1446.3+3111_daily_bin492.fits evtable="EVENTS" scfile=/scratch/kocevski/770801/ft2_4FGL_J1446.3+3111_daily_bin492.fits sctable="SC_DATA" expcube=/scratch/kocevski/770801/ltcube_366854401_367113601_4FGL_J1446.3+3111_daily_bin492.fits outfile=/scratch/kocevski/770801/expmap_366854401_367113601_4FGL_J1446.3+3111_daily_bin492.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/770801/ltcube_366854401_367113601_4FGL_J1446.3+3111_daily_bin492.fits
.....................!
real 191.56
user 187.25
sys 3.99

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/770801/ft1_filtered_4FGL_J1446.3+3111_daily_bin492.fits scfile=/scratch/kocevski/770801/ft2_4FGL_J1446.3+3111_daily_bin492.fits outfile=/scratch/kocevski/770801/cmap_366854401_367113601_4FGL_J1446.3+3111_daily_bin492.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/770801/ft1_filtered_4FGL_J1446.3+3111_daily_bin492.fits scfile=/scratch/kocevski/770801/ft2_4FGL_J1446.3+3111_daily_bin492.fits outfile=/scratch/kocevski/770801/cmap_HighResolution_366854401_367113601_4FGL_J1446.3+3111_daily_bin492.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/770801/ft1_filtered_4FGL_J1446.3+3111_daily_bin492.fits evtable="EVENTS" scfile=/scratch/kocevski/770801/ft2_4FGL_J1446.3+3111_daily_bin492.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/770801/Model_4FGL_J1446.3+3111_daily_bin492.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/770801/ft1_filtered_4FGL_J1446.3+3111_daily_bin492.fits.....................!
real 48.19
user 47.00
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3718       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.180       1.0000         .10000E-03   10000.    
     3 'norm      '    10.663       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26759E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.065       1.0000         .10000E-03   10000.    
     8 'norm      '    8.1927       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.661       1.0000         .10000E-03   10000.    
    10 'norm      '    .12418E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.723       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.3619       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.679       1.0000         .10000E-03   10000.    
    15 'norm      '    .19545E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .75601E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.6421       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6673       1.0000         .10000E-03   10000.    
    22 'norm      '    6.1522       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .52474E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.043       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95429       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94849       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=   6186.884     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3381 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3669        8.4761        .18706E-06    .31805E-04
   2  Prefactor     12.181        12.787       -.12322E-06   -.14511E-04
   3  norm          10.663        5.1052       -.14221E-06   -.59176E-04
   4  Prefactor     .10000E-03    12.024        .12634E-05** at limit **
   5  Prefactor     .10000E-03    11.772       -.12257E-05** at limit **
   6  Prefactor     .10000E-03    2.8035       -.45839E-07** at limit **
   7  norm          16.069        15.283        .59880E-07   -.10472E-04
   8  norm          8.1927        3.3923       -.27364E-07    .78012E-04
   9  Prefactor     14.661        22.065       -.18315E-07   -.13368E-05
  10  norm          .10000E-03    5.7560       -.40339E-05** at limit **
  11  norm          13.722        8.6432        .25644E-06    .57832E-04
  12  Prefactor     .10000E-03    23.163        .28581E-05** at limit **
  13  norm          5.3622        5.6245        .20282E-06    .12311E-03
  14  Prefactor     42.686        33.873       -.52557E-06   -.14188E-04
  15  norm          .10000E-03    9.7785        .14875E-05** at limit **
  16  Prefactor     .10000E-03    7.4769       -.29242E-05** at limit **
  17  Prefactor     .10001E-03    5.8392       -.29719E-06** at limit **
  18  Prefactor     .10000E-03    5.8784        .10542E-07** at limit **
  19  norm          6.6417        2.2526        .72505E-07    .33042E-03
  20  Prefactor     .10000E-03    17.901       -.25835E-05** at limit **
  21  Prefactor     5.6714        9.8703        .22501E-05    .55246E-03
  22  norm          6.1527        2.0284        .25494E-07   -.14326E-02
  23  Prefactor     .10004E-03    8.3739        .15940E-05** at limit **
  24  Prefactor     14.075        31.763       -.32420E-05   -.92333E-04
  25  Prefactor     .10000E-03    8.9049       -.17854E-05** at limit **
  26  Normalizat    .95492        .19642       -.30837E-07    .38150E-04
  27  Prefactor     .94798        .17397       -.74289E-06    .21358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.3669
  Prefactor  = 12.1815
  norm       = 10.6626
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 16.0695
  norm       = 8.19274
  Prefactor  = 14.6614
  norm       = 0.000100004
  norm       = 13.7217
  Prefactor  = 0.0001
  norm       = 5.3622
  Prefactor  = 42.686
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 6.64173
  Prefactor  = 0.0001
  Prefactor  = 5.67144
  norm       = 6.15267
  Prefactor  = 0.000100045
  Prefactor  = 14.0745
  Prefactor  = 0.0001
  Normalizat = 0.954923
  Prefactor  = 0.94798
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.884     FROM HESSE     STATUS=OK           506 CALLS     3887 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3669        8.4984        .13855E-03   -1.5129    
   2  Prefactor     12.181        12.731        .11478E-03   -1.5010    
   3  norm          10.663        5.1017        .11769E-03   -1.5055    
   4  Prefactor     .10000E-03    12.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    53.073        .49765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8666        .12847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.069        15.145        .99926E-04   -1.4906    
   8  norm          8.1927        3.3924        .89665E-04   -1.5135    
   9  Prefactor     14.661        22.042        .10460E-03   -1.4942    
  10  norm          .10000E-03    7.7770        .22132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.722        8.4529        .10812E-03   -1.4967    
  12  Prefactor     .10000E-03    23.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.3622        5.6373        .17355E-03   -1.5245    
  14  Prefactor     42.686        33.909        .61364E-04   -1.4400    
  15  norm          .10000E-03    41.788        .45172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    6.7982        .58427E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.6417        2.2615        .63164E-04   -1.5192    
  20  Prefactor     .10000E-03    17.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.6714        11.191        .84368E-03   -1.5232    
  22  norm          6.1527        1.7679        .52688E-04   -1.5212    
  23  Prefactor     .10004E-03    60.080        .36223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.075        31.709        .10689E-03   -1.4957    
  25  Prefactor     .10000E-03    8.9358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .95492        .22200        .27491E-03   -.94556    
  27  Prefactor     .94798        .19889        .25066E-03   -.94484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30556e-09
Minuit parameter uncertainties:
  1  8.49964
  2  12.7337
  3  5.1019
  4  5.04719e-05
  5  0.000923831
  6  2.77039e-06
  7  15.1487
  8  3.3925
  9  22.0542
  10  0.000368784
  11  8.45366
  12  0.000130381
  13  5.63784
  14  33.9242
  15  0.000627437
  16  7.67279e-05
  17  0.000461797
  18  3.28109e-07
  19  2.26151
  20  0.000110069
  21  11.1951
  22  1.76795
  23  0.00328707
  24  31.7474
  25  5.26935e-05
  26  0.222214
  27  0.19904
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  4.269e+01  3.392e+01  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:  9.480e-01  1.990e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.549e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.49
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.63e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.01e-05

TS (Fixed Index): 3.49
Ra Dec: 221.591 31.195
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/770801/likelihoodResults_366854401_367113601_4FGL_J1446.3+3111_daily_bin492.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): 0
logL (Free Index) = 6186.87869518
delta logL = 0.00482481410927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6186.87504144
delta logL = 0.00847854905805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.261       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6795       1.0000          .0000       10.000    
     3 'Normalizat'    .94957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95128       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=   6186.875     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      265 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.258        44.648        .63969E-04   -.47985E-05
   2  Index         2.6799        1.0299        .79313E-02   -.14364E-04
   3  Normalizat    .94928        .21511        .27563E-03   -.24001E-03
   4  Prefactor     .95154        .19246        .25025E-03   -.29608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.2577
  Index      = 2.67993
  Normalizat = 0.949284
  Prefactor  = 0.951538
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.875     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.258        41.815        .25588E-05   -1.4454    
   2  Index         2.6799        .96414        .31725E-03   -.48252    
   3  Normalizat    .94928        .21473        .11025E-04   -.94749    
   4  Prefactor     .95154        .19230        .50050E-04   -.94363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12727e-10
Minuit parameter uncertainties:
  1  41.8458
  2  0.971925
  3  0.214925
  4  0.192435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/770801': 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) = 6186.87504044
delta logL = 0.00847955217978

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  3.926e+01  4.185e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.680e+00  9.719e-01  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:  9.515e-01  1.924e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.493e-01  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.68 +/- 0.97
Photon Flux (Free Index): 5.06e-08 +/- 5.10e-08
Energy Flux (Free Index): 1.24e-05 +/- 9.79e-06

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/770801/cmap_HighResolution_366854401_367113601_4FGL_J1446.3+3111_daily_bin492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='4.63e-08', energy_flux2='1.24e-05', photon_flux_error='3.68e-08', dlogl='8.48e-03', energy_flux='1.27e-05', photon_flux2='5.06e-08', job_status='DONE', time_completed='2021-09-10 09:03:22.840499', photon_index_error2='0.97', photon_index2='2.68', ts='3.49', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='9.79e-06', EG='0.95', time_epoch_completed='1631289802.84', return_code='0', job_id='770801', GAL2='0.95', EG2='0.95', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='5.10e-08', ts2='3.50', photon_index='2.56' WHERE bin_id='492' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:03:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 770801: <4FGL_J1446.3+3111_daily_bin492> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin492> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 08:51:17 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:51:18 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:51:18 2021
Terminated at Fri Sep 10 09:03:23 2021
Results reported at Fri Sep 10 09:03:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin492 221.591 31.1955 366854401 367113601 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 :                                   703.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            726 sec.

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

