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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin96
RA = 219.74, Dec = 37.1752
tmin = 264211201, tmax = 264470401
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='665904', job_status='RUN', time_executed='2021-09-10 03:11:26.556256', time_epoch_executed='1631268686.56' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='96'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665904/ft1_4FGL_J1438.9+3710_daily_bin96.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665904/ft2_4FGL_J1438.9+3710_daily_bin96.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665904/ft1_4FGL_J1438.9+3710_daily_bin96.fits outfile=/scratch/kocevski/665904/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin96.fits ra=219.74 dec=37.1752 rad=12.0 tmin=264211201.0 tmax=264470401.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 1.67
user 1.50
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/665904/ft2_4FGL_J1438.9+3710_daily_bin96.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/665904/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin96.fits evtable="EVENTS" outfile="/scratch/kocevski/665904/ft1_filtered_4FGL_J1438.9+3710_daily_bin96.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665904/ft1_filtered_4FGL_J1438.9+3710_daily_bin96.fits" evtable="EVENTS" scfile=/scratch/kocevski/665904/ft2_4FGL_J1438.9+3710_daily_bin96.fits sctable="SC_DATA" outfile=/scratch/kocevski/665904/ltcube_264211201_264470401_4FGL_J1438.9+3710_daily_bin96.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/665904/ft2_4FGL_J1438.9+3710_daily_bin96.fits
.....................!
real 12.62
user 12.23
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665904/ft1_filtered_4FGL_J1438.9+3710_daily_bin96.fits evtable="EVENTS" scfile=/scratch/kocevski/665904/ft2_4FGL_J1438.9+3710_daily_bin96.fits sctable="SC_DATA" expcube=/scratch/kocevski/665904/ltcube_264211201_264470401_4FGL_J1438.9+3710_daily_bin96.fits outfile=/scratch/kocevski/665904/expmap_264211201_264470401_4FGL_J1438.9+3710_daily_bin96.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/665904/ltcube_264211201_264470401_4FGL_J1438.9+3710_daily_bin96.fits
.....................!
real 190.47
user 185.07
sys 4.97

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/665904/ft1_filtered_4FGL_J1438.9+3710_daily_bin96.fits scfile=/scratch/kocevski/665904/ft2_4FGL_J1438.9+3710_daily_bin96.fits outfile=/scratch/kocevski/665904/cmap_264211201_264470401_4FGL_J1438.9+3710_daily_bin96.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665904/ft1_filtered_4FGL_J1438.9+3710_daily_bin96.fits scfile=/scratch/kocevski/665904/ft2_4FGL_J1438.9+3710_daily_bin96.fits outfile=/scratch/kocevski/665904/cmap_HighResolution_264211201_264470401_4FGL_J1438.9+3710_daily_bin96.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30219E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.745       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3890       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0258       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.527       1.0000         .10000E-03   10000.    
    12 'norm      '    6.9047       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8655       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8375       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1054       1.0000         .10000E-03   10000.    
    19 'norm      '    .10931E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8779       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.994       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.669       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.071       1.0000         .10000E-03   10000.    
    28 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0409       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0327       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=   7879.477     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3896 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.071        .45072E-05** at limit **
   2  Prefactor     .10001E-03    3.8519        .36740E-06** at limit **
   3  norm          .10000E-03    8.4038        .34007E-05** at limit **
   4  Prefactor     .10000E-03    3.9999       -.10999E-05** at limit **
   5  Prefactor     10.742        19.966       -.15807E-05   -.36319E-04
   6  norm          .10000E-03    3.7832        .12593E-05** at limit **
   7  Prefactor     7.3923        8.7770       -.11104E-06   -.25499E-04
   8  Prefactor     .10000E-03    18.239       -.68641E-06** at limit **
   9  Prefactor     .10000E-03    2.3057       -.40298E-07** at limit **
  10  norm          2.0252        7.3217        .24863E-05   -.12656E-02
  11  Prefactor     11.518        21.971       -.64101E-05   -.11881E-03
  12  norm          6.9054        5.9411        .16732E-06   -.10965E-02
  13  Prefactor     .10000E-03    19.900        .64875E-05** at limit **
  14  Prefactor     .10000E-03    13.526       -.51726E-05** at limit **
  15  norm          5.8657        5.6255        .17732E-07    .36466E-04
  16  Prefactor     .10000E-03    4.3450       -.17514E-05** at limit **
  17  Prefactor     3.8312        7.0169       -.14734E-06   -.96179E-04
  18  Prefactor     4.1051        4.9158        .47977E-06   -.19355E-02
  19  norm          .10000E-03    .75487        .58020E-07** at limit **
  20  norm          .10000E-03    2.9453       -.44476E-07** at limit **
  21  Prefactor     2.8814        7.7491       -.73232E-07   -.53006E-04
  22  Prefactor     .10000E-03    41.170       -.86145E-05** at limit **
  23  Prefactor     17.995        15.586       -.11052E-06    .19791E-04
  24  Prefactor     .10000E-03    12.500       -.78702E-06** at limit **
  25  norm          12.669        1.9448       -.28289E-07   -.67170E-03
  26  Prefactor     .10000E-03    5.1460        .49462E-05** at limit **
  27  Prefactor     16.072        14.324        .34671E-08    .83497E-04
  28  norm          .10000E-03    5.7934       -.52243E-05** at limit **
  29  Normalizat    1.0409        .16470        .10167E-05   -.12795E-03
  30  Prefactor     1.0327        .17269       -.36930E-06   -.79803E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7417
  norm       = 0.0001
  Prefactor  = 7.39229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.02522
  Prefactor  = 11.5175
  norm       = 6.90536
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.86568
  Prefactor  = 0.0001
  Prefactor  = 3.8312
  Prefactor  = 4.10514
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.88141
  Prefactor  = 0.000100001
  Prefactor  = 17.9951
  Prefactor  = 0.0001
  norm       = 12.669
  Prefactor  = 0.0001
  Prefactor  = 16.0717
  norm       = 0.0001
  Normalizat = 1.04091
  Prefactor  = 1.03273
 **********
 **   18 **HESSE 
 **********

 FCN=   7879.477     FROM HESSE     STATUS=OK           588 CALLS     4484 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    13.740        .33549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.4515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0020        .17341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.742        20.050        .12223E-03   -1.5052    
   6  norm          .10000E-03    3.9268        .33631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3923        8.8246        .14755E-03   -1.5164    
   8  Prefactor     .10000E-03    18.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3987        .26293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0252        14.286        .14535E-02   -1.5423    
  11  Prefactor     11.518        22.028        .11800E-03   -1.5029    
  12  norm          6.9054        6.0166        .76341E-03   -1.5182    
  13  Prefactor     .10000E-03    19.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8657        5.6288        .16582E-03   -1.5224    
  16  Prefactor     .10000E-03    4.3572        .18074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8312        6.5844        .20602E-03   -1.5316    
  18  Prefactor     4.1051        5.3809        .99481E-03   -1.5303    
  19  norm          .10000E-03    1.1304        .13985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.9806        .29510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8814        7.6264        .23959E-03   -1.5368    
  22  Prefactor     .10000E-03    41.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.995        15.526        .94417E-04   -1.4859    
  24  Prefactor     .10000E-03    12.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.669        1.9450        .46375E-04   -1.4996    
  26  Prefactor     .10000E-03    5.1743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.072        14.321        .99906E-04   -1.4906    
  28  norm          .10000E-03    5.8309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0409        .19540        .24699E-03   -.91672    
  30  Prefactor     1.0327        .20659        .27190E-03   -.91646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29928e-08
Minuit parameter uncertainties:
  1  0.000185373
  2  0.000580869
  3  5.98351e-05
  4  1.64981e-05
  5  20.0628
  6  4.50102e-06
  7  8.82618
  8  5.08619e-06
  9  8.20352e-06
  10  10.7612
  11  22.0437
  12  6.01716
  13  0.000221649
  14  0.000142328
  15  5.6293
  16  2.74209e-05
  17  6.58565
  18  5.38153
  19  3.27845e-06
  20  6.70772e-07
  21  7.62899
  22  0.000406601
  23  15.5294
  24  1.91726e-05
  25  1.94501
  26  7.70748e-05
  27  14.3244
  28  8.92234e-05
  29  0.19553
  30  0.206754
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  6.905e+00  6.017e+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

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.033e+00  2.068e-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.041e+00  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.12
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 9.35e-06

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

Saving results to:
/scratch/kocevski/665904/likelihoodResults_264211201_264470401_4FGL_J1438.9+3710_daily_bin96.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) = 7879.43330689
delta logL = 0.0433470792195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7879.42832554
delta logL = 0.0483284321472

Fit tolerance = 1e-08

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

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

 FCN=   7879.428     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      233 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3979        6.1234        .15867E-03    .22975E-02
   2  alpha         2.5485        .79461        .19237E-01    .20879E-03
   3  Normalizat    1.0317        .18916        .24794E-03   -.42168E-03
   4  Prefactor     1.0395        .20559        .27112E-03   -.47196E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.39789
  alpha      = 2.54845
  Normalizat = 1.03168
  Prefactor  = 1.03947
 **********
 **   18 **HESSE 
 **********

 FCN=   7879.428     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3979        5.9192        .63467E-05   -1.5202    
   2  alpha         2.5485        .76833        .76946E-03    .19382E-01
   3  Normalizat    1.0317        .18925        .49589E-04   -.91976    
   4  Prefactor     1.0395        .20567        .54224E-04   -.91425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35771e-09
Minuit parameter uncertainties:
  1  5.91977
  2  0.78097
  3  0.189378
  4  0.205824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665904': 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) = 7879.42832548
delta logL = 0.0483284900138

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  6.398e+00  5.920e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.548e+00  7.810e-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:  1.039e+00  2.058e-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.032e+00  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.55 +/- 0.78
Photon Flux (Free Index): 3.76e-08 +/- 3.60e-08
Energy Flux (Free Index): 1.04e-05 +/- 8.69e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/665904/cmap_HighResolution_264211201_264470401_4FGL_J1438.9+3710_daily_bin96.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-05', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='1.04e-05', photon_flux_error='2.72e-08', dlogl='4.83e-02', energy_flux='1.07e-05', photon_flux2='3.76e-08', job_status='DONE', time_completed='2021-09-10 03:27:26.433026', photon_index_error2='0.78', photon_index2='2.55', ts='2.12', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='9.08e-08', energy_flux_error2='8.69e-06', EG='1.04', time_epoch_completed='1631269646.43', return_code='0', job_id='665904', GAL2='1.04', EG2='1.03', return_code2='0', energy_flux_error='9.35e-06', photon_flux_error2='3.60e-08', ts2='2.22', photon_index='2.31' WHERE bin_id='96' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:27:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 665904: <4FGL_J1438.9+3710_daily_bin96> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin96> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:11:15 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:11:16 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:16 2021
Terminated at Fri Sep 10 03:27:27 2021
Results reported at Fri Sep 10 03:27:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin96 219.74 37.1752 264211201 264470401 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 :                                   953.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

