/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 158 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1446.3+3111_daily_bin22
RA = 221.591, Dec = 31.1955
tmin = 245030401, tmax = 245289601
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='767791', job_status='RUN', time_executed='2021-09-10 08:44:20.186221', time_epoch_executed='1631288660.19' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/767791

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/767791/ft1_4FGL_J1446.3+3111_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/767791/ft2_4FGL_J1446.3+3111_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/767791/ft1_4FGL_J1446.3+3111_daily_bin22.fits outfile=/scratch/kocevski/767791/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin22.fits ra=221.591 dec=31.1955 rad=12.0 tmin=245030401.0 tmax=245289601.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 1.45
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/767791/ft2_4FGL_J1446.3+3111_daily_bin22.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/767791/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/767791/ft1_filtered_4FGL_J1446.3+3111_daily_bin22.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.53
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/767791/ft1_filtered_4FGL_J1446.3+3111_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/767791/ft2_4FGL_J1446.3+3111_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/767791/ltcube_245030401_245289601_4FGL_J1446.3+3111_daily_bin22.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/767791/ft2_4FGL_J1446.3+3111_daily_bin22.fits
.....................!
real 12.37
user 12.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/767791/ft1_filtered_4FGL_J1446.3+3111_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/767791/ft2_4FGL_J1446.3+3111_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/767791/ltcube_245030401_245289601_4FGL_J1446.3+3111_daily_bin22.fits outfile=/scratch/kocevski/767791/expmap_245030401_245289601_4FGL_J1446.3+3111_daily_bin22.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/767791/ltcube_245030401_245289601_4FGL_J1446.3+3111_daily_bin22.fits
.....................!
real 190.77
user 185.08
sys 5.31

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/767791/ft1_filtered_4FGL_J1446.3+3111_daily_bin22.fits scfile=/scratch/kocevski/767791/ft2_4FGL_J1446.3+3111_daily_bin22.fits outfile=/scratch/kocevski/767791/cmap_245030401_245289601_4FGL_J1446.3+3111_daily_bin22.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/767791/ft1_filtered_4FGL_J1446.3+3111_daily_bin22.fits scfile=/scratch/kocevski/767791/ft2_4FGL_J1446.3+3111_daily_bin22.fits outfile=/scratch/kocevski/767791/cmap_HighResolution_245030401_245289601_4FGL_J1446.3+3111_daily_bin22.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/767791/ft1_filtered_4FGL_J1446.3+3111_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/767791/ft2_4FGL_J1446.3+3111_daily_bin22.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/767791/Model_4FGL_J1446.3+3111_daily_bin22.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/767791/ft1_filtered_4FGL_J1446.3+3111_daily_bin22.fits.....................!
real 52.28
user 50.91
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7001       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24437E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.530       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.8102       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.698       1.0000         .10000E-03   10000.    
    15 'norm      '    7.6977       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14296       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.929       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.225       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7781       1.0000         .10000E-03   10000.    
    22 'norm      '    8.1625       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.3699       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2186       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79865       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=   6580.508     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3354 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7415        .28503E-08** at limit **
   2  Prefactor     3.6861        11.504       -.15590E-05    .44913E-04
   3  norm          .10000E-03    1.9428       -.68775E-07** at limit **
   4  Prefactor     .10165E-03    17.324       -.38727E-05** at limit **
   5  Prefactor     21.476        15.673        .14000E-05    .59008E-03
   6  Prefactor     .10000E-03    1.7043       -.47042E-07** at limit **
   7  norm          .10000E-03    7.5978        .48015E-06** at limit **
   8  norm          5.8100        2.8006       -.42936E-07   -.40085E-05
   9  Prefactor     .10000E-03    14.143       -.16742E-05** at limit **
  10  norm          .10000E-03    1.2286       -.27095E-07** at limit **
  11  norm          .10000E-03    1.9349       -.57447E-07** at limit **
  12  Prefactor     .10000E-03    15.873        .20877E-05** at limit **
  13  norm          .10000E-03    2.7071       -.78607E-07** at limit **
  14  Prefactor     40.709        41.410        .15111E-05    .64797E-04
  15  norm          7.6980        6.6792       -.53023E-06    .75989E-04
  16  Prefactor     .10000E-03    9.5186        .29773E-06** at limit **
  17  Prefactor     .14226        5.0142        .22689E-06   -.20066E-03
  18  Prefactor     10.929        7.2129       -.60443E-07    .83692E-06
  19  norm          .10000E-03    .48783       -.26493E-08** at limit **
  20  Prefactor     30.230        41.680        .66571E-06    .16143E-04
  21  Prefactor     5.7782        5.4586       -.72246E-06   -.13756E-03
  22  norm          8.1630        1.8272       -.30353E-07   -.66803E-04
  23  Prefactor     5.3701        8.1433        .36090E-07   -.46080E-04
  24  Prefactor     .10000E-03    57.896        .50832E-05** at limit **
  25  Prefactor     .10000E-03    7.6411       -.52265E-06** at limit **
  26  Normalizat    1.2180        .17407        .97078E-06    .27774E-03
  27  Prefactor     .79903        .15562       -.18438E-06    .20004E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.68606
  norm       = 0.0001
  Prefactor  = 0.000101647
  Prefactor  = 21.4762
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.81001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.7093
  norm       = 7.69797
  Prefactor  = 0.0001
  Prefactor  = 0.14226
  Prefactor  = 10.9287
  norm       = 0.0001
  Prefactor  = 30.2296
  Prefactor  = 5.77815
  norm       = 8.16303
  Prefactor  = 5.3701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21805
  Prefactor  = 0.799026
 **********
 **   18 **HESSE 
 **********

 FCN=   6580.508     FROM HESSE     STATUS=OK           486 CALLS     3840 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7448        .10454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6861        11.567        .20995E-03   -1.5324    
   3  norm          .10000E-03    1.9620        .11038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10165E-03    135.98        .53097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.476        15.989        .86322E-04   -1.4781    
   6  Prefactor     .10000E-03    1.7220        .10340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.6211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.8100        2.8040        .90978E-04   -1.5226    
   9  Prefactor     .10000E-03    14.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.2713        .17558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9412        .11020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8093        .26060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.709        41.709        .62834E-04   -1.4431    
  15  norm          7.6980        6.6699        .72267E-03   -1.5153    
  16  Prefactor     .10000E-03    9.5602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .14226        49.569        .34725E-02   -1.5633    
  18  Prefactor     10.929        7.2232        .12119E-03   -1.5047    
  19  norm          .10000E-03    .49306        .55167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.230        41.698        .72877E-04   -1.4608    
  21  Prefactor     5.7782        5.4727        .16709E-03   -1.5227    
  22  norm          8.1630        1.8301        .46177E-04   -1.5136    
  23  Prefactor     5.3701        8.1348        .17342E-03   -1.5244    
  24  Prefactor     .10000E-03    58.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.6728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2180        .20412        .23484E-03   -.86047    
  27  Prefactor     .79903        .18176        .25911E-03   -.99764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16755e-08
Minuit parameter uncertainties:
  1  8.17777e-07
  2  11.5745
  3  1.21657e-06
  4  0.0299998
  5  15.992
  6  3.82967e-06
  7  2.86042e-05
  8  2.80411
  9  6.66354e-05
  10  9.89513e-07
  11  1.45079e-06
  12  8.4741e-05
  13  4.47148e-06
  14  41.7392
  15  6.67051
  16  7.55916e-06
  17  5.31357
  18  7.22377
  19  1.47298e-06
  20  41.7383
  21  5.47315
  22  1.8301
  23  8.13649
  24  0.000339358
  25  1.6002e-05
  26  0.204256
  27  0.181895
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  4.071e+01  4.174e+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:  7.990e-01  1.819e-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.218e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.42e-08 +/- 4.53e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/767791/likelihoodResults_245030401_245289601_4FGL_J1446.3+3111_daily_bin22.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) = 6580.50757378
delta logL = 0.000441806712843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6580.50723098
delta logL = 0.000784606693742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.974       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5207       1.0000          .0000       10.000    
     3 'Normalizat'    1.2196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79825       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=   6580.507     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      262 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.046        57.115        .61875E-04    .60633E-05
   2  Index         2.5214        .92047        .81445E-02    .24817E-04
   3  Normalizat    1.2192        .19936        .23474E-03    .19765E-03
   4  Prefactor     .79814        .17933        .25924E-03   -.18577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.0458
  Index      = 2.52135
  Normalizat = 1.21921
  Prefactor  = 0.798135
 **********
 **   18 **HESSE 
 **********

 FCN=   6580.507     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.046        53.911        .24750E-05   -1.4410    
   2  Index         2.5214        .86770        .32578E-03   -.51867    
   3  Normalizat    1.2192        .19945        .46949E-04   -.86011    
   4  Prefactor     .79814        .17930        .10370E-04   -.99797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40899e-10
Minuit parameter uncertainties:
  1  53.9732
  2  0.873576
  3  0.199573
  4  0.179426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/767791': 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) = 6580.50721884
delta logL = 0.000796746668129

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  4.205e+01  5.397e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.521e+00  8.736e-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:  7.981e-01  1.794e-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.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.52 +/- 0.87
Photon Flux (Free Index): 4.35e-08 +/- 4.78e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/767791/cmap_HighResolution_245030401_245289601_4FGL_J1446.3+3111_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.42e-08', energy_flux2='1.23e-05', photon_flux_error='4.53e-08', dlogl='7.97e-04', energy_flux='1.21e-05', photon_flux2='4.35e-08', job_status='DONE', time_completed='2021-09-10 08:56:29.743139', photon_index_error2='0.87', photon_index2='2.52', ts='1.20', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.42e-05', EG='1.22', time_epoch_completed='1631289389.74', return_code='0', job_id='767791', GAL2='0.80', EG2='1.22', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.78e-08', ts2='1.19', photon_index='2.56' WHERE bin_id='22' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 08:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 767791: <4FGL_J1446.3+3111_daily_bin22> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin22 221.591 31.1955 245030401 245289601 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 :                                   729.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             313.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            900 sec.

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

