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


Performing analysis on: 4FGL_J1446.0-3039_daily_bin1499
RA = 221.523, Dec = -30.6618
tmin = 627868801, tmax = 628128001
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='767601', job_status='RUN', time_executed='2021-09-10 08:43:04.683989', time_epoch_executed='1631288584.68' WHERE source_name='4FGL J1446.0-3039' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/767601

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/767601/ft1_4FGL_J1446.0-3039_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/767601/ft2_4FGL_J1446.0-3039_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/767601/ft1_4FGL_J1446.0-3039_daily_bin1499.fits outfile=/scratch/kocevski/767601/ft1_filteredMKT_4FGL_J1446.0-3039_daily_bin1499.fits ra=221.523 dec=-30.6618 rad=12.0 tmin=627868801.0 tmax=628128001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.49
user 2.29
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/767601/ft2_4FGL_J1446.0-3039_daily_bin1499.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/767601/ft2_4FGL_J1446.0-3039_daily_bin1499.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/767601/ft1_filteredMKT_4FGL_J1446.0-3039_daily_bin1499.fits evtable="EVENTS" outfile="/scratch/kocevski/767601/ft1_filtered_4FGL_J1446.0-3039_daily_bin1499.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/767601/ft1_filtered_4FGL_J1446.0-3039_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/767601/ft2_4FGL_J1446.0-3039_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/767601/ltcube_627868801_628128001_4FGL_J1446.0-3039_daily_bin1499.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/767601/ft2_4FGL_J1446.0-3039_daily_bin1499.fits
.....................!
real 13.07
user 12.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/767601/ft1_filtered_4FGL_J1446.0-3039_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/767601/ft2_4FGL_J1446.0-3039_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/767601/ltcube_627868801_628128001_4FGL_J1446.0-3039_daily_bin1499.fits outfile=/scratch/kocevski/767601/expmap_627868801_628128001_4FGL_J1446.0-3039_daily_bin1499.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/767601/ltcube_627868801_628128001_4FGL_J1446.0-3039_daily_bin1499.fits
.....................!
real 191.18
user 185.49
sys 5.23

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 214 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1446.0-3039 @ 221.523 -30.6618

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/767601/ft1_filtered_4FGL_J1446.0-3039_daily_bin1499.fits scfile=/scratch/kocevski/767601/ft2_4FGL_J1446.0-3039_daily_bin1499.fits outfile=/scratch/kocevski/767601/cmap_627868801_628128001_4FGL_J1446.0-3039_daily_bin1499.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.523 yref=-30.6618 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/767601/ft1_filtered_4FGL_J1446.0-3039_daily_bin1499.fits scfile=/scratch/kocevski/767601/ft2_4FGL_J1446.0-3039_daily_bin1499.fits outfile=/scratch/kocevski/767601/cmap_HighResolution_627868801_628128001_4FGL_J1446.0-3039_daily_bin1499.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.523 yref=-30.6618 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/767601/ft1_filtered_4FGL_J1446.0-3039_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/767601/ft2_4FGL_J1446.0-3039_daily_bin1499.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/767601/Model_4FGL_J1446.0-3039_daily_bin1499.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/767601/ft1_filtered_4FGL_J1446.0-3039_daily_bin1499.fits......................!
real 21.14
user 19.78
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/767601/ft1_filtered_4FGL_J1446.0-3039_daily_bin1499.fits', '/scratch/kocevski/767601/ft2_4FGL_J1446.0-3039_daily_bin1499.fits', expMap='/scratch/kocevski/767601/expmap_627868801_628128001_4FGL_J1446.0-3039_daily_bin1499.fits', expCube='/scratch/kocevski/767601/ltcube_627868801_628128001_4FGL_J1446.0-3039_daily_bin1499.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/767601/Model_4FGL_J1446.0-3039_daily_bin1499.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1446.0-3039'

4FGL J1446.0-3039
   Spectrum: PowerLaw
317    Prefactor:  9.752e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.335e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.394e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/767601/ft1_filtered_4FGL_J1446.0-3039_daily_bin1499.fits
Spacecraft file(s): /scratch/kocevski/767601/ft2_4FGL_J1446.0-3039_daily_bin1499.fits
Exposure map: /scratch/kocevski/767601/expmap_627868801_628128001_4FGL_J1446.0-3039_daily_bin1499.fits
Exposure cube: /scratch/kocevski/767601/ltcube_627868801_628128001_4FGL_J1446.0-3039_daily_bin1499.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/767601/Model_4FGL_J1446.0-3039_daily_bin1499.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) = 493.33489528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .87821       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    74.688       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43167       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .29616       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .45527E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    73.821       1.0000         .10000E-03   10000.    
    12 'norm      '    195.98       1.0000         .10000E-03   10000.    
    13 'Prefactor '    416.78       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33005       1.0000         .10000E-03   10000.    
    15 'Prefactor '    111.63       1.0000         .10000E-03   10000.    
    16 'norm      '    9995.6       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.065       1.0000         .10000E-03   10000.    
    18 'Prefactor '    84.653       1.0000         .10000E-03   10000.    
    19 'norm      '    41.485       1.0000         .10000E-03   10000.    
    20 'norm      '    11.452       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8509       1.0000         .10000E-03   10000.    
    23 'norm      '    .43842       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4465       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .42999       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   486.5671     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2575 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.195       -.26898E-06** at limit **
   2  Prefactor     .10000E-03    284.72        .15306E-05** at limit **
   3  Prefactor     .10000E-03    80.758       -.14785E-05** at limit **
   4  Prefactor     34.048        115.27       -.45507E-05    .91463E-05
   5  Prefactor     .10000E-03    22.095       -.33020E-06** at limit **
   6  Prefactor     .10000E-03    25.699       -.77719E-06** at limit **
   7  norm          .10000E-03    12.026        .29813E-06** at limit **
   8  Prefactor     .10000E-03    1727.3        .15167E-04** at limit **
   9  Prefactor     .10001E-03    624.98        .18681E-04** at limit **
  10  Prefactor     .10000E-03    112.39       -.73970E-05** at limit **
  11  Prefactor     7.0597        670.94       -.86928E-05    .30515E-05
  12  norm         10000.0        9520.8        .49131E-05** at limit **
  13  Prefactor     .10039E-03    9390.1        .26057E-04** at limit **
  14  Prefactor     .10000E-03    393.93       -.28258E-05** at limit **
  15  Prefactor    10000.0        7530.2       -.80508E-05** at limit **
  16  norm         10000.0        347.30       -.52971E-05** at limit **
  17  Prefactor    10000.0        7180.3       -.18200E-04** at limit **
  18  Prefactor    10000.0        6937.6        .23760E-04** at limit **
  19  norm         10000.0        6920.2       -.14576E-04** at limit **
  20  norm         10000.0        7567.7       -.80107E-04** at limit **
  21  norm          .10000E-03    4.3786       -.21083E-06** at limit **
  22  Prefactor     .10000E-03    485.91        .39033E-05** at limit **
  23  norm          .10000E-03    740.03       -.16252E-04** at limit **
  24  Prefactor    10000.0        9852.5        .11279E-03** at limit **
  25  Normalizat    .10000E-01    .35240       -.18354E-05** at limit **
  26  Prefactor     .41508        .13565       -.10893E-06    .29588E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.0477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 7.05972
  norm       = 10000
  Prefactor  = 0.000100391
  Prefactor  = 0.000100002
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0.415079
 **********
 **   18 **HESSE 
 **********

 FCN=   486.5671     FROM HESSE     STATUS=OK           506 CALLS     3081 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.336        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    292.64        .12728E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    76.466        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.048        123.71        .11615E-02   -1.4540    
   5  Prefactor     .10000E-03    21.359        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.731        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.742        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1807.0        .10989E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    683.54        .10408E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    112.50        .92482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0597        1036.2        .11682E-02   -1.6239    
  12  norm         10000.0        9592.7        .72143E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10039E-03    9848.7        .50037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    103.76        .77063E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        7517.1        .95181E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm         10000.0        358.08        .48154E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        7196.3        .17165E-01   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        6937.5        .10915E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        6898.8        .15559E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        7512.4        .29595E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.3868        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    477.13        .35777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    736.28        .11017E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        9756.6        .43044E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .35045        .19191       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .41508        .15273        .38682E-01   -1.1605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4408e-11
Minuit parameter uncertainties:
  1  5.00233e-05
  2  0.000767222
  3  7.41324e-05
  4  124.658
  5  7.29424e-06
  6  2.3136e-05
  7  5.15049e-06
  8  0.0058862
  9  0.00464055
  10  0.00022802
  11  174.228
  12  0.0567583
  13  0.174638
  14  0.00082063
  15  0.00836612
  16  0.000912178
  17  0.0219938
  18  0.00611153
  19  0.0130547
  20  0.0975464
  21  3.07651e-06
  22  0.000329274
  23  0.000523156
  24  0.164609
  25  4.91819e-07
  26  0.152879
Done.

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

Extracting fit parameters...

4FGL J1446.0-3039
   Spectrum: PowerLaw
317    Prefactor:  1.004e-04  1.746e-01  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.335e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.394e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
720    Prefactor:  4.151e-01  1.529e-01  0.000e+00  1.000e+01 ( 1.000e+00)
721        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
722        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
719   Normalization:  1.000e-02  4.918e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 221.523 -30.662
Photon Flux Upper Limit: 2.75e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.12e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/767601/likelihoodResults_627868801_628128001_4FGL_J1446.0-3039_daily_bin1499.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) = 486.567137656
delta logL = -1.36513125426e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 486.567136637
delta logL = -3.46509693827e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96362E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3349       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7230E+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=   486.5671     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      233 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10091E-03    6285.9        .18142E-01** at limit **
   2  Index         2.4219        5.4723        .50000        .15076E-06
   3  Normalizat    .10000E-01    .22995E-03    .75206E-02** at limit **
   4  Prefactor     .41508        .30209E-02    .13442E-03    .36016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100906
  Index      = 2.42186
  Normalizat = 0.01
  Prefactor  = 0.415081
 **********
 **   18 **HESSE 
 **********

 FCN=   486.5671     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10091E-03    9286.8        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4219        8.3438        .50000       -.54174    
   3  Normalizat    .10000E-01    .11403E-02    .15041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41508        .67258E-02    .26883E-04   -1.1605    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24261e-09
Minuit parameter uncertainties:
  1  0.225278
  2  1334.23
  3  1.08056e-07
  4  0.00672578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/767601': 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) = 486.567136294
delta logL = -2.93294988296e-09

Extracting fit parameters...

4FGL J1446.0-3039
   Spectrum: PowerLaw
317    Prefactor:  1.009e-04  2.253e-01  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.422e+00  1.334e+03  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.394e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
720    Prefactor:  4.151e-01  6.726e-03  0.000e+00  1.000e+01 ( 1.000e+00)
721        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
722        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
719   Normalization:  1.000e-02  1.081e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 221.523 -30.662

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/767601/cmap_HighResolution_627868801_628128001_4FGL_J1446.0-3039_daily_bin1499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.12e-01', job_status='DONE', photon_flux_upper_limit='2.75e-06', time_completed='2021-09-10 08:49:21.245727', job_id='767601', GAL2='0.42', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631288961.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='-2.93e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1499' AND source_name='4FGL J1446.0-3039' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 08:49:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 767601: <4FGL_J1446.0-3039_daily_bin1499> in cluster <slac> Done

Job <4FGL_J1446.0-3039_daily_bin1499> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 08:41:14 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:41:16 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:16 2021
Terminated at Fri Sep 10 08:49:23 2021
Results reported at Fri Sep 10 08:49:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.0-3039_daily_bin1499 221.523 -30.6618 627868801 628128001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1446.0-3039 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   372.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   485 sec.
    Turnaround time :                            489 sec.

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

