/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 8 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7414
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1438.9+3710_daily_bin604
RA = 219.74, Dec = 37.1752
tmin = 395884801, tmax = 396144001
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='670352', job_status='RUN', time_executed='2021-09-10 03:26:35.485490', time_epoch_executed='1631269595.49' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670352

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670352/ft1_4FGL_J1438.9+3710_daily_bin604.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670352/ft2_4FGL_J1438.9+3710_daily_bin604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670352/ft1_4FGL_J1438.9+3710_daily_bin604.fits outfile=/scratch/kocevski/670352/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin604.fits ra=219.74 dec=37.1752 rad=12.0 tmin=395884801.0 tmax=396144001.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.30
user 3.07
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670352/ft2_4FGL_J1438.9+3710_daily_bin604.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/670352/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin604.fits evtable="EVENTS" outfile="/scratch/kocevski/670352/ft1_filtered_4FGL_J1438.9+3710_daily_bin604.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/670352/ft1_filtered_4FGL_J1438.9+3710_daily_bin604.fits" evtable="EVENTS" scfile=/scratch/kocevski/670352/ft2_4FGL_J1438.9+3710_daily_bin604.fits sctable="SC_DATA" outfile=/scratch/kocevski/670352/ltcube_395884801_396144001_4FGL_J1438.9+3710_daily_bin604.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/670352/ft2_4FGL_J1438.9+3710_daily_bin604.fits
.....................!
real 11.67
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670352/ft1_filtered_4FGL_J1438.9+3710_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/670352/ft2_4FGL_J1438.9+3710_daily_bin604.fits sctable="SC_DATA" expcube=/scratch/kocevski/670352/ltcube_395884801_396144001_4FGL_J1438.9+3710_daily_bin604.fits outfile=/scratch/kocevski/670352/expmap_395884801_396144001_4FGL_J1438.9+3710_daily_bin604.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/670352/ltcube_395884801_396144001_4FGL_J1438.9+3710_daily_bin604.fits
.....................!
real 189.76
user 184.86
sys 4.52

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/670352/ft1_filtered_4FGL_J1438.9+3710_daily_bin604.fits scfile=/scratch/kocevski/670352/ft2_4FGL_J1438.9+3710_daily_bin604.fits outfile=/scratch/kocevski/670352/cmap_395884801_396144001_4FGL_J1438.9+3710_daily_bin604.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670352/ft1_filtered_4FGL_J1438.9+3710_daily_bin604.fits scfile=/scratch/kocevski/670352/ft2_4FGL_J1438.9+3710_daily_bin604.fits outfile=/scratch/kocevski/670352/cmap_HighResolution_395884801_396144001_4FGL_J1438.9+3710_daily_bin604.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/670352/ft1_filtered_4FGL_J1438.9+3710_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/670352/ft2_4FGL_J1438.9+3710_daily_bin604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/670352/Model_4FGL_J1438.9+3710_daily_bin604.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/670352/ft1_filtered_4FGL_J1438.9+3710_daily_bin604.fits.....................!
real 50.56
user 49.32
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.4733       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.014       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8978       1.0000         .10000E-03   10000.    
    10 'norm      '    .11760E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4066       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12010       1.0000         .10000E-03   10000.    
    20 'norm      '    3.5415       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.883       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.813       1.0000         .10000E-03   10000.    
    25 'norm      '    7.9681       1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.880       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.2560       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67059       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=   6261.564     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3338 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.068        .17712E-05** at limit **
   2  Prefactor     .10000E-03    3.8220        .79878E-07** at limit **
   3  norm          .10000E-03    5.2694        .24397E-06** at limit **
   4  Prefactor     .10000E-03    8.7090        .68309E-06** at limit **
   5  Prefactor     .10000E-03    20.568        .72192E-06** at limit **
   6  norm          3.4733        4.1247       -.25994E-06   -.23705E-03
   7  Prefactor     21.010        12.667       -.77677E-07   -.30770E-03
   8  Prefactor     .10000E-03    6.2934       -.38542E-06** at limit **
   9  Prefactor     1.8999        3.9251        .30080E-05    .67209E-04
  10  norm          .10000E-03    17.428        .39861E-06** at limit **
  11  Prefactor     .10000E-03    11.367       -.57937E-06** at limit **
  12  norm          .10000E-03    4.0771        .27809E-07** at limit **
  13  Prefactor     .10000E-03    10.597       -.24252E-06** at limit **
  14  Prefactor     .10000E-03    26.976       -.60699E-06** at limit **
  15  norm          .10000E-03    2.3106        .13613E-07** at limit **
  16  Prefactor     6.4071        9.8845        .46843E-06    .49947E-05
  17  Prefactor     .10000E-03    2.9467        .87438E-08** at limit **
  18  Prefactor     .10000E-03    2.3263        .57200E-08** at limit **
  19  norm          .12202        .75282       -.31901E-07   -.31316E-03
  20  norm          3.5391        3.5940       -.11690E-06    .66151E-04
  21  Prefactor     .10001E-03    17.365        .86242E-05** at limit **
  22  Prefactor     .10000E-03    26.744       -.63369E-06** at limit **
  23  Prefactor     10.880        20.872       -.27065E-07   -.29659E-04
  24  Prefactor     29.806        15.473       -.44406E-06   -.11990E-03
  25  norm          7.9671        2.5798        .14524E-07   -.50698E-03
  26  Prefactor     23.889        20.925        .54361E-07    .34417E-04
  27  Prefactor     .10000E-03    6.9617        .22457E-07** at limit **
  28  norm          .10000E-03    4.0958       -.10908E-06** at limit **
  29  Normalizat    1.2558        .17032       -.16219E-05   -.27916E-03
  30  Prefactor     .67082        .17635        .80729E-06   -.16966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.47329
  Prefactor  = 21.0097
  Prefactor  = 0.0001
  Prefactor  = 1.89992
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.40712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.122016
  norm       = 3.5391
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 10.8802
  Prefactor  = 29.8057
  norm       = 7.96715
  Prefactor  = 23.8886
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.25578
  Prefactor  = 0.670822
 **********
 **   18 **HESSE 
 **********

 FCN=   6261.564     FROM HESSE     STATUS=OK           580 CALLS     3918 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9014        .15102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.2826        .17741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.7505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4733        4.1197        .16571E-03   -1.5335    
   7  Prefactor     21.010        12.679        .87375E-04   -1.4791    
   8  Prefactor     .10000E-03    6.2995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8999        4.5402        .11843E-02   -1.5432    
  10  norm          .10000E-03    17.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.2371        .31193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3112        .11747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4071        9.8791        .79286E-03   -1.5202    
  17  Prefactor     .10000E-03    2.9531        .13254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3335        .11787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .12202        3.1780        .12939E-02   -1.5638    
  20  norm          3.5391        3.5940        .14123E-03   -1.5332    
  21  Prefactor     .10001E-03    43.799        .34774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.880        20.819        .12145E-03   -1.5048    
  24  Prefactor     29.806        15.505        .73379E-04   -1.4616    
  25  norm          7.9671        2.6339        .51786E-04   -1.5143    
  26  Prefactor     23.889        21.349        .81971E-04   -1.4730    
  27  Prefactor     .10000E-03    6.9690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.0989        .15640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2558        .20108        .21330E-03   -.84896    
  30  Prefactor     .67082        .20645        .30603E-03   -1.0468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55476e-10
Minuit parameter uncertainties:
  1  0.000484979
  2  2.14362e-07
  3  1.94677e-05
  4  7.07163e-05
  5  8.50274e-05
  6  4.12008
  7  12.6802
  8  3.17769e-05
  9  4.54097
  10  1.61737e-05
  11  6.4301e-05
  12  9.60198e-06
  13  2.92942e-05
  14  4.87881e-05
  15  9.32412e-07
  16  9.88156
  17  6.53045e-08
  18  6.30683e-07
  19  1.24498
  20  3.5942
  21  0.00116336
  22  0.000126161
  23  20.8326
  24  15.5069
  25  2.63398
  26  21.3555
  27  5.36325e-06
  28  7.35577e-06
  29  0.201202
  30  0.206681
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  9.602e-06  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:  6.708e-01  2.067e-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.256e+00  2.012e-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: 4.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670352/likelihoodResults_395884801_396144001_4FGL_J1438.9+3710_daily_bin604.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): 102
logL (Free Index) = 6261.56538757
delta logL = -0.00112568318127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6261.56423997
delta logL = 2.19106450459e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19123E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2173       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67135       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=   6261.562     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      319 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83982E-01    597.61        .11755E-02    .98548E-03
   2  alpha         3.8201        4.2375        .19048        .11612E-04
   3  Normalizat    1.2523        .92929E-01    .21356E-03    .23057E-03
   4  Prefactor     .67291        .84676E-01    .30560E-03   -.19665E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0839819
  alpha      = 3.82009
  Normalizat = 1.25229
  Prefactor  = 0.672906
 **********
 **   18 **HESSE 
 **********

 FCN=   6261.562     FROM HESSE     STATUS=OK            27 CALLS      346 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83982E-01    5.3265        .47021E-04   -1.5650    
   2  alpha         3.8201        3.9183        .76191E-02    .55629    
   3  Normalizat    1.2523        .19425        .42712E-04   -.85002    
   4  Prefactor     .67291        .20627        .12224E-04   -1.0460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64993e-09
Minuit parameter uncertainties:
  1  1.33698
  2  6.46713
  3  0.194364
  4  0.2065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670352': 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) = 6261.56156096
delta logL = 0.00270092185838

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  8.398e-02  1.337e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  3.820e+00  6.467e+00  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:  6.729e-01  2.065e-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.252e+00  1.944e-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/670352/cmap_HighResolution_395884801_396144001_4FGL_J1438.9+3710_daily_bin604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-05', job_status='DONE', photon_flux_upper_limit='4.75e-08', time_completed='2021-09-10 03:39:57.648233', job_id='670352', GAL2='0.67', fit_tolerance='1e-08', EG2='1.25', EG='1.26', time_epoch_completed='1631270397.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.70e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='604' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:39:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 670352: <4FGL_J1438.9+3710_daily_bin604> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin604> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 03:26:17 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:26:19 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:26:19 2021
Terminated at Fri Sep 10 03:39:59 2021
Results reported at Fri Sep 10 03:39:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin604 219.74 37.1752 395884801 396144001 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 :                                   797.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            822 sec.

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

