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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin180
RA = 215.792, Dec = 37.6452
tmin = 285984001, tmax = 286243201
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='386312', job_status='RUN', time_executed='2021-09-09 11:51:59.638978', time_epoch_executed='1631213519.64' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386312

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386312/ft1_4FGL_J1423.1+3738_daily_bin180.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386312/ft2_4FGL_J1423.1+3738_daily_bin180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386312/ft1_4FGL_J1423.1+3738_daily_bin180.fits outfile=/scratch/kocevski/386312/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin180.fits ra=215.792 dec=37.6452 rad=12.0 tmin=285984001.0 tmax=286243201.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.36
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386312/ft2_4FGL_J1423.1+3738_daily_bin180.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/386312/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin180.fits evtable="EVENTS" outfile="/scratch/kocevski/386312/ft1_filtered_4FGL_J1423.1+3738_daily_bin180.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386312/ft1_filtered_4FGL_J1423.1+3738_daily_bin180.fits" evtable="EVENTS" scfile=/scratch/kocevski/386312/ft2_4FGL_J1423.1+3738_daily_bin180.fits sctable="SC_DATA" outfile=/scratch/kocevski/386312/ltcube_285984001_286243201_4FGL_J1423.1+3738_daily_bin180.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/386312/ft2_4FGL_J1423.1+3738_daily_bin180.fits
.....................!
real 15.05
user 14.43
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386312/ft1_filtered_4FGL_J1423.1+3738_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/386312/ft2_4FGL_J1423.1+3738_daily_bin180.fits sctable="SC_DATA" expcube=/scratch/kocevski/386312/ltcube_285984001_286243201_4FGL_J1423.1+3738_daily_bin180.fits outfile=/scratch/kocevski/386312/expmap_285984001_286243201_4FGL_J1423.1+3738_daily_bin180.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/386312/ltcube_285984001_286243201_4FGL_J1423.1+3738_daily_bin180.fits
.....................!
real 191.38
user 186.10
sys 4.79

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/386312/ft1_filtered_4FGL_J1423.1+3738_daily_bin180.fits scfile=/scratch/kocevski/386312/ft2_4FGL_J1423.1+3738_daily_bin180.fits outfile=/scratch/kocevski/386312/cmap_285984001_286243201_4FGL_J1423.1+3738_daily_bin180.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.53
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386312/ft1_filtered_4FGL_J1423.1+3738_daily_bin180.fits scfile=/scratch/kocevski/386312/ft2_4FGL_J1423.1+3738_daily_bin180.fits outfile=/scratch/kocevski/386312/cmap_HighResolution_285984001_286243201_4FGL_J1423.1+3738_daily_bin180.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3375       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0653       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.285       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5306       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37338       1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11716       1.0000         .10000E-03   10000.    
    15 'norm      '    .12897E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.738       1.0000         .10000E-03   10000.    
    18 'norm      '    7.3811       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.435       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1195       1.0000         .10000E-03   10000.    
    21 'norm      '    3.0903       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3285       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .59711       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=   5729.422     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3172 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.802       -.33519E-06** at limit **
   2  Prefactor     .10000E-03    64.851        .27113E-05** at limit **
   3  norm          .10000E-03    .40990        .74161E-07** at limit **
   4  Prefactor     7.3385        4.5190       -.63413E-08   -.18450E-03
   5  norm          3.0643        15.247       -.81904E-06   -.12526E-03
   6  Prefactor     10.282        14.956        .53125E-06   -.43784E-04
   7  Prefactor     .10000E-03    1.7086        .22525E-07** at limit **
   8  Prefactor     .10000E-03    43.626        .21159E-05** at limit **
   9  norm          .10000E-03    1.6436        .63907E-07** at limit **
  10  Prefactor     3.5483        9.5220        .22043E-05   -.24997E-03
  11  Prefactor     .10000E-03    8.3465       -.29659E-06** at limit **
  12  Prefactor     .37480        1.9146       -.98097E-06   -.68720E-03
  13  norm          .10000E-03    3.9587       -.10462E-06** at limit **
  14  Prefactor     .10177E-03    17.768        .17523E-06** at limit **
  15  norm          .10010E-03    3.6561        .18347E-05** at limit **
  16  Prefactor     .10000E-03    56.386       -.42213E-05** at limit **
  17  Prefactor     41.720        33.108        .13673E-04   -.16221E-04
  18  norm          7.3797        7.4207       -.42858E-05   -.17038E-03
  19  Prefactor     25.432        15.905       -.12405E-05   -.20207E-03
  20  Prefactor     6.1185        8.4873       -.29668E-06   -.27940E-03
  21  norm          3.0905        2.0027        .99624E-07   -.62499E-03
  22  Prefactor     .10000E-03    2.3004        .31208E-07** at limit **
  23  Prefactor     .10000E-03    20.289       -.12689E-05** at limit **
  24  Prefactor     .10000E-03    11.253       -.14796E-07** at limit **
  25  Normalizat    1.3284        .17652       -.12064E-05   -.24674E-03
  26  Prefactor     .59705        .19292       -.33475E-06   -.23835E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.33852
  norm       = 3.06433
  Prefactor  = 10.2824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.54826
  Prefactor  = 0.0001
  Prefactor  = 0.374802
  norm       = 0.0001
  Prefactor  = 0.000101771
  norm       = 0.000100103
  Prefactor  = 0.0001
  Prefactor  = 41.7197
  norm       = 7.37972
  Prefactor  = 25.4319
  Prefactor  = 6.11847
  norm       = 3.09052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32845
  Prefactor  = 0.597054
 **********
 **   18 **HESSE 
 **********

 FCN=   5729.422     FROM HESSE     STATUS=OK           466 CALLS     3638 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    64.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .78086        .94325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3385        4.5231        .12091E-03   -1.5166    
   5  norm          3.0643        15.294        .23170E-03   -1.5358    
   6  Prefactor     10.282        14.910        .12494E-03   -1.5067    
   7  Prefactor     .10000E-03    1.7114        .96619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6653        .94736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5483        9.4269        .21514E-03   -1.5331    
  11  Prefactor     .10000E-03    8.3620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .37480        3.5168        .20157E-02   -1.5586    
  13  norm          .10000E-03    3.9590        .14707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10177E-03    23.673        .92380E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10010E-03    23.597        .27266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    56.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.720        33.008        .62049E-04   -1.4415    
  18  norm          7.3797        7.4090        .14763E-03   -1.5165    
  19  Prefactor     25.432        15.873        .79430E-04   -1.4699    
  20  Prefactor     6.1185        8.4649        .16229E-03   -1.5213    
  21  norm          3.0905        1.9950        .74033E-04   -1.5356    
  22  Prefactor     .10000E-03    2.3036        .11212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3284        .19974        .19848E-03   -.82721    
  26  Prefactor     .59705        .21835        .32193E-03   -1.0771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04884e-09
Minuit parameter uncertainties:
  1  3.34487e-06
  2  8.20835e-05
  3  2.02055e-06
  4  4.5233
  5  13.6973
  6  14.9157
  7  1.61874e-06
  8  0.000128443
  9  4.35973e-07
  10  9.4308
  11  5.61511e-05
  12  2.29605
  13  5.45981e-06
  14  0.0129561
  15  0.00311222
  16  2.06085e-05
  17  33.0222
  18  7.40995
  19  15.8756
  20  8.4666
  21  1.99501
  22  1.08063e-06
  23  3.68777e-06
  24  8.21842e-06
  25  0.199858
  26  0.218663
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  5.460e-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:  5.971e-01  2.187e-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.328e+00  1.999e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386312/likelihoodResults_285984001_286243201_4FGL_J1423.1+3738_daily_bin180.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) = 5729.42294753
delta logL = -0.00110545528514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5729.42184213
delta logL = -5.13919076184e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9195       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59697       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=   5729.422     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      236 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    165.80        .14752E-01** at limit **
   2  alpha         1.5996        4.1987        .17060        .10663E-08
   3  Normalizat    1.3284        .26685E-01    .19848E-03   -.57760E-04
   4  Prefactor     .59706        .30262E-01    .32193E-03   -.30900E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.59965
  Normalizat = 1.32844
  Prefactor  = 0.597056
 **********
 **   18 **HESSE 
 **********

 FCN=   5729.422     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2170        .15163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5996        3.1125        .68239E-02   -.36842    
   3  Normalizat    1.3284        .19101        .39696E-04   -.82721    
   4  Prefactor     .59706        .21642        .12877E-04   -1.0771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42187e-12
Minuit parameter uncertainties:
  1  6.14885e-07
  2  265.282
  3  0.191107
  4  0.216724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386312': 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) = 5729.42184133
delta logL = 7.46732439438e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  6.149e-07  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.600e+00  2.653e+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:  5.971e-01  2.167e-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.328e+00  1.911e-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/386312/cmap_HighResolution_285984001_286243201_4FGL_J1423.1+3738_daily_bin180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-05', job_status='DONE', photon_flux_upper_limit='2.49e-08', time_completed='2021-09-09 12:03:57.093120', job_id='386312', GAL2='0.60', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631214237.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='7.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='180' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:03:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 386312: <4FGL_J1423.1+3738_daily_bin180> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin180 215.792 37.6452 285984001 286243201 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 :                                   714.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

