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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin906
RA = 215.792, Dec = 37.6452
tmin = 474163201, tmax = 474422401
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='390549', job_status='RUN', time_executed='2021-09-09 12:06:23.089022', time_epoch_executed='1631214383.09' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390549/ft1_4FGL_J1423.1+3738_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390549/ft2_4FGL_J1423.1+3738_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390549/ft1_4FGL_J1423.1+3738_daily_bin906.fits outfile=/scratch/kocevski/390549/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin906.fits ra=215.792 dec=37.6452 rad=12.0 tmin=474163201.0 tmax=474422401.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 5.54
user 5.24
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/390549/ft2_4FGL_J1423.1+3738_daily_bin906.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/390549/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin906.fits evtable="EVENTS" outfile="/scratch/kocevski/390549/ft1_filtered_4FGL_J1423.1+3738_daily_bin906.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/390549/ft1_filtered_4FGL_J1423.1+3738_daily_bin906.fits" evtable="EVENTS" scfile=/scratch/kocevski/390549/ft2_4FGL_J1423.1+3738_daily_bin906.fits sctable="SC_DATA" outfile=/scratch/kocevski/390549/ltcube_474163201_474422401_4FGL_J1423.1+3738_daily_bin906.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/390549/ft2_4FGL_J1423.1+3738_daily_bin906.fits
.....................!
real 12.28
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390549/ft1_filtered_4FGL_J1423.1+3738_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/390549/ft2_4FGL_J1423.1+3738_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/390549/ltcube_474163201_474422401_4FGL_J1423.1+3738_daily_bin906.fits outfile=/scratch/kocevski/390549/expmap_474163201_474422401_4FGL_J1423.1+3738_daily_bin906.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/390549/ltcube_474163201_474422401_4FGL_J1423.1+3738_daily_bin906.fits
.....................!
real 191.28
user 185.85
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/390549/ft1_filtered_4FGL_J1423.1+3738_daily_bin906.fits scfile=/scratch/kocevski/390549/ft2_4FGL_J1423.1+3738_daily_bin906.fits outfile=/scratch/kocevski/390549/cmap_474163201_474422401_4FGL_J1423.1+3738_daily_bin906.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.75
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390549/ft1_filtered_4FGL_J1423.1+3738_daily_bin906.fits scfile=/scratch/kocevski/390549/ft2_4FGL_J1423.1+3738_daily_bin906.fits outfile=/scratch/kocevski/390549/cmap_HighResolution_474163201_474422401_4FGL_J1423.1+3738_daily_bin906.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.7342       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.325       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.786       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21508E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.4829       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.154       1.0000         .10000E-03   10000.    
    15 'norm      '    28.938       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.207       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.421       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.459       1.0000         .10000E-03   10000.    
    21 'norm      '    7.6460       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.8310       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .74023       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97700       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=   3272.587     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3072 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.174       -.14227E-04** at limit **
   2  Prefactor     .10000E-03    126.63       -.41643E-04** at limit **
   3  norm          2.7366        2.6406        .12491E-06   -.17173E-03
   4  Prefactor     .10000E-03    5.0030        .24101E-07** at limit **
   5  norm          .10000E-03    20.603        .27786E-05** at limit **
   6  Prefactor     .10000E-03    27.286        .22168E-04** at limit **
   7  Prefactor     .10000E-03    4.2086        .69356E-07** at limit **
   8  Prefactor     43.313        37.305       -.69152E-05   -.45736E-04
   9  norm          .10000E-03    1.3805        .72796E-08** at limit **
  10  Prefactor     25.711        19.898        .61874E-07   -.46222E-03
  11  Prefactor     .10000E-03    100.77        .17286E-04** at limit **
  12  Prefactor     .10000E-03    1.6573       -.53712E-08** at limit **
  13  norm          5.4799        13.767       -.99774E-06   -.90472E-04
  14  Prefactor     29.165        46.886        .12824E-04   -.44240E-04
  15  norm          28.939        10.770       -.24737E-06   -.59742E-04
  16  Prefactor     .10000E-03    24.038       -.16529E-04** at limit **
  17  Prefactor     12.208        18.407        .20615E-06   -.77311E-05
  18  norm          .10000E-03    4.5449        .13191E-07** at limit **
  19  Prefactor     19.425        15.438        .39466E-06   -.14652E-04
  20  Prefactor     23.459        12.397       -.27504E-06   -.29800E-04
  21  norm          7.6467        2.7801       -.60747E-08   -.20903E-03
  22  Prefactor     8.8342        10.369       -.10590E-05   -.87773E-03
  23  Prefactor     .10000E-03    83.271        .21087E-04** at limit **
  24  Prefactor     .10000E-03    70.223       -.29954E-05** at limit **
  25  Normalizat    .73906        .24120       -.12722E-05   -.10341E-03
  26  Prefactor     .97819        .25767        .85797E-06   -.11128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.73664
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.3134
  norm       = 0.0001
  Prefactor  = 25.7115
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 5.47988
  Prefactor  = 29.1645
  norm       = 28.9389
  Prefactor  = 0.0001
  Prefactor  = 12.2081
  norm       = 0.0001
  Prefactor  = 19.4252
  Prefactor  = 23.4593
  norm       = 7.64667
  Prefactor  = 8.83421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.739062
  Prefactor  = 0.978193
 **********
 **   18 **HESSE 
 **********

 FCN=   3272.587     FROM HESSE     STATUS=OK           452 CALLS     3524 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    126.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.7366        2.6392        .86627E-04   -1.5377    
   4  Prefactor     .10000E-03    5.1558        .24957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    20.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2235        .11461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.313        37.515        .60906E-04   -1.4391    
   9  norm          .10000E-03    1.3814        .65638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.711        19.793        .78888E-04   -1.4693    
  11  Prefactor     .10000E-03    101.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6724        .71903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.4799        13.761        .17160E-03   -1.5240    
  14  Prefactor     29.165        47.144        .74201E-04   -1.4627    
  15  norm          28.939        10.774        .74477E-04   -1.4632    
  16  Prefactor     .10000E-03    24.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.208        18.404        .11465E-03   -1.5009    
  18  norm          .10000E-03    4.5469        .11911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.425        15.442        .90885E-04   -1.4826    
  20  Prefactor     23.459        12.410        .82702E-04   -1.4739    
  21  norm          7.6467        2.7847        .53289E-04   -1.5155    
  22  Prefactor     8.8342        10.442        .67440E-03   -1.5113    
  23  Prefactor     .10000E-03    83.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    70.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .73906        .28752        .25535E-03   -1.0237    
  26  Prefactor     .97819        .30640        .25749E-03   -.93460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32283e-09
Minuit parameter uncertainties:
  1  3.67441e-06
  2  0.000213549
  3  2.63935
  4  6.94721e-06
  5  2.14703e-05
  6  7.60978e-05
  7  1.26264e-05
  8  37.5351
  9  5.02109e-07
  10  19.7981
  11  0.00131525
  12  2.0863e-07
  13  13.769
  14  47.2047
  15  10.7752
  16  3.34837e-05
  17  18.4122
  18  1.37609e-07
  19  15.4453
  20  12.4117
  21  2.78471
  22  10.444
  23  1.10606e-05
  24  0.00019614
  25  0.288113
  26  0.306944
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  5.480e+00  1.377e+01  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:  9.782e-01  3.069e-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:  7.391e-01  2.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/390549/likelihoodResults_474163201_474422401_4FGL_J1423.1+3738_daily_bin906.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): 0
logL (Free Index) = 3272.49850667
delta logL = 0.088299659008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3272.48543226
delta logL = 0.101374073921

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7627       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3688       1.0000          .0000       5.0000    
     3 'Normalizat'    .74318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97339       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.

 FCN=   3272.485     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      194 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7834        14.967        .35981E-02    .48447E-03
   2  alpha         1.3700        1.0582        .48410E-01    .16856E-04
   3  Normalizat    .74319        .22114        .42864E-01    .36069E-06
   4  Prefactor     .97334        .25505        .45934E-01   -.81729E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.7834
  alpha      = 1.37001
  Normalizat = 0.743194
  Prefactor  = 0.973342
 **********
 **   18 **HESSE 
 **********

 FCN=   3272.485     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7834        15.079        .71962E-03   -1.5150    
   2  alpha         1.3700        1.0669        .19364E-02   -.46900    
   3  Normalizat    .74319        .25897        .25467E-03   -1.0221    
   4  Prefactor     .97334        .29875        .25795E-03   -.93623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53261e-10
Minuit parameter uncertainties:
  1  15.0863
  2  1.11245
  3  0.259398
  4  0.299255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390549': 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) = 3272.48543093
delta logL = 0.101375401898

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  7.783e+00  1.509e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.370e+00  1.112e+00  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:  9.733e-01  2.993e-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:  7.432e-01  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/390549/cmap_HighResolution_474163201_474422401_4FGL_J1423.1+3738_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-05', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2021-09-09 12:15:30.303770', job_id='390549', GAL2='0.97', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1631214930.3', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.01e-01', ts2='0.43', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='906' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:15:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 390549: <4FGL_J1423.1+3738_daily_bin906> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin906> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 12:06:05 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:06:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 12:06:06 2021
Terminated at Thu Sep  9 12:15:31 2021
Results reported at Thu Sep  9 12:15:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin906 215.792 37.6452 474163201 474422401 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 :                                   542.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            566 sec.

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

