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


Performing analysis on: 4FGL_J1424.6+1447_daily_bin978
RA = 216.169, Dec = 14.784
tmin = 492825601, tmax = 493084801
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='433825', job_status='RUN', time_executed='2021-09-09 14:19:26.558686', time_epoch_executed='1631222366.56' WHERE source_name='4FGL J1424.6+1447' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433825

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433825/ft1_4FGL_J1424.6+1447_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433825/ft2_4FGL_J1424.6+1447_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433825/ft1_4FGL_J1424.6+1447_daily_bin978.fits outfile=/scratch/kocevski/433825/ft1_filteredMKT_4FGL_J1424.6+1447_daily_bin978.fits ra=216.169 dec=14.784 rad=12.0 tmin=492825601.0 tmax=493084801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.71
user 3.47
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/433825/ft2_4FGL_J1424.6+1447_daily_bin978.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433825/ft2_4FGL_J1424.6+1447_daily_bin978.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/433825/ft1_filteredMKT_4FGL_J1424.6+1447_daily_bin978.fits evtable="EVENTS" outfile="/scratch/kocevski/433825/ft1_filtered_4FGL_J1424.6+1447_daily_bin978.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433825/ft1_filtered_4FGL_J1424.6+1447_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/433825/ft2_4FGL_J1424.6+1447_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/433825/ltcube_492825601_493084801_4FGL_J1424.6+1447_daily_bin978.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/433825/ft2_4FGL_J1424.6+1447_daily_bin978.fits
.....................!
real 11.69
user 11.37
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433825/ft1_filtered_4FGL_J1424.6+1447_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/433825/ft2_4FGL_J1424.6+1447_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/433825/ltcube_492825601_493084801_4FGL_J1424.6+1447_daily_bin978.fits outfile=/scratch/kocevski/433825/expmap_492825601_493084801_4FGL_J1424.6+1447_daily_bin978.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/433825/ltcube_492825601_493084801_4FGL_J1424.6+1447_daily_bin978.fits
.....................!
real 190.54
user 185.38
sys 4.76

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 145 point sources and 0 extended sources

Setting source of interest to:
4FGL J1424.6+1447 @ 216.169 14.784

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/433825/ft1_filtered_4FGL_J1424.6+1447_daily_bin978.fits scfile=/scratch/kocevski/433825/ft2_4FGL_J1424.6+1447_daily_bin978.fits outfile=/scratch/kocevski/433825/cmap_492825601_493084801_4FGL_J1424.6+1447_daily_bin978.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=216.169 yref=14.784 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433825/ft1_filtered_4FGL_J1424.6+1447_daily_bin978.fits scfile=/scratch/kocevski/433825/ft2_4FGL_J1424.6+1447_daily_bin978.fits outfile=/scratch/kocevski/433825/cmap_HighResolution_492825601_493084801_4FGL_J1424.6+1447_daily_bin978.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=216.169 yref=14.784 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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433825/ft1_filtered_4FGL_J1424.6+1447_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/433825/ft2_4FGL_J1424.6+1447_daily_bin978.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433825/Model_4FGL_J1424.6+1447_daily_bin978.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/433825/ft1_filtered_4FGL_J1424.6+1447_daily_bin978.fits.....................!
real 49.10
user 47.55
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433825/ft1_filtered_4FGL_J1424.6+1447_daily_bin978.fits', '/scratch/kocevski/433825/ft2_4FGL_J1424.6+1447_daily_bin978.fits', expMap='/scratch/kocevski/433825/expmap_492825601_493084801_4FGL_J1424.6+1447_daily_bin978.fits', expCube='/scratch/kocevski/433825/ltcube_492825601_493084801_4FGL_J1424.6+1447_daily_bin978.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433825/Model_4FGL_J1424.6+1447_daily_bin978.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1424.6+1447'

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.029e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  1.760e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/433825/ft1_filtered_4FGL_J1424.6+1447_daily_bin978.fits
Spacecraft file(s): /scratch/kocevski/433825/ft2_4FGL_J1424.6+1447_daily_bin978.fits
Exposure map: /scratch/kocevski/433825/expmap_492825601_493084801_4FGL_J1424.6+1447_daily_bin978.fits
Exposure cube: /scratch/kocevski/433825/ltcube_492825601_493084801_4FGL_J1424.6+1447_daily_bin978.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433825/Model_4FGL_J1424.6+1447_daily_bin978.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) = 6256.41756252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18252E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16201E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.718       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.219       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.418       1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .77440E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.606       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6702       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .84235       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6278       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11211E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1181       1.0000         .10000E-03   10000.    
    21 'norm      '    .86246       1.0000         .10000E-03   10000.    
    22 'norm      '    25.018       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2863       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85211       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6256.411     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2723 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    104.28       -.29460E-05** at limit **
   2  Prefactor     .10010E-03    4.5364       -.15314E-05** at limit **
   3  Prefactor     .10000E-03    4.1868        .35369E-07** at limit **
   4  Prefactor     .10000E-03    1.8422        .22407E-07** at limit **
   5  Prefactor     .10000E-03    8.7069       -.77652E-06** at limit **
   6  Prefactor     25.700        24.707       -.23818E-06   -.47850E-04
   7  norm          .10000E-03    8.6619        .76264E-06** at limit **
   8  Prefactor     .10000E-03    2.3964        .17363E-07** at limit **
   9  norm          13.219        3.7255       -.42688E-07   -.16469E-03
  10  Prefactor     10.417        6.9710       -.31952E-08    .10563E-03
  11  norm          .10000E-03    1.1704        .13356E-06** at limit **
  12  Prefactor     .10004E-03    102.22       -.11299E-04** at limit **
  13  norm          11.655        14.388        .53086E-06    .10633E-03
  14  norm          2.6696        3.3946        .29502E-06    .26760E-03
  15  Prefactor     .85757        25.874       -.44437E-05    .38396E-03
  16  Prefactor     8.6196        22.627        .13770E-06    .15387E-04
  17  Prefactor     .10000E-03    15.915        .97807E-06** at limit **
  18  Prefactor     .10000E-03    26.202       -.80582E-06** at limit **
  19  Prefactor     .10000E-03    13.847       -.19894E-06** at limit **
  20  Prefactor     2.1173        6.4016        .12862E-05    .26086E-03
  21  norm          .86241        .22845        .28189E-09    .15716E-03
  22  norm          25.048        32.714        .29431E-05    .31022E-03
  23  Normalizat    1.2863        .20806        .36179E-06    .26467E-03
  24  Prefactor     .85213        .14948       -.50889E-06    .29993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6999
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2191
  Prefactor  = 10.4166
  norm       = 0.0001
  Prefactor  = 0.000100035
  norm       = 11.6552
  norm       = 2.66964
  Prefactor  = 0.85757
  Prefactor  = 8.61958
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.11734
  norm       = 0.862411
  norm       = 25.0479
  Normalizat = 1.2863
  Prefactor  = 0.852132
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.411     FROM HESSE     STATUS=OK           397 CALLS     3120 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    105.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10010E-03    23.910        .26980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1918        .15806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8436        .10485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.7436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.700        24.727        .78992E-04   -1.4694    
   7  norm          .10000E-03    8.6986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4005        .11955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.219        3.7266        .78521E-04   -1.4981    
  10  Prefactor     10.417        6.9813        .12414E-03   -1.5062    
  11  norm          .10000E-03    1.9126        .16561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    109.16        .41843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.655        14.742        .11759E-03   -1.5025    
  14  norm          2.6696        3.3851        .15978E-03   -1.5381    
  15  Prefactor     .85757        113.44        .57444E-02   -1.5523    
  16  Prefactor     8.6196        22.621        .13647E-03   -1.5121    
  17  Prefactor     .10000E-03    16.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.1173        6.3986        .28340E-03   -1.5417    
  21  norm          .86241        .22840        .18683E-04   -1.5522    
  22  norm          25.048        33.361        .40044E-03   -1.4707    
  23  Normalizat    1.2863        .25356        .25798E-03   -.83976    
  24  Prefactor     .85213        .18149        .22702E-03   -.97834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25909e-08
Minuit parameter uncertainties:
  1  0.00135965
  2  0.00302451
  3  4.52782e-06
  4  1.32673e-06
  5  0.00010777
  6  24.7369
  7  0.000107571
  8  1.87754e-06
  9  3.72664
  10  6.98183
  11  1.40603e-05
  12  0.00394084
  13  14.7468
  14  3.38533
  15  19.7633
  16  22.6433
  17  0.000198626
  18  0.000118269
  19  3.27736e-05
  20  6.40067
  21  0.228404
  22  33.3856
  23  0.253809
  24  0.181615
Done.

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

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  1.878e-06  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  1.760e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
466    Prefactor:  8.521e-01  1.816e-01  0.000e+00  1.000e+01 ( 1.000e+00)
467        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
468        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
465   Normalization:  1.286e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 216.169 14.784
Photon Flux Upper Limit: 5.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433825/likelihoodResults_492825601_493084801_4FGL_J1424.6+1447_daily_bin978.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) = 6256.41322606
delta logL = -0.00196724783473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6256.41125875
delta logL = 5.47743184143e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1574       1.0000          .0000       10.000    
     3 'Normalizat'    1.2863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4690E+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=   6256.411     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      223 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    233.84        .12060E-01** at limit **
   2  Index         1.6550        5.7240        .49911E-01    .22550E-07
   3  Normalizat    1.2863        .50141E-01    .25798E-03    .11304E-03
   4  Prefactor     .85213        .36947E-01    .22702E-03    .13932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.65505
  Normalizat = 1.2863
  Prefactor  = 0.852132
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.411     FROM HESSE     STATUS=OK            23 CALLS      246 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8656        .13069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6550        5.1264        .19964E-02   -.73285    
   3  Normalizat    1.2863        .24458        .10319E-04   -.83976    
   4  Prefactor     .85213        .18027        .90809E-05   -.97834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19086e-11
Minuit parameter uncertainties:
  1  1.13607e-05
  2  186.559
  3  0.244801
  4  0.180399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433825': 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) = 6256.41125544
delta logL = 3.37120309268e-06

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  1.136e-05  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  1.655e+00  1.866e+02  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  1.760e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
466    Prefactor:  8.521e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
467        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
468        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
465   Normalization:  1.286e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 216.169 14.784

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/433825/cmap_HighResolution_492825601_493084801_4FGL_J1424.6+1447_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', job_status='DONE', photon_flux_upper_limit='5.25e-08', time_completed='2021-09-09 14:29:37.096993', job_id='433825', GAL2='0.85', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631222977.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.37e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='978' AND source_name='4FGL J1424.6+1447' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 14:29:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 433825: <4FGL_J1424.6+1447_daily_bin978> in cluster <slac> Done

Job <4FGL_J1424.6+1447_daily_bin978> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 14:16:20 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 14:16:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 14:16:22 2021
Terminated at Thu Sep  9 14:29:37 2021
Results reported at Thu Sep  9 14:29:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1424.6+1447_daily_bin978 216.169 14.784 492825601 493084801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1424.6+1447 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   607.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             319.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

