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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin293
RA = 215.792, Dec = 37.6452
tmin = 315273601, tmax = 315532801
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='387470', job_status='RUN', time_executed='2021-09-09 11:56:27.935170', time_epoch_executed='1631213787.94' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/387470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/387470/ft1_4FGL_J1423.1+3738_daily_bin293.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/387470/ft2_4FGL_J1423.1+3738_daily_bin293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/387470/ft1_4FGL_J1423.1+3738_daily_bin293.fits outfile=/scratch/kocevski/387470/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin293.fits ra=215.792 dec=37.6452 rad=12.0 tmin=315273601.0 tmax=315532801.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.65
user 3.45
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/387470/ft1_filtered_4FGL_J1423.1+3738_daily_bin293.fits" evtable="EVENTS" scfile=/scratch/kocevski/387470/ft2_4FGL_J1423.1+3738_daily_bin293.fits sctable="SC_DATA" outfile=/scratch/kocevski/387470/ltcube_315273601_315532801_4FGL_J1423.1+3738_daily_bin293.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/387470/ft2_4FGL_J1423.1+3738_daily_bin293.fits
.....................!
real 12.13
user 11.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/387470/ft1_filtered_4FGL_J1423.1+3738_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/387470/ft2_4FGL_J1423.1+3738_daily_bin293.fits sctable="SC_DATA" expcube=/scratch/kocevski/387470/ltcube_315273601_315532801_4FGL_J1423.1+3738_daily_bin293.fits outfile=/scratch/kocevski/387470/expmap_315273601_315532801_4FGL_J1423.1+3738_daily_bin293.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/387470/ltcube_315273601_315532801_4FGL_J1423.1+3738_daily_bin293.fits
.....................!
real 191.93
user 185.98
sys 5.32

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/387470/ft1_filtered_4FGL_J1423.1+3738_daily_bin293.fits scfile=/scratch/kocevski/387470/ft2_4FGL_J1423.1+3738_daily_bin293.fits outfile=/scratch/kocevski/387470/cmap_315273601_315532801_4FGL_J1423.1+3738_daily_bin293.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/387470/ft1_filtered_4FGL_J1423.1+3738_daily_bin293.fits scfile=/scratch/kocevski/387470/ft2_4FGL_J1423.1+3738_daily_bin293.fits outfile=/scratch/kocevski/387470/cmap_HighResolution_315273601_315532801_4FGL_J1423.1+3738_daily_bin293.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/387470/ft1_filtered_4FGL_J1423.1+3738_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/387470/ft2_4FGL_J1423.1+3738_daily_bin293.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/387470/Model_4FGL_J1423.1+3738_daily_bin293.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/387470/ft1_filtered_4FGL_J1423.1+3738_daily_bin293.fits.....................!
real 39.05
user 37.64
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41208E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4494       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.068       1.0000         .10000E-03   10000.    
     5 'norm      '    21.247       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.6883       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2828       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2792       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.734       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .62437       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    65.989       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.957       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2124       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73253       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=   4416.444     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3508 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10286E-03    1308.2       -.81651E-04** at limit **
   2  Prefactor     .10000E-03    37.534        .39788E-06** at limit **
   3  norm          3.4498        1.9060        .11269E-06   -.84667E-05
   4  Prefactor     11.069        6.6824        .12649E-05   -.21773E-03
   5  norm          21.239        22.430        .50621E-06   -.52763E-04
   6  Prefactor     .10000E-03    9.4439        .32264E-06** at limit **
   7  Prefactor     .10000E-03    3.4778        .16002E-06** at limit **
   8  Prefactor     .10000E-03    10.785       -.10446E-06** at limit **
   9  norm          9.6903        7.1487        .51458E-07   -.12275E-03
  10  Prefactor     .10000E-03    15.375        .22627E-06** at limit **
  11  Prefactor     .10000E-03    12.815       -.18613E-06** at limit **
  12  Prefactor     .10000E-03    4.2808        .34213E-06** at limit **
  13  norm          .10000E-03    15.354        .17758E-06** at limit **
  14  Prefactor     .10000E-03    55.338        .11642E-06** at limit **
  15  norm          3.2826        7.0639        .10842E-04   -.60973E-03
  16  Prefactor     .10000E-03    36.408       -.88626E-07** at limit **
  17  Prefactor     .10000E-03    23.138       -.48558E-06** at limit **
  18  norm          5.2777        12.052       -.10888E-05   -.49032E-04
  19  Prefactor     35.734        25.048       -.25757E-06   -.74094E-04
  20  Prefactor     .10000E-03    5.3030        .81435E-07** at limit **
  21  norm          .62643        1.7768        .20915E-06   -.15260E-04
  22  Prefactor     .10000E-03    8.1588       -.18909E-06** at limit **
  23  Prefactor     65.943        95.707       -.69909E-07   -.15221E-03
  24  Prefactor     17.947        31.894        .59358E-06   -.81597E-04
  25  Normalizat    1.2122        .21422       -.19122E-05    .73041E-04
  26  Prefactor     .73256        .22519       -.31605E-05    .33560E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102862
  Prefactor  = 0.0001
  norm       = 3.44976
  Prefactor  = 11.0695
  norm       = 21.2387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.69033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.28264
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.27769
  Prefactor  = 35.7341
  Prefactor  = 0.0001
  norm       = 0.626429
  Prefactor  = 0.0001
  Prefactor  = 65.9432
  Prefactor  = 17.9471
  Normalizat = 1.21224
  Prefactor  = 0.732559
 **********
 **   18 **HESSE 
 **********

 FCN=   4416.444     FROM HESSE     STATUS=OK           452 CALLS     3960 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10286E-03    1390.3        .38914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4498        1.9102        .65702E-04   -1.5336    
   4  Prefactor     11.069        6.6971        .60212E-03   -1.5042    
   5  norm          21.239        22.571        .86895E-04   -1.4786    
   6  Prefactor     .10000E-03    9.4508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4946        .12103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.6903        7.1484        .12874E-03   -1.5085    
  10  Prefactor     .10000E-03    15.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4175        .26823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    15.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    55.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2826        7.1116        .11174E-02   -1.5346    
  16  Prefactor     .10000E-03    36.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2777        12.038        .17493E-03   -1.5248    
  19  Prefactor     35.734        25.044        .67041E-04   -1.4512    
  20  Prefactor     .10000E-03    5.3240        .14919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .62643        1.7159        .13601E-03   -1.5550    
  22  Prefactor     .10000E-03    8.2149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     65.943        95.015        .24703E-03   -1.4082    
  24  Prefactor     17.947        31.907        .94515E-04   -1.4860    
  25  Normalizat    1.2122        .26194        .22465E-03   -.86226    
  26  Prefactor     .73256        .27221        .30614E-03   -1.0226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10453e-09
Minuit parameter uncertainties:
  1  0.129293
  2  0.000261881
  3  1.91023
  4  6.69752
  5  22.5797
  6  9.54438e-05
  7  8.07525e-06
  8  7.60473e-05
  9  7.14899
  10  8.60203e-05
  11  6.72968e-05
  12  1.73063e-05
  13  7.94533e-05
  14  0.00014125
  15  7.1134
  16  3.83329e-05
  17  0.000301595
  18  12.0436
  19  25.0514
  20  6.77878e-06
  21  1.71603
  22  1.37201e-06
  23  95.2342
  24  31.9372
  25  0.262224
  26  0.272704
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  7.945e-05  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:  7.326e-01  2.727e-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.212e+00  2.622e-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: 5.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/387470/likelihoodResults_315273601_315532801_4FGL_J1423.1+3738_daily_bin293.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) = 4416.44457142
delta logL = -0.000309447993459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4416.4442622
delta logL = -2.26832526096e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9009       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73258       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=   4416.444     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      193 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.482        .90712E-02** at limit **
   2  alpha         1.9366        3.4197        .42754       -.11725E-04
   3  Normalizat    1.2122        .20354        .50812E-01   -.62398E-04
   4  Prefactor     .73256        .22211        .69183E-01   -.29340E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.93659
  Normalizat = 1.21224
  Prefactor  = 0.732559
 **********
 **   18 **HESSE 
 **********

 FCN=   4416.444     FROM HESSE     STATUS=OK            25 CALLS      218 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9366        3.3957        .17102E-01   -.22732    
   3  Normalizat    1.2122        .24467        .22465E-03   -.86226    
   4  Prefactor     .73256        .26657        .30614E-03   -1.0226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85098e-10
Minuit parameter uncertainties:
  1  0.000188564
  2  2.43785
  3  0.244906
  4  0.267042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/387470': 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) = 4416.44426193
delta logL = 4.28990460932e-08

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.886e-04  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.937e+00  2.438e+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:  7.326e-01  2.670e-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.212e+00  2.449e-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/387470/cmap_HighResolution_315273601_315532801_4FGL_J1423.1+3738_daily_bin293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2021-09-09 12:06:45.669143', job_id='387470', GAL2='0.73', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631214405.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='293' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:06:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 387470: <4FGL_J1423.1+3738_daily_bin293> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin293> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:56:09 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:56:12 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:12 2021
Terminated at Thu Sep  9 12:06:46 2021
Results reported at Thu Sep  9 12:06:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin293 215.792 37.6452 315273601 315532801 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 :                                   614.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             376.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            637 sec.

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

