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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin352
RA = 215.792, Dec = 37.6452
tmin = 330566401, tmax = 330825601
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='387572', job_status='RUN', time_executed='2021-09-09 11:56:32.939286', time_epoch_executed='1631213792.94' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/387572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/387572/ft1_4FGL_J1423.1+3738_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/387572/ft2_4FGL_J1423.1+3738_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/387572/ft1_4FGL_J1423.1+3738_daily_bin352.fits outfile=/scratch/kocevski/387572/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin352.fits ra=215.792 dec=37.6452 rad=12.0 tmin=330566401.0 tmax=330825601.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.00
user 3.74
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/387572/ft2_4FGL_J1423.1+3738_daily_bin352.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/387572/ft2_4FGL_J1423.1+3738_daily_bin352.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/387572/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin352.fits evtable="EVENTS" outfile="/scratch/kocevski/387572/ft1_filtered_4FGL_J1423.1+3738_daily_bin352.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/387572/ft1_filtered_4FGL_J1423.1+3738_daily_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/387572/ft2_4FGL_J1423.1+3738_daily_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/387572/ltcube_330566401_330825601_4FGL_J1423.1+3738_daily_bin352.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/387572/ft2_4FGL_J1423.1+3738_daily_bin352.fits
.....................!
real 11.81
user 11.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/387572/ft1_filtered_4FGL_J1423.1+3738_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/387572/ft2_4FGL_J1423.1+3738_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/387572/ltcube_330566401_330825601_4FGL_J1423.1+3738_daily_bin352.fits outfile=/scratch/kocevski/387572/expmap_330566401_330825601_4FGL_J1423.1+3738_daily_bin352.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/387572/ltcube_330566401_330825601_4FGL_J1423.1+3738_daily_bin352.fits
.....................!
real 191.58
user 185.11
sys 5.68

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

Setting source of interest to:
4FGL J1423.1+3738 @ 215.792 37.6452

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/387572/ft1_filtered_4FGL_J1423.1+3738_daily_bin352.fits scfile=/scratch/kocevski/387572/ft2_4FGL_J1423.1+3738_daily_bin352.fits outfile=/scratch/kocevski/387572/cmap_330566401_330825601_4FGL_J1423.1+3738_daily_bin352.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=215.792 yref=37.6452 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/387572/ft1_filtered_4FGL_J1423.1+3738_daily_bin352.fits scfile=/scratch/kocevski/387572/ft2_4FGL_J1423.1+3738_daily_bin352.fits outfile=/scratch/kocevski/387572/cmap_HighResolution_330566401_330825601_4FGL_J1423.1+3738_daily_bin352.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=215.792 yref=37.6452 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/387572/ft1_filtered_4FGL_J1423.1+3738_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/387572/ft2_4FGL_J1423.1+3738_daily_bin352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/387572/Model_4FGL_J1423.1+3738_daily_bin352.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/387572/ft1_filtered_4FGL_J1423.1+3738_daily_bin352.fits.....................!
real 44.03
user 42.68
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/387572/ft1_filtered_4FGL_J1423.1+3738_daily_bin352.fits', '/scratch/kocevski/387572/ft2_4FGL_J1423.1+3738_daily_bin352.fits', expMap='/scratch/kocevski/387572/expmap_330566401_330825601_4FGL_J1423.1+3738_daily_bin352.fits', expCube='/scratch/kocevski/387572/ltcube_330566401_330825601_4FGL_J1423.1+3738_daily_bin352.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/387572/Model_4FGL_J1423.1+3738_daily_bin352.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1423.1+3738'

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  3.465e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.928e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.446e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/387572/ft1_filtered_4FGL_J1423.1+3738_daily_bin352.fits
Spacecraft file(s): /scratch/kocevski/387572/ft2_4FGL_J1423.1+3738_daily_bin352.fits
Exposure map: /scratch/kocevski/387572/expmap_330566401_330825601_4FGL_J1423.1+3738_daily_bin352.fits
Exposure cube: /scratch/kocevski/387572/ltcube_330566401_330825601_4FGL_J1423.1+3738_daily_bin352.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/387572/Model_4FGL_J1423.1+3738_daily_bin352.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) = 5296.24257832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.232       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.7741       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7378       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22791E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.619       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.178       1.0000         .10000E-03   10000.    
    15 'norm      '    5.2355       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.811       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.969       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27720       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.051       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1643       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81259       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5296.215     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3093 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.325        76.096        .19694E-03    .15185E-04
   2  Prefactor     .10000E-03    27.202       -.20209E-04** at limit **
   3  norm          6.7747        2.1929        .25869E-06   -.38996E-03
   4  Prefactor     .10000E-03    3.0530       -.31317E-07** at limit **
   5  norm          3.7400        11.851       -.32274E-07   -.12771E-03
   6  Prefactor     .10000E-03    17.403        .68626E-05** at limit **
   7  Prefactor     .10000E-03    1.5382        .11263E-06** at limit **
   8  Prefactor     .10011E-03    14.139        .14457E-05** at limit **
   9  norm          10.620        5.5850        .40354E-06   -.25811E-03
  10  Prefactor     .10000E-03    5.0514        .45625E-05** at limit **
  11  Prefactor     .10000E-03    7.1139        .15406E-05** at limit **
  12  Prefactor     .10000E-03    1.9145        .19365E-06** at limit **
  13  norm          .10000E-03    5.0439       -.39297E-05** at limit **
  14  Prefactor     24.178        22.765        .19663E-05   -.65383E-04
  15  norm          5.2349        5.1247        .97341E-07   -.98840E-04
  16  Prefactor     20.809        28.739       -.10119E-05   -.92968E-05
  17  Prefactor     11.978        34.268        .16311E-04   -.14206E-04
  18  norm          .10000E-03    3.4142        .18956E-06** at limit **
  19  Prefactor     .10000E-03    11.312       -.15394E-05** at limit **
  20  Prefactor     .32675        8.0077       -.84612E-06    .47654E-03
  21  norm          .10000E-03    .59191        .84184E-07** at limit **
  22  Prefactor     10.053        10.746        .83958E-06   -.81188E-04
  23  Prefactor     .10000E-03    34.705        .14429E-04** at limit **
  24  Prefactor     .10000E-03    9.0814        .56850E-06** at limit **
  25  Normalizat    1.1641        .18748       -.56826E-05   -.34132E-05
  26  Prefactor     .81261        .20606       -.15998E-05   -.22116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3254
  Prefactor  = 0.0001
  norm       = 6.77471
  Prefactor  = 0.000100001
  norm       = 3.74004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100113
  norm       = 10.6201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.1777
  norm       = 5.23492
  Prefactor  = 20.8093
  Prefactor  = 11.9782
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.326753
  norm       = 0.0001
  Prefactor  = 10.0527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1641
  Prefactor  = 0.812607
 **********
 **   18 **HESSE 
 **********

 FCN=   5296.215     FROM HESSE     STATUS=OK           460 CALLS     3553 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.325        75.936        .99411E-04   -1.4900    
   2  Prefactor     .10000E-03    27.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.7747        2.1962        .58430E-04   -1.5187    
   4  Prefactor     .10000E-03    6.5005        .24525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7400        11.830        .20885E-03   -1.5321    
   6  Prefactor     .10000E-03    17.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5430        .88139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10011E-03    69.054        .52201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.620        5.5850        .11920E-03   -1.5056    
  10  Prefactor     .10000E-03    5.0618        .15974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9300        .98277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.0469        .15962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.178        22.773        .81464E-04   -1.4724    
  15  norm          5.2349        5.1181        .15727E-03   -1.5250    
  16  Prefactor     20.809        28.737        .87799E-04   -1.4795    
  17  Prefactor     11.978        34.239        .11579E-03   -1.5016    
  18  norm          .10000E-03    3.4165        .13132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .32675        48.531        .38318E-02   -1.5594    
  21  norm          .10000E-03    .59962        .54487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.053        10.739        .12639E-03   -1.5074    
  23  Prefactor     .10000E-03    34.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.0868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1641        .21743        .21509E-03   -.87720    
  26  Prefactor     .81261        .24250        .28769E-03   -.99265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00787e-09
Minuit parameter uncertainties:
  1  70.5657
  2  4.62089e-05
  3  2.19625
  4  0.000195108
  5  11.837
  6  5.52397e-05
  7  5.17762e-06
  8  0.00558601
  9  5.58526
  10  1.38829e-05
  11  2.51282e-05
  12  1.36441e-05
  13  5.58962e-06
  14  22.781
  15  5.11855
  16  28.7556
  17  34.2952
  18  8.35857e-06
  19  8.28812e-05
  20  7.96969
  21  1.04919e-05
  22  10.7412
  23  7.01338e-05
  24  1.55164e-05
  25  0.2176
  26  0.242822
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  5.590e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.928e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.446e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.126e-01  2.428e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.164e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.792 37.645
Photon Flux Upper Limit: 2.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/387572/likelihoodResults_330566401_330825601_4FGL_J1423.1+3738_daily_bin352.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) = 5296.2159118
delta logL = -0.000918472042031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5296.2149933
delta logL = 2.49783624895e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9185       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81258       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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=   5296.215     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      241 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1039.7        .16015E-02** at limit **
   2  alpha         1.6554        3.2721        .17062        .13213E-06
   3  Normalizat    1.1641        .99910E-01    .21509E-03    .16649E-04
   4  Prefactor     .81261        .11417        .28769E-03   -.26476E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.65536
  Normalizat = 1.16409
  Prefactor  = 0.812612
 **********
 **   18 **HESSE 
 **********

 FCN=   5296.215     FROM HESSE     STATUS=OK            27 CALLS      268 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3891        .32031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6554        3.4851        .68247E-01   -.34464    
   3  Normalizat    1.1641        .21096        .86037E-05   -.87720    
   4  Prefactor     .81261        .24097        .11508E-04   -.99265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9562e-10
Minuit parameter uncertainties:
  1  9.66475e-05
  2  278.992
  3  0.21111
  4  0.24128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/387572': 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) = 5296.21499282
delta logL = 5.0412654673e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  9.665e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.655e+00  2.790e+02  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.446e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.126e-01  2.413e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.164e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.792 37.645

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/387572/cmap_HighResolution_330566401_330825601_4FGL_J1423.1+3738_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', job_status='DONE', photon_flux_upper_limit='2.98e-08', time_completed='2021-09-09 12:07:42.045442', job_id='387572', GAL2='0.81', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631214462.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='5.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='352' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:07:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 387572: <4FGL_J1423.1+3738_daily_bin352> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin352> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:56:17 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:56:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:56:19 2021
Terminated at Thu Sep  9 12:07:42 2021
Results reported at Thu Sep  9 12:07:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin352 215.792 37.6452 330566401 330825601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1423.1+3738 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   664.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            685 sec.

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

