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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin144
RA = 219.74, Dec = 37.1752
tmin = 276652801, tmax = 276912001
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='665973', job_status='RUN', time_executed='2021-09-10 03:15:07.973165', time_epoch_executed='1631268907.97' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665973

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665973/ft1_4FGL_J1438.9+3710_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665973/ft2_4FGL_J1438.9+3710_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665973/ft1_4FGL_J1438.9+3710_daily_bin144.fits outfile=/scratch/kocevski/665973/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin144.fits ra=219.74 dec=37.1752 rad=12.0 tmin=276652801.0 tmax=276912001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.59
user 4.37
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/665973/ft2_4FGL_J1438.9+3710_daily_bin144.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/665973/ft2_4FGL_J1438.9+3710_daily_bin144.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/665973/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin144.fits evtable="EVENTS" outfile="/scratch/kocevski/665973/ft1_filtered_4FGL_J1438.9+3710_daily_bin144.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665973/ft1_filtered_4FGL_J1438.9+3710_daily_bin144.fits" evtable="EVENTS" scfile=/scratch/kocevski/665973/ft2_4FGL_J1438.9+3710_daily_bin144.fits sctable="SC_DATA" outfile=/scratch/kocevski/665973/ltcube_276652801_276912001_4FGL_J1438.9+3710_daily_bin144.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/665973/ft2_4FGL_J1438.9+3710_daily_bin144.fits
.....................!
real 11.46
user 11.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665973/ft1_filtered_4FGL_J1438.9+3710_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/665973/ft2_4FGL_J1438.9+3710_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/665973/ltcube_276652801_276912001_4FGL_J1438.9+3710_daily_bin144.fits outfile=/scratch/kocevski/665973/expmap_276652801_276912001_4FGL_J1438.9+3710_daily_bin144.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/665973/ltcube_276652801_276912001_4FGL_J1438.9+3710_daily_bin144.fits
.....................!
real 191.38
user 186.56
sys 4.46

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

Setting source of interest to:
4FGL J1438.9+3710 @ 219.74 37.1752

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/665973/ft1_filtered_4FGL_J1438.9+3710_daily_bin144.fits scfile=/scratch/kocevski/665973/ft2_4FGL_J1438.9+3710_daily_bin144.fits outfile=/scratch/kocevski/665973/cmap_276652801_276912001_4FGL_J1438.9+3710_daily_bin144.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=219.74 yref=37.1752 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665973/ft1_filtered_4FGL_J1438.9+3710_daily_bin144.fits scfile=/scratch/kocevski/665973/ft2_4FGL_J1438.9+3710_daily_bin144.fits outfile=/scratch/kocevski/665973/cmap_HighResolution_276652801_276912001_4FGL_J1438.9+3710_daily_bin144.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=219.74 yref=37.1752 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/665973/ft1_filtered_4FGL_J1438.9+3710_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/665973/ft2_4FGL_J1438.9+3710_daily_bin144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/665973/Model_4FGL_J1438.9+3710_daily_bin144.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/665973/ft1_filtered_4FGL_J1438.9+3710_daily_bin144.fits.....................!
real 44.80
user 43.57
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/665973/ft1_filtered_4FGL_J1438.9+3710_daily_bin144.fits', '/scratch/kocevski/665973/ft2_4FGL_J1438.9+3710_daily_bin144.fits', expMap='/scratch/kocevski/665973/expmap_276652801_276912001_4FGL_J1438.9+3710_daily_bin144.fits', expCube='/scratch/kocevski/665973/ltcube_276652801_276912001_4FGL_J1438.9+3710_daily_bin144.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/665973/Model_4FGL_J1438.9+3710_daily_bin144.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.9+3710'

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.709e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/665973/ft1_filtered_4FGL_J1438.9+3710_daily_bin144.fits
Spacecraft file(s): /scratch/kocevski/665973/ft2_4FGL_J1438.9+3710_daily_bin144.fits
Exposure map: /scratch/kocevski/665973/expmap_276652801_276912001_4FGL_J1438.9+3710_daily_bin144.fits
Exposure cube: /scratch/kocevski/665973/ltcube_276652801_276912001_4FGL_J1438.9+3710_daily_bin144.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/665973/Model_4FGL_J1438.9+3710_daily_bin144.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) = 5539.55185349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1342       1.0000         .10000E-03   10000.    
     3 'norm      '    50.287       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.033       1.0000         .10000E-03   10000.    
     6 'norm      '    .91715       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3828       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.565       1.0000         .10000E-03   10000.    
    12 'norm      '    39.639       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.927       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9853       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .90187       1.0000         .10000E-03   10000.    
    20 'norm      '    2.0372       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7518       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .46684E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.865       1.0000         .10000E-03   10000.    
    25 'norm      '    13.206       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0218       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5539.526     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     4482 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10208E-03    67.914         .0000    ** at limit **
   2  Prefactor     4.1338        7.7915         .0000        .63788E-02
   3  norm          50.288        24.065         .0000       -.19498E-03
   4  Prefactor     .10009E-03    7.2482         .0000    ** at limit **
   5  Prefactor     33.034        25.396         .0000        .15975E-03
   6  norm          .91661        2.6601         .0000        .93307E-03
   7  Prefactor     .10001E-03    8.9231         .0000    ** at limit **
   8  Prefactor     5.3785        14.082         .0000        .16776E-02
   9  Prefactor     .10000E-03    1.0154         .0000    ** at limit **
  10  norm          .10000E-03    4.9161         .0000    ** at limit **
  11  Prefactor     11.568        19.177         .0000       -.39677E-04
  12  norm          39.637        11.196         .0000        .18988E-03
  13  Prefactor     .10000E-03    16.038         .0000    ** at limit **
  14  Prefactor     .10004E-03    28.774         .0000    ** at limit **
  15  norm          .10000E-03    4.6176         .0000    ** at limit **
  16  Prefactor     11.925        19.497         .0000        .16631E-03
  17  Prefactor     1.9887        13.674         .0000        .99157E-02
  18  Prefactor     .10007E-03    6.2224         .0000    ** at limit **
  19  norm          .90215        1.7957         .0000        .78176E-03
  20  norm          2.0354        3.5330         .0000        .32472E-03
  21  Prefactor     1.7605        52.871         .0000        .80237E-02
  22  Prefactor     .10325E-03    57.873         .0000    ** at limit **
  23  Prefactor     .14018E-03    25.264         .0000    ** at limit **
  24  Prefactor     13.855        26.296         .0000        .19724E-02
  25  norm          13.206        2.2823         .0000       -.25338E-03
  26  Prefactor     .10000E-03    8.8283         .0000    ** at limit **
  27  Prefactor     .10001E-03    6.6940         .0000    ** at limit **
  28  norm          .10003E-03    5.6491         .0000    ** at limit **
  29  Normalizat    1.0219        .20359         .0000        .48935E-04
  30  Prefactor     .89546        .20103         .0000        .10104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010208
  Prefactor  = 4.1338
  norm       = 50.2882
  Prefactor  = 0.000100092
  Prefactor  = 33.0339
  norm       = 0.916611
  Prefactor  = 0.00010001
  Prefactor  = 5.37855
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 11.5679
  norm       = 39.6372
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  norm       = 0.0001
  Prefactor  = 11.9252
  Prefactor  = 1.98871
  Prefactor  = 0.000100066
  norm       = 0.902149
  norm       = 2.03539
  Prefactor  = 1.76053
  Prefactor  = 0.00010325
  Prefactor  = 0.000140182
  Prefactor  = 13.8546
  norm       = 13.2062
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.000100033
  Normalizat = 1.02187
  Prefactor  = 0.89546
 **********
 **   18 **HESSE 
 **********

 FCN=   5539.526     FROM HESSE     STATUS=OK           584 CALLS     5066 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10208E-03    67.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.1338        7.8105        .99123E-03   -1.5301    
   3  norm          50.288        24.182        .56552E-04   -1.4288    
   4  Prefactor     .10009E-03    7.2508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.034        25.588        .69719E-04   -1.4558    
   6  norm          .91661        2.3239        .19913E-02   -1.5516    
   7  Prefactor     .10001E-03    8.9294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3785        14.027        .86605E-03   -1.5244    
   9  Prefactor     .10000E-03    1.0183        .73226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.9166        .16114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.568        19.185        .11780E-03   -1.5028    
  12  norm          39.637        11.207        .63665E-04   -1.4448    
  13  Prefactor     .10000E-03    16.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    28.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.6212        .15617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.925        19.405        .11599E-03   -1.5017    
  17  Prefactor     1.9887        12.234        .14705E-02   -1.5426    
  18  Prefactor     .10007E-03    6.3140        .18129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .90215        1.6554        .11069E-03   -1.5518    
  20  norm          2.0354        3.2931        .14998E-03   -1.5423    
  21  Prefactor     1.7605        36.074        .15838E-02   -1.5443    
  22  Prefactor     .10325E-03    57.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .14018E-03    204.64        .59024E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.855        21.412        .10757E-03   -1.4963    
  25  norm          13.206        2.2808        .44570E-04   -1.4981    
  26  Prefactor     .10000E-03    8.8497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    6.6988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10003E-03    5.6589        .17277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0219        .24022        .25169E-03   -.92301    
  30  Prefactor     .89546        .23596        .28859E-03   -.96300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20982e-07
Minuit parameter uncertainties:
  1  0.0238121
  2  7.81247
  3  24.1869
  4  0.00163618
  5  25.5963
  6  2.32409
  7  0.000594951
  8  14.0351
  9  7.88852e-08
  10  0.000237759
  11  19.1957
  12  11.2076
  13  9.75947e-05
  14  0.00213989
  15  8.75335e-05
  16  19.4152
  17  9.86775
  18  0.00128713
  19  1.65547
  20  3.29336
  21  15.949
  22  0.0274812
  23  0.181986
  24  21.4243
  25  2.28082
  26  0.00012141
  27  0.000551429
  28  0.000860806
  29  0.24047
  30  0.236234
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.964e+01  1.121e+01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  8.955e-01  2.362e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.022e+00  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.99
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.80e-07 +/- 5.08e-08
Energy Flux (Fixed Index): 6.16e-05 +/- 1.74e-05

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) = 5539.52439459
delta logL = 0.00134915561648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5539.5239709
delta logL = 0.00177284869096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.935       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2912       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89338       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5539.524     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      222 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 74.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.934        11.881       -.10113E-05    .15115E-02
   2  alpha         2.2912        .30356        .58155E-05    .23828E-03
   3  Normalizat    1.0246        .18827       -.35212E-06   -.57089E-04
   4  Prefactor     .89354        .20071        .32642E-06   -.49375E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 39.9343
  alpha      = 2.29125
  Normalizat = 1.02459
  Prefactor  = 0.893538
 **********
 **   18 **HESSE 
 **********

 FCN=   5539.524     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.934        12.267        .63429E-04   -1.4443    
   2  alpha         2.2912        .31420        .76752E-02   -.83599E-01
   3  Normalizat    1.0246        .21981        .25142E-03   -.92211    
   4  Prefactor     .89354        .23325        .28887E-03   -.96367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09232e-09
Minuit parameter uncertainties:
  1  12.2682
  2  0.315037
  3  0.220007
  4  0.233509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665973': 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) = 5539.52397053
delta logL = 0.00177321708452

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.993e+01  1.227e+01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.291e+00  3.150e-01  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  8.935e-01  2.335e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.025e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.61
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.29 +/- 0.32
Photon Flux (Free Index): 1.77e-07 +/- 6.03e-08
Energy Flux (Free Index): 6.21e-05 +/- 1.95e-05

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/665973/cmap_HighResolution_276652801_276912001_4FGL_J1438.9+3710_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.80e-07', energy_flux2='6.21e-05', photon_flux_error='5.08e-08', dlogl='1.77e-03', energy_flux='6.16e-05', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-09-10 03:27:22.790620', photon_index_error2='0.32', photon_index2='2.29', ts='38.99', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='1.02', time_epoch_completed='1631269642.79', return_code='0', job_id='665973', GAL2='0.89', EG2='1.02', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='6.03e-08', ts2='38.61', photon_index='2.31' WHERE bin_id='144' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:27:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 665973: <4FGL_J1438.9+3710_daily_bin144> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin144> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:11:20 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:11:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:11:21 2021
Terminated at Fri Sep 10 03:27:23 2021
Results reported at Fri Sep 10 03:27:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin144 219.74 37.1752 276652801 276912001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.9+3710 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   733.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            963 sec.

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

