/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 120 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 = 7572
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1424.6+1447_daily_bin412
RA = 216.169, Dec = 14.784
tmin = 346118401, tmax = 346377601
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='430090', job_status='RUN', time_executed='2021-09-09 14:08:45.681021', time_epoch_executed='1631221725.68' WHERE source_name='4FGL J1424.6+1447' and cadence='daily' and bin_id='412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430090

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430090/ft1_4FGL_J1424.6+1447_daily_bin412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430090/ft2_4FGL_J1424.6+1447_daily_bin412.fits


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

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

Done.
real 4.05
user 3.85
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430090/ft1_filtered_4FGL_J1424.6+1447_daily_bin412.fits" evtable="EVENTS" scfile=/scratch/kocevski/430090/ft2_4FGL_J1424.6+1447_daily_bin412.fits sctable="SC_DATA" outfile=/scratch/kocevski/430090/ltcube_346118401_346377601_4FGL_J1424.6+1447_daily_bin412.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/430090/ft2_4FGL_J1424.6+1447_daily_bin412.fits
.....................!
real 11.64
user 11.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430090/ft1_filtered_4FGL_J1424.6+1447_daily_bin412.fits evtable="EVENTS" scfile=/scratch/kocevski/430090/ft2_4FGL_J1424.6+1447_daily_bin412.fits sctable="SC_DATA" expcube=/scratch/kocevski/430090/ltcube_346118401_346377601_4FGL_J1424.6+1447_daily_bin412.fits outfile=/scratch/kocevski/430090/expmap_346118401_346377601_4FGL_J1424.6+1447_daily_bin412.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/430090/ltcube_346118401_346377601_4FGL_J1424.6+1447_daily_bin412.fits
.....................!
real 190.59
user 186.24
sys 4.05

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/430090/ft1_filtered_4FGL_J1424.6+1447_daily_bin412.fits scfile=/scratch/kocevski/430090/ft2_4FGL_J1424.6+1447_daily_bin412.fits outfile=/scratch/kocevski/430090/cmap_346118401_346377601_4FGL_J1424.6+1447_daily_bin412.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430090/ft1_filtered_4FGL_J1424.6+1447_daily_bin412.fits scfile=/scratch/kocevski/430090/ft2_4FGL_J1424.6+1447_daily_bin412.fits outfile=/scratch/kocevski/430090/cmap_HighResolution_346118401_346377601_4FGL_J1424.6+1447_daily_bin412.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430090/ft1_filtered_4FGL_J1424.6+1447_daily_bin412.fits', '/scratch/kocevski/430090/ft2_4FGL_J1424.6+1447_daily_bin412.fits', expMap='/scratch/kocevski/430090/expmap_346118401_346377601_4FGL_J1424.6+1447_daily_bin412.fits', expCube='/scratch/kocevski/430090/ltcube_346118401_346377601_4FGL_J1424.6+1447_daily_bin412.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430090/Model_4FGL_J1424.6+1447_daily_bin412.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/430090/ft1_filtered_4FGL_J1424.6+1447_daily_bin412.fits
Spacecraft file(s): /scratch/kocevski/430090/ft2_4FGL_J1424.6+1447_daily_bin412.fits
Exposure map: /scratch/kocevski/430090/expmap_346118401_346377601_4FGL_J1424.6+1447_daily_bin412.fits
Exposure cube: /scratch/kocevski/430090/ltcube_346118401_346377601_4FGL_J1424.6+1447_daily_bin412.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430090/Model_4FGL_J1424.6+1447_daily_bin412.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) = 6598.8484543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.165       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54674E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0523       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29833E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    17.949       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.913       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.093       1.0000         .10000E-03   10000.    
    11 'norm      '    .37030E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.470       1.0000         .10000E-03   10000.    
    13 'norm      '    .37211E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12624E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4217       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2563       1.0000         .10000E-03   10000.    
    21 'norm      '    .18940       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4222       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74703       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6598.821     FROM MIGRAD    STATUS=FAILED      1003 CALLS     3607 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.198        38.273        .33790E-03    .54653E-04
   2  Prefactor     .10001E-03    21.115        .25072E-02** at limit **
   3  Prefactor     .10000E-03    7.0713        .18142E-02** at limit **
   4  Prefactor     7.0417        12.077        .15106E-03    .14412E-03
   5  Prefactor     .10556E-03    33.443        .11296    ** at limit **
   6  Prefactor     .10000E-03    10.826        .18142E-02** at limit **
   7  norm          17.948        17.525        .94536E-04    .59768E-04
   8  Prefactor     .10000E-03    3.6456        .15092E-02** at limit **
   9  norm          15.913        3.8670        .76294E-04   -.13262E-03
  10  Prefactor     10.093        6.4863        .12612E-03    .98341E-04
  11  norm          .36767E-01    6.5240        .16424E-02    .48110E-02
  12  Prefactor     33.451        29.536        .69265E-04    .28950E-03
  13  norm          .10083E-03    143.09        .60170E-02** at limit **
  14  norm          .10000E-03    1.3990        .93661E-03** at limit **
  15  Prefactor     .10003E-03    128.62        .65927E-02** at limit **
  16  Prefactor     .10000E-03    11.247        .18142E-02** at limit **
  17  Prefactor     .10000E-03    5.2613        .18142E-02** at limit **
  18  Prefactor     5.4140        31.293        .17258E-03   -.23715E-04
  19  Prefactor     .10000E-03    37.282        .18142E-02** at limit **
  20  Prefactor     6.2565        7.0578        .16049E-03    .11391E-03
  21  norm          .18941        .15600        .29352E-03   -.13804E-02
  22  norm          .10000E-03    22.349        .18142E-02** at limit **
  23  Normalizat    1.4222        .24653        .24587E-03    .53868E-04
  24  Prefactor     .74706        .17164        .23575E-03   -.18836E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6598.821     FROM SIMPLEX   STATUS=UNCHANGED   1228 CALLS     4835 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.198        38.273        .67764E-05   -1.4521    
   2  Prefactor     .10001E-03    21.115        .33567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0713        .39877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0417        12.077        .54368E-06   -1.5177    
   5  Prefactor     .10556E-03    33.443        .18256E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.826        .45523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.948        17.525        .53265E-06   -1.4860    
   8  Prefactor     .10000E-03    3.6456        .18772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.913        3.8670        .53566E-06   -1.4910    
  10  Prefactor     10.093        6.4863        .54006E-06   -1.5072    
  11  norm          .36767E-01    6.5240        .59832E-06   -1.5670    
  12  Prefactor     33.451        29.536        .52905E-06   -1.4551    
  13  norm          .10083E-03    143.09        .17323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.3990        .11870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    128.62        .15183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.247        .25441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2613        .29619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4140        31.293        .54857E-06   -1.5243    
  19  Prefactor     .10000E-03    37.282        .67214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2565        7.0578        .54430E-06   -1.5208    
  21  norm          .18941        .15600        .55882E-06   -1.5621    
  22  norm          .10000E-03    22.349        .47463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4222        .24653        .28632E-06   -.79989    
  24  Prefactor     .74706        .17164        .36493E-06   -1.0171    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6598.821     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     5228 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.198        38.271        .67580E-04   -.59216E-05
   2  Prefactor     .10000E-03    21.457        .50143E-03** at limit **
   3  Prefactor     .10000E-03    7.0725        .36285E-03** at limit **
   4  Prefactor     7.0416        12.075        .60424E-05   -.94074E-05
   5  Prefactor     .10551E-03    32.572        .11476    ** at limit **
   6  Prefactor     .10000E-03    10.828        .36285E-03** at limit **
   7  norm          17.948        17.525        .37814E-05    .18039E-05
   8  Prefactor     .10000E-03    3.6461        .30184E-03** at limit **
   9  norm          15.913        3.8670        .30518E-05    .67055E-05
  10  Prefactor     10.093        6.4852        .50450E-05   -.13521E-05
  11  norm          .36778E-01    6.7081        .32847E-03    .11560E-04
  12  Prefactor     33.451        29.220        .13853E-04    .23520E-03
  13  norm          .10000E-03    145.88        .24068E-02** at limit **
  14  norm          .10000E-03    1.3990        .18732E-03** at limit **
  15  Prefactor     .10000E-03    131.62        .26371E-03** at limit **
  16  Prefactor     .10000E-03    11.248        .36285E-03** at limit **
  17  Prefactor     .10000E-03    5.2615        .36285E-03** at limit **
  18  Prefactor     5.4141        31.152        .69031E-05    .11528E-04
  19  Prefactor     .10000E-03    37.283        .36285E-03** at limit **
  20  Prefactor     6.2564        7.0576        .64195E-05   -.38961E-05
  21  norm          .18941        .15596        .11741E-04    .16364E-03
  22  norm          .10000E-03    22.349        .36285E-03** at limit **
  23  Normalizat    1.4222        .24675        .98349E-05    .49937E-04
  24  Prefactor     .74706        .17174        .94301E-05    .78603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.04163
  Prefactor  = 0.000105515
  Prefactor  = 0.0001
  norm       = 17.9479
  Prefactor  = 0.0001
  norm       = 15.9132
  Prefactor  = 10.0929
  norm       = 0.0367776
  Prefactor  = 33.4507
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.4141
  Prefactor  = 0.0001
  Prefactor  = 6.25644
  norm       = 0.189412
  norm       = 0.0001
  Normalizat = 1.42218
  Prefactor  = 0.747058
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.821     FROM HESSE     STATUS=OK           385 CALLS     5613 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.198        38.271        .13516E-04   -1.4521    
   2  Prefactor     .10000E-03    21.470        .10029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0726        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0416        12.058        .12085E-05   -1.5177    
   5  Prefactor     .10551E-03    32.934        .11399       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.828        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.948        17.544        .75629E-06   -1.4860    
   8  Prefactor     .10000E-03    3.6461        .60367E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.913        3.8670        .61036E-06   -1.4910    
  10  Prefactor     10.093        6.4832        .10090E-05   -1.5072    
  11  norm          .36778E-01    6.7117        .13139E-04   -1.5670    
  12  Prefactor     33.451        29.155        .27706E-05   -1.4551    
  13  norm          .10000E-03    146.41        .48136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.3990        .37465E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    131.62        .52742E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.248        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2616        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4141        31.138        .13806E-05   -1.5243    
  19  Prefactor     .10000E-03    37.283        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2564        7.0549        .12839E-05   -1.5208    
  21  norm          .18941        .15596        .46964E-06   -1.5621    
  22  norm          .10000E-03    22.349        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4222        .24654        .19670E-05   -.79989    
  24  Prefactor     .74706        .17157        .18860E-05   -1.0171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42001e-10
Minuit parameter uncertainties:
  1  38.2977
  2  2.43189e-05
  3  8.74148e-07
  4  12.0617
  5  0.0269681
  6  1.27674e-06
  7  17.5492
  8  1.11075e-06
  9  3.86703
  10  6.48361
  11  0.992424
  12  29.167
  13  7.48415e-05
  14  1.79757e-07
  15  0.000123708
  16  2.79039e-06
  17  9.41152e-07
  18  25.9884
  19  1.73948e-05
  20  7.05588
  21  0.155958
  22  2.32712e-06
  23  0.246751
  24  0.171696
Done.

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

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  1.111e-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:  7.471e-01  1.717e-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.422e+00  2.468e-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: 6.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430090/likelihoodResults_346118401_346377601_4FGL_J1424.6+1447_daily_bin412.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) = 6598.82202394
delta logL = -0.00130490221454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6598.82071903
delta logL = 3.37604433298e-09

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 'Index     '    2.1653       1.0000          .0000       10.000    
     3 'Normalizat'    1.4222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74707       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=   6598.821     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    81.059        .15123E-02** at limit **
   2  Index         2.0915        8.6488        .50000        .10940E-04
   3  Normalizat    1.4222        .23067E-01    .24587E-03   -.15536E-04
   4  Prefactor     .74706        .16701E-01    .23575E-03   -.99339E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010066
  Index      = 2.09152
  Normalizat = 1.42218
  Prefactor  = 0.747058
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.821     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10066E-03    513.79        .30245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0915        5.0625        .50000       -.62081    
   3  Normalizat    1.4222        .73661E-01    .98348E-05   -.79989    
   4  Prefactor     .74706        .52210E-01    .94301E-05   -1.0171    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.69105e-08
Minuit parameter uncertainties:
  1  0.0371411
  2  1916.67
  3  0.0736666
  4  0.0522131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430090': 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) = 6598.82071887
delta logL = 1.68960468727e-07

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.007e-04  3.714e-02  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.092e+00  1.917e+03  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:  7.471e-01  5.221e-02  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.422e+00  7.367e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/430090/cmap_HighResolution_346118401_346377601_4FGL_J1424.6+1447_daily_bin412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='6.09e-08', time_completed='2021-09-09 14:21:53.631998', job_id='430090', GAL2='0.75', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1631222513.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='412' AND source_name='4FGL J1424.6+1447' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 14:21:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 430090: <4FGL_J1424.6+1447_daily_bin412> in cluster <slac> Done

Job <4FGL_J1424.6+1447_daily_bin412> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 14:06:36 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 14:06:37 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:06:37 2021
Terminated at Thu Sep  9 14:21:54 2021
Results reported at Thu Sep  9 14:21:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1424.6+1447_daily_bin412 216.169 14.784 346118401 346377601 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 :                                   781.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

