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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin169
RA = 219.74, Dec = 37.1752
tmin = 283132801, tmax = 283392001
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='666009', job_status='RUN', time_executed='2021-09-10 03:11:39.868175', time_epoch_executed='1631268699.87' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666009

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666009/ft1_4FGL_J1438.9+3710_daily_bin169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666009/ft2_4FGL_J1438.9+3710_daily_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666009/ft1_4FGL_J1438.9+3710_daily_bin169.fits outfile=/scratch/kocevski/666009/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin169.fits ra=219.74 dec=37.1752 rad=12.0 tmin=283132801.0 tmax=283392001.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.80
user 3.53
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/666009/ft2_4FGL_J1438.9+3710_daily_bin169.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/666009/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/666009/ft1_filtered_4FGL_J1438.9+3710_daily_bin169.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666009/ft1_filtered_4FGL_J1438.9+3710_daily_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/666009/ft2_4FGL_J1438.9+3710_daily_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/666009/ltcube_283132801_283392001_4FGL_J1438.9+3710_daily_bin169.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/666009/ft2_4FGL_J1438.9+3710_daily_bin169.fits
.....................!
real 12.24
user 11.64
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666009/ft1_filtered_4FGL_J1438.9+3710_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/666009/ft2_4FGL_J1438.9+3710_daily_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/666009/ltcube_283132801_283392001_4FGL_J1438.9+3710_daily_bin169.fits outfile=/scratch/kocevski/666009/expmap_283132801_283392001_4FGL_J1438.9+3710_daily_bin169.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/666009/ltcube_283132801_283392001_4FGL_J1438.9+3710_daily_bin169.fits
.....................!
real 191.92
user 186.08
sys 5.43

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/666009/ft1_filtered_4FGL_J1438.9+3710_daily_bin169.fits scfile=/scratch/kocevski/666009/ft2_4FGL_J1438.9+3710_daily_bin169.fits outfile=/scratch/kocevski/666009/cmap_283132801_283392001_4FGL_J1438.9+3710_daily_bin169.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.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.053       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.700       1.0000         .10000E-03   10000.    
     6 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .70725       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.131       1.0000         .10000E-03   10000.    
    12 'norm      '    6.1859       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.486       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10640E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3385       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.196       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12565E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.573       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    25.420       1.0000         .10000E-03   10000.    
    28 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3081       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82896       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=   6477.906     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3927 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.498        .22240E-04** at limit **
   2  Prefactor     .10000E-03    9.6469       -.40528E-06** at limit **
   3  norm          .10000E-03    5.5997        .22442E-05** at limit **
   4  Prefactor     15.048        18.053       -.13140E-06   -.18964E-04
   5  Prefactor     37.694        24.972       -.20589E-05    .51734E-05
   6  norm          .10000E-03    2.5117       -.22813E-06** at limit **
   7  Prefactor     .10000E-03    7.1090        .47402E-05** at limit **
   8  Prefactor     .10000E-03    8.0725       -.28774E-05** at limit **
   9  Prefactor     .68231        3.2010       -.75721E-06   -.91909E-04
  10  norm          .10000E-03    6.2697       -.17850E-05** at limit **
  11  Prefactor     13.126        20.411        .79785E-06    .77815E-05
  12  norm          6.1873        7.4605        .98519E-06   -.65916E-04
  13  Prefactor     22.939        41.487       -.24444E-04    .73350E-05
  14  Prefactor     .10000E-03    26.182        .10939E-04** at limit **
  15  norm          .10000E-03    3.6013       -.66221E-09** at limit **
  16  Prefactor     .10000E-03    9.8974        .69071E-06** at limit **
  17  Prefactor     12.475        9.6441        .18121E-05    .22457E-03
  18  Prefactor     .10000E-03    2.6436        .99754E-08** at limit **
  19  norm          .10000E-03    .74145       -.34374E-06** at limit **
  20  norm          3.3373        4.0190       -.16815E-06   -.19537E-03
  21  Prefactor     .10000E-03    6.1667       -.22214E-05** at limit **
  22  Prefactor     .10000E-03    77.731       -.20348E-04** at limit **
  23  Prefactor     24.190        22.784       -.12273E-05    .14522E-03
  24  Prefactor     .10000E-03    27.109       -.37524E-05** at limit **
  25  norm          14.572        2.4498       -.51518E-07    .20930E-03
  26  Prefactor     .10000E-03    43.705        .51195E-06** at limit **
  27  Prefactor     25.439        21.651        .26716E-05    .28689E-03
  28  norm          .10000E-03    27.964       -.11196E-04** at limit **
  29  Normalizat    1.3083        .19702        .90515E-06    .34126E-03
  30  Prefactor     .82894        .19806        .71032E-06    .25446E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.048
  Prefactor  = 37.6937
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.682307
  norm       = 0.0001
  Prefactor  = 13.1258
  norm       = 6.18733
  Prefactor  = 22.9386
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4748
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.33728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.1896
  Prefactor  = 0.0001
  norm       = 14.5724
  Prefactor  = 0.0001
  Prefactor  = 25.4394
  norm       = 0.000100001
  Normalizat = 1.30827
  Prefactor  = 0.828942
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.906     FROM HESSE     STATUS=OK           584 CALLS     4511 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.8703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.6056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.048        18.032        .10323E-03   -1.4932    
   5  Prefactor     37.694        25.134        .65276E-04   -1.4479    
   6  norm          .10000E-03    5.1109        .24412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68231        13.819        .25206E-02   -1.5543    
  10  norm          .10000E-03    6.2727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.126        20.419        .11054E-03   -1.4983    
  12  norm          6.1873        7.4433        .16141E-03   -1.5210    
  13  Prefactor     22.939        41.342        .83595E-04   -1.4750    
  14  Prefactor     .10000E-03    26.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.6079        .14916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.9299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.475        9.3365        .11336E-03   -1.5001    
  18  Prefactor     .10000E-03    2.6516        .12779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1841        .12931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3373        3.9975        .16788E-03   -1.5343    
  21  Prefactor     .10000E-03    6.1808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    77.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.190        22.690        .81435E-04   -1.4724    
  24  Prefactor     .10000E-03    27.632        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.572        2.4372        .49269E-04   -1.4944    
  26  Prefactor     .10000E-03    44.638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     25.439        21.637        .79452E-04   -1.4699    
  28  norm          .10000E-03    28.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3083        .23798        .24441E-03   -.83320    
  30  Prefactor     .82894        .23727        .31521E-03   -.98670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26675e-08
Minuit parameter uncertainties:
  1  3.95497e-05
  2  1.69907e-05
  3  2.59907e-06
  4  18.0383
  5  25.1412
  6  7.27327e-05
  7  1.11003e-05
  8  1.88092e-05
  9  6.14234
  10  6.4422e-06
  11  20.4303
  12  7.44438
  13  41.3936
  14  3.2743e-05
  15  4.51878e-06
  16  3.87265e-05
  17  9.33761
  18  8.39821e-07
  19  3.4898e-05
  20  3.99785
  21  1.86659e-05
  22  5.76471e-05
  23  22.6978
  24  0.000173808
  25  2.43721
  26  4.8611e-05
  27  21.644
  28  0.000299593
  29  0.238183
  30  0.237562
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  6.187e+00  7.444e+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:  8.289e-01  2.376e-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.308e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 219.740 37.175
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/666009/likelihoodResults_283132801_283392001_4FGL_J1438.9+3710_daily_bin169.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) = 6477.90292515
delta logL = 0.00353872027335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6477.90275709
delta logL = 0.00370677601677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0992       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3892       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83090       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=   6477.903     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      267 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0998        7.4088        .16257E-03   -.15596E-02
   2  alpha         2.3889        .91792        .23428E-01   -.14094E-03
   3  Normalizat    1.3056        .22472        .24463E-03    .21232E-03
   4  Prefactor     .83082        .23502        .31489E-03    .20272E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.09983
  alpha      = 2.38893
  Normalizat = 1.30556
  Prefactor  = 0.830818
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.903     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0998        7.3014        .65027E-05   -1.5214    
   2  alpha         2.3889        .90474        .93710E-03   -.44442E-01
   3  Normalizat    1.3056        .22488        .48926E-04   -.83400    
   4  Prefactor     .83082        .23513        .12596E-04   -.98602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13541e-09
Minuit parameter uncertainties:
  1  7.30248
  2  0.925797
  3  0.225049
  4  0.23542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666009': 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) = 6477.90275699
delta logL = 0.0037068814645

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  6.100e+00  7.302e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.389e+00  9.258e-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.308e-01  2.354e-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.306e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.94
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/666009/cmap_HighResolution_283132801_283392001_4FGL_J1438.9+3710_daily_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-10 03:26:03.791964', job_id='666009', GAL2='0.83', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1631269563.79', return_code2='0', ts='0.94', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.71e-03', ts2='0.94', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='169' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:26:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 666009: <4FGL_J1438.9+3710_daily_bin169> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin169 219.74 37.1752 283132801 283392001 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 :                                   851.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            882 sec.

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

