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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin50
RA = 215.792, Dec = 37.6452
tmin = 252288001, tmax = 252547201
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='386111', job_status='RUN', time_executed='2021-09-09 11:54:27.682880', time_epoch_executed='1631213667.68' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386111

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386111/ft1_4FGL_J1423.1+3738_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386111/ft2_4FGL_J1423.1+3738_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386111/ft1_4FGL_J1423.1+3738_daily_bin50.fits outfile=/scratch/kocevski/386111/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin50.fits ra=215.792 dec=37.6452 rad=12.0 tmin=252288001.0 tmax=252547201.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.57
user 2.37
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386111/ft1_filtered_4FGL_J1423.1+3738_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/386111/ft2_4FGL_J1423.1+3738_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/386111/ltcube_252288001_252547201_4FGL_J1423.1+3738_daily_bin50.fits outfile=/scratch/kocevski/386111/expmap_252288001_252547201_4FGL_J1423.1+3738_daily_bin50.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/386111/ltcube_252288001_252547201_4FGL_J1423.1+3738_daily_bin50.fits
.....................!
real 191.73
user 186.49
sys 4.83

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/386111/ft1_filtered_4FGL_J1423.1+3738_daily_bin50.fits scfile=/scratch/kocevski/386111/ft2_4FGL_J1423.1+3738_daily_bin50.fits outfile=/scratch/kocevski/386111/cmap_252288001_252547201_4FGL_J1423.1+3738_daily_bin50.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386111/ft1_filtered_4FGL_J1423.1+3738_daily_bin50.fits scfile=/scratch/kocevski/386111/ft2_4FGL_J1423.1+3738_daily_bin50.fits outfile=/scratch/kocevski/386111/cmap_HighResolution_252288001_252547201_4FGL_J1423.1+3738_daily_bin50.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/386111/ft1_filtered_4FGL_J1423.1+3738_daily_bin50.fits', '/scratch/kocevski/386111/ft2_4FGL_J1423.1+3738_daily_bin50.fits', expMap='/scratch/kocevski/386111/expmap_252288001_252547201_4FGL_J1423.1+3738_daily_bin50.fits', expCube='/scratch/kocevski/386111/ltcube_252288001_252547201_4FGL_J1423.1+3738_daily_bin50.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/386111/Model_4FGL_J1423.1+3738_daily_bin50.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/386111/ft1_filtered_4FGL_J1423.1+3738_daily_bin50.fits
Spacecraft file(s): /scratch/kocevski/386111/ft2_4FGL_J1423.1+3738_daily_bin50.fits
Exposure map: /scratch/kocevski/386111/expmap_252288001_252547201_4FGL_J1423.1+3738_daily_bin50.fits
Exposure cube: /scratch/kocevski/386111/ltcube_252288001_252547201_4FGL_J1423.1+3738_daily_bin50.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/386111/Model_4FGL_J1423.1+3738_daily_bin50.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) = 5784.42922203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23772E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.213       1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5382       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .78934E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.038       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5783       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2382       1.0000         .10000E-03   10000.    
    21 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .83245       1.0000         .10000E-03   10000.    
    23 'Prefactor '    182.59       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .28772       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2956       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .67037       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5784.397     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     3194 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    29.445        .46927E-05** at limit **
   2  Prefactor     .10000E-03    62.912       -.10457E-04** at limit **
   3  norm          1.9833        1.3935       -.20876E-06    .52905E-03
   4  Prefactor     .10000E-03    6.9308       -.22835E-05** at limit **
   5  norm          .10000E-03    7.1544        .19009E-05** at limit **
   6  Prefactor     .10000E-03    6.5326        .97327E-06** at limit **
   7  Prefactor     .10000E-03    2.0780       -.57851E-07** at limit **
   8  Prefactor     29.192        4.8301        .44408E-05   -.86853E-02
   9  norm          .10000E-03    1.6641       -.22420E-07** at limit **
  10  Prefactor     5.2204        19.252       -.13626E-04   -.62961E-03
  11  Prefactor     .63683        261.27        .28985E-04    .47876E-04
  12  Prefactor     .10000E-03    .81874       -.31472E-07** at limit **
  13  norm          .10001E-03    8.9646        .68799E-05** at limit **
  14  Prefactor     .10001E-03    4.7934       -.33330E-05** at limit **
  15  norm          .10000E-03    2.2634       -.41202E-07** at limit **
  16  Prefactor     .10000E-03    11.688       -.71982E-05** at limit **
  17  Prefactor     .10000E-03    16.393        .74590E-05** at limit **
  18  norm          10.038        1.6935       -.14893E-05   -.10878E-02
  19  Prefactor     1.5703        1.9919       -.27300E-05    .11259E-03
  20  Prefactor     8.2552        1.9859       -.28146E-05   -.14649E-02
  21  norm          .10000E-03    1.3935        .74166E-07** at limit **
  22  Prefactor     .81528        33.641       -.55700E-04   -.35164E-03
  23  Prefactor     182.59        1.1484        .20768E-06   -.36235E-02
  24  Prefactor     .13995        26.929       -.15747E-04    .14104E-03
  25  Normalizat    1.2947        .19197        .19278E-05    .41563E-03
  26  Prefactor     .67127        .21129        .23556E-05    .10268E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 1.98327
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 29.1916
  norm       = 0.0001
  Prefactor  = 5.22039
  Prefactor  = 0.636828
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 10.0377
  Prefactor  = 1.57031
  Prefactor  = 8.25523
  norm       = 0.0001
  Prefactor  = 0.815283
  Prefactor  = 182.587
  Prefactor  = 0.139951
  Normalizat = 1.29473
  Prefactor  = 0.671265
 **********
 **   18 **HESSE 
 **********

 FCN=   5784.397     FROM HESSE     STATUS=OK           528 CALLS     3722 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    29.337        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    62.916        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9833        1.3960        .73576E-02   -1.5426    
   4  Prefactor     .10000E-03    1.4276        .47090E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.1188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5319        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.0727        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.192        24.410        .18531E-02   -1.4627    
   9  norm          .10000E-03    1.6424        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2204        20.212        .42681E-02   -1.5251    
  11  Prefactor     .63683        38.775        .94103E-01   -1.5548    
  12  Prefactor     .10000E-03    .81630        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    12.425        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    12.577        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2552        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.038        7.6775        .31619E-02   -1.5074    
  19  Prefactor     1.5703        52.925        .84536E-02   -1.5457    
  20  Prefactor     8.2552        8.8259        .34920E-02   -1.5133    
  21  norm          .10000E-03    .96958        .28613E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .81528        12.471        .78773E-01   -1.5527    
  23  Prefactor     182.59        100.85        .74690E-03   -1.2997    
  24  Prefactor     .13995        36.547        .12659       -1.5633    
  25  Normalizat    1.2947        .17681        .32885E-01   -.83724    
  26  Prefactor     .67127        .18560        .68274E-01   -1.0466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5047e-07
Minuit parameter uncertainties:
  1  0.00121334
  2  0.000175382
  3  1.39601
  4  8.35251e-05
  5  0.000174525
  6  0.00017624
  7  1.33602e-05
  8  24.4185
  9  3.31462e-06
  10  20.2387
  11  9.94438
  12  5.7529e-06
  13  0.000602326
  14  0.000507894
  15  1.44613e-05
  16  0.000217758
  17  0.00041934
  18  7.67828
  19  18.2497
  20  8.82729
  21  9.84252e-06
  22  6.37837
  23  100.943
  24  4.52434
  25  0.176892
  26  0.18577
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  6.023e-04  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:  6.713e-01  1.858e-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.295e+00  1.769e-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: 3.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386111/likelihoodResults_252288001_252547201_4FGL_J1423.1+3738_daily_bin50.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) = 5784.39697689
delta logL = -0.000381384881621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5784.39659547
delta logL = 3.49073161487e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9492       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67128       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=   5784.397     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      253 TOTAL
                     EDM=   .63E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .16558        .81541E-01** at limit **
   2  alpha         2.9293        3.9484        .50000        .22942E-07
   3  Normalizat    1.2947        .10413E-02    .20156E-03    .39558E-03
   4  Prefactor     .67127        .11658E-02    .30212E-03    .14544E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.92931
  Normalizat = 1.29473
  Prefactor  = 0.671267
 **********
 **   18 **HESSE 
 **********

 FCN=   5784.397     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      284 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    534.28        .23537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9293        3.1069        .50000        .17258    
   3  Normalizat    1.2947        .20268E-01    .40311E-04   -.83724    
   4  Prefactor     .67127        .22691E-01    .12085E-04   -1.0466    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.44691e-10
Minuit parameter uncertainties:
  1  3.91637e-05
  2  1557.39
  3  0.0202683
  4  0.0226912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386111': 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) = 5784.39659367
delta logL = 1.84065720532e-06

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  3.916e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.929e+00  1.557e+03  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:  6.713e-01  2.269e-02  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.295e+00  2.027e-02  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/386111/cmap_HighResolution_252288001_252547201_4FGL_J1423.1+3738_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-05', job_status='DONE', photon_flux_upper_limit='3.76e-08', time_completed='2021-09-09 12:06:36.997542', job_id='386111', GAL2='0.67', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631214397.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='50' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:06:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 386111: <4FGL_J1423.1+3738_daily_bin50> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin50> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:30 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51:32 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:51:32 2021
Terminated at Thu Sep  9 12:06:37 2021
Results reported at Thu Sep  9 12:06:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin50 215.792 37.6452 252288001 252547201 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 :                                   728.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

