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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin958
RA = 219.74, Dec = 37.1752
tmin = 487641601, tmax = 487900801
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='671949', job_status='RUN', time_executed='2021-09-10 03:34:23.678870', time_epoch_executed='1631270063.68' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671949

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671949/ft1_4FGL_J1438.9+3710_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671949/ft2_4FGL_J1438.9+3710_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671949/ft1_4FGL_J1438.9+3710_daily_bin958.fits outfile=/scratch/kocevski/671949/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin958.fits ra=219.74 dec=37.1752 rad=12.0 tmin=487641601.0 tmax=487900801.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.05
user 4.80
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671949/ft2_4FGL_J1438.9+3710_daily_bin958.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/671949/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin958.fits evtable="EVENTS" outfile="/scratch/kocevski/671949/ft1_filtered_4FGL_J1438.9+3710_daily_bin958.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.53
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671949/ft1_filtered_4FGL_J1438.9+3710_daily_bin958.fits" evtable="EVENTS" scfile=/scratch/kocevski/671949/ft2_4FGL_J1438.9+3710_daily_bin958.fits sctable="SC_DATA" outfile=/scratch/kocevski/671949/ltcube_487641601_487900801_4FGL_J1438.9+3710_daily_bin958.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/671949/ft2_4FGL_J1438.9+3710_daily_bin958.fits
.....................!
real 11.99
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671949/ft1_filtered_4FGL_J1438.9+3710_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/671949/ft2_4FGL_J1438.9+3710_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/671949/ltcube_487641601_487900801_4FGL_J1438.9+3710_daily_bin958.fits outfile=/scratch/kocevski/671949/expmap_487641601_487900801_4FGL_J1438.9+3710_daily_bin958.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/671949/ltcube_487641601_487900801_4FGL_J1438.9+3710_daily_bin958.fits
.....................!
real 190.16
user 185.17
sys 4.60

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/671949/ft1_filtered_4FGL_J1438.9+3710_daily_bin958.fits scfile=/scratch/kocevski/671949/ft2_4FGL_J1438.9+3710_daily_bin958.fits outfile=/scratch/kocevski/671949/cmap_487641601_487900801_4FGL_J1438.9+3710_daily_bin958.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671949/ft1_filtered_4FGL_J1438.9+3710_daily_bin958.fits scfile=/scratch/kocevski/671949/ft2_4FGL_J1438.9+3710_daily_bin958.fits outfile=/scratch/kocevski/671949/cmap_HighResolution_487641601_487900801_4FGL_J1438.9+3710_daily_bin958.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/671949/ft1_filtered_4FGL_J1438.9+3710_daily_bin958.fits', '/scratch/kocevski/671949/ft2_4FGL_J1438.9+3710_daily_bin958.fits', expMap='/scratch/kocevski/671949/expmap_487641601_487900801_4FGL_J1438.9+3710_daily_bin958.fits', expCube='/scratch/kocevski/671949/ltcube_487641601_487900801_4FGL_J1438.9+3710_daily_bin958.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/671949/Model_4FGL_J1438.9+3710_daily_bin958.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/671949/ft1_filtered_4FGL_J1438.9+3710_daily_bin958.fits
Spacecraft file(s): /scratch/kocevski/671949/ft2_4FGL_J1438.9+3710_daily_bin958.fits
Exposure map: /scratch/kocevski/671949/expmap_487641601_487900801_4FGL_J1438.9+3710_daily_bin958.fits
Exposure cube: /scratch/kocevski/671949/ltcube_487641601_487900801_4FGL_J1438.9+3710_daily_bin958.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/671949/Model_4FGL_J1438.9+3710_daily_bin958.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) = 4102.96883685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.074       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7583       1.0000         .10000E-03   10000.    
    10 'norm      '    14.952       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .22566E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.545       1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.901       1.0000         .10000E-03   10000.    
    15 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7528       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6653       1.0000         .10000E-03   10000.    
    19 'norm      '    .37353       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13266E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3915       1.0000         .10000E-03   10000.    
    25 'norm      '    1.0252       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.5104       1.0000         .10000E-03   10000.    
    28 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0596       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74581       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=   4102.948     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3912 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    121.04        .85529E-05** at limit **
   2  Prefactor     .10000E-03    1.6811       -.70135E-08** at limit **
   3  norm          .10000E-03    72.087       -.59146E-05** at limit **
   4  Prefactor     16.078        20.080        .57322E-06    .86424E-04
   5  Prefactor     .10000E-03    7.1939       -.12220E-06** at limit **
   6  norm          .10000E-03    2.8037        .32396E-08** at limit **
   7  Prefactor     .10000E-03    4.7559        .30986E-07** at limit **
   8  Prefactor     .10000E-03    5.2262        .54762E-07** at limit **
   9  Prefactor     2.7579        3.1102       -.44433E-09    .88506E-05
  10  norm          14.951        13.230        .46623E-07    .23160E-04
  11  Prefactor     .10000E-03    15.783        .73993E-08** at limit **
  12  norm          .10000E-03    8.6984       -.81198E-06** at limit **
  13  Prefactor     28.541        31.504        .24022E-06    .12652E-04
  14  Prefactor     55.896        43.577        .19404E-06   -.15841E-04
  15  norm          .10000E-03    8.6246        .85495E-06** at limit **
  16  Prefactor     .10000E-03    40.474        .25128E-05** at limit **
  17  Prefactor     8.7515        7.8077       -.85473E-07   -.26406E-04
  18  Prefactor     2.6655        6.6920        .39094E-05    .10171E-03
  19  norm          .37343        1.2200       -.28462E-07   -.12998E-03
  20  norm          .10000E-03    1.4798        .38099E-07** at limit **
  21  Prefactor     .10003E-03    12.527       -.10387E-05** at limit **
  22  Prefactor     .10000E-03    25.470       -.13042E-05** at limit **
  23  Prefactor     .10000E-03    15.671        .12029E-06** at limit **
  24  Prefactor     4.4141        16.951       -.14987E-05    .16052E-04
  25  norm          1.0253        .97462        .11350E-08   -.15428E-04
  26  Prefactor     .10000E-03    4.9053       -.44239E-07** at limit **
  27  Prefactor     9.5129        21.206        .63048E-07    .11040E-05
  28  norm          .10000E-03    13.794        .88966E-07** at limit **
  29  Normalizat    1.0597        .19256        .45388E-06    .12959E-03
  30  Prefactor     .74571        .20051       -.60651E-06    .93763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 16.078
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.7579
  norm       = 14.9506
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.5414
  Prefactor  = 55.8958
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.75148
  Prefactor  = 2.66555
  norm       = 0.373434
  norm       = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.4141
  norm       = 1.02527
  Prefactor  = 0.0001
  Prefactor  = 9.51294
  norm       = 0.0001
  Normalizat = 1.05974
  Prefactor  = 0.745713
 **********
 **   18 **HESSE 
 **********

 FCN=   4102.948     FROM HESSE     STATUS=OK           588 CALLS     4500 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    121.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.6850        .81109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    73.358        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.078        20.108        .99899E-04   -1.4906    
   5  Prefactor     .10000E-03    7.2003        .16780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.8380        .10469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7586        .13640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2288        .14300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7579        3.1082        .11549E-03   -1.5376    
  10  norm          14.951        13.227        .10358E-03   -1.4934    
  11  Prefactor     .10000E-03    15.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.0426        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.541        31.517        .74987E-04   -1.4639    
  14  Prefactor     55.896        43.633        .53652E-04   -1.4211    
  15  norm          .10000E-03    8.7102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.7515        7.7386        .13548E-03   -1.5116    
  18  Prefactor     2.6655        6.7154        .12482E-02   -1.5381    
  19  norm          .37343        1.1432        .11922E-02   -1.5586    
  20  norm          .10000E-03    1.4818        .76044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    40.352        .35934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.4141        14.412        .19219E-03   -1.5288    
  25  norm          1.0253        .96788        .59328E-04   -1.5505    
  26  Prefactor     .10000E-03    4.9245        .13848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.5129        21.159        .12995E-03   -1.5091    
  28  norm          .10000E-03    13.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0597        .22287        .20898E-03   -.91055    
  30  Prefactor     .74571        .23181        .26307E-03   -1.0176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89178e-09
Minuit parameter uncertainties:
  1  4.84928e-05
  2  2.78062e-07
  3  0.000628331
  4  20.1168
  5  1.23541e-06
  6  1.27576e-06
  7  1.29136e-06
  8  7.99834e-07
  9  3.10838
  10  13.23
  11  2.60704e-06
  12  2.19855e-05
  13  31.5356
  14  43.6579
  15  6.85931e-06
  16  0.000150932
  17  7.73951
  18  6.71728
  19  1.14323
  20  2.37275e-06
  21  0.00226438
  22  8.14981e-06
  23  3.21857e-05
  24  14.4236
  25  0.967895
  26  1.0548e-06
  27  21.1753
  28  1.51315e-06
  29  0.22307
  30  0.232116
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  2.199e-05  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:  7.457e-01  2.321e-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.060e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.740 37.175
Photon Flux Upper Limit: 6.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671949/likelihoodResults_487641601_487900801_4FGL_J1438.9+3710_daily_bin958.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) = 4102.94858112
delta logL = -0.000523986465851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4102.94805699
delta logL = 1.50443156599e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4102.948     FROM MIGRAD    STATUS=FAILED        92 CALLS      245 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10572E-03    1908.7        .26476E-02** at limit **
   2  alpha         2.6468        3.2984        .16505       -.41563E-05
   3  Normalizat    1.0597        .83989E-01    .20898E-03    .79925E-04
   4  Prefactor     .74571        .90221E-01    .26307E-03    .10597E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4102.948     FROM SIMPLEX   STATUS=PROGRESS     143 CALLS      388 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10514E-03    1908.7        .45649E-03** at limit **
   2  alpha         2.6468        3.2984        .11908E-04   -.41563E-05
   3  Normalizat    1.0597        .83989E-01    .69566E-06    .79925E-04
   4  Prefactor     .74571        .90221E-01    .32582E-06    .10597E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4102.948     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      422 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.223        .52953E-03** at limit **
   2  alpha         2.7539        3.5833        .66019E-02    .65438E-08
   3  Normalizat    1.0597        .21371        .41796E-04    .14150E-03
   4  Prefactor     .74571        .23051        .10523E-04    .14132E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.75392
  Normalizat = 1.05973
  Prefactor  = 0.745714
 **********
 **   18 **HESSE 
 **********

 FCN=   4102.948     FROM HESSE     STATUS=OK            23 CALLS      445 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.216        .10591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7539        3.7664        .13204E-02    .10174    
   3  Normalizat    1.0597        .21374        .83592E-05   -.91055    
   4  Prefactor     .74571        .23055        .21045E-05   -1.0176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76133e-11
Minuit parameter uncertainties:
  1  1.97475e-05
  2  255.241
  3  0.213909
  4  0.230843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671949': 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) = 4102.94805574
delta logL = 1.39200619742e-06

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  1.975e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.754e+00  2.552e+02  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:  7.457e-01  2.308e-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.060e+00  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.740 37.175

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/671949/cmap_HighResolution_487641601_487900801_4FGL_J1438.9+3710_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-09-10 03:45:34.919539', job_id='671949', GAL2='0.75', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631270734.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='958' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:45:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 671949: <4FGL_J1438.9+3710_daily_bin958> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin958> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 03:31:49 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:31:50 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:31:50 2021
Terminated at Fri Sep 10 03:45:35 2021
Results reported at Fri Sep 10 03:45:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin958 219.74 37.1752 487641601 487900801 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 :                                   667.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

