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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin405
RA = 219.74, Dec = 37.1752
tmin = 344304001, tmax = 344563201
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='668737', job_status='RUN', time_executed='2021-09-10 03:21:23.618453', time_epoch_executed='1631269283.62' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668737

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668737/ft1_4FGL_J1438.9+3710_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668737/ft2_4FGL_J1438.9+3710_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668737/ft1_4FGL_J1438.9+3710_daily_bin405.fits outfile=/scratch/kocevski/668737/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin405.fits ra=219.74 dec=37.1752 rad=12.0 tmin=344304001.0 tmax=344563201.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.40
user 3.16
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/668737/ft2_4FGL_J1438.9+3710_daily_bin405.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/668737/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin405.fits evtable="EVENTS" outfile="/scratch/kocevski/668737/ft1_filtered_4FGL_J1438.9+3710_daily_bin405.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.50
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668737/ft1_filtered_4FGL_J1438.9+3710_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/668737/ft2_4FGL_J1438.9+3710_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/668737/ltcube_344304001_344563201_4FGL_J1438.9+3710_daily_bin405.fits outfile=/scratch/kocevski/668737/expmap_344304001_344563201_4FGL_J1438.9+3710_daily_bin405.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/668737/ltcube_344304001_344563201_4FGL_J1438.9+3710_daily_bin405.fits
.....................!
real 190.84
user 185.63
sys 4.81

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/668737/ft1_filtered_4FGL_J1438.9+3710_daily_bin405.fits scfile=/scratch/kocevski/668737/ft2_4FGL_J1438.9+3710_daily_bin405.fits outfile=/scratch/kocevski/668737/cmap_344304001_344563201_4FGL_J1438.9+3710_daily_bin405.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=219.74 yref=37.1752 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668737/ft1_filtered_4FGL_J1438.9+3710_daily_bin405.fits scfile=/scratch/kocevski/668737/ft2_4FGL_J1438.9+3710_daily_bin405.fits outfile=/scratch/kocevski/668737/cmap_HighResolution_344304001_344563201_4FGL_J1438.9+3710_daily_bin405.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5904       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.507       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.3627       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2517       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.007       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.508       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2246       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5880       1.0000         .10000E-03   10000.    
    19 'norm      '    .63919       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4345       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2908       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.357       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10722E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8033       1.0000         .10000E-03   10000.    
    25 'norm      '    19.757       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    14.492       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2849       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88681       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=   7285.330     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3937 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.613        .73880E-06** at limit **
   2  Prefactor     5.5906        6.0066       -.26159E-07    .11132E-04
   3  norm          .10000E-03    11.850        .83311E-07** at limit **
   4  Prefactor     .10000E-03    6.1738       -.11859E-08** at limit **
   5  Prefactor     .10000E-03    20.415       -.12657E-08** at limit **
   6  norm          10.507        4.6564       -.37708E-07    .35750E-04
   7  Prefactor     .10000E-03    7.2062       -.96057E-09** at limit **
   8  Prefactor     .10000E-03    14.387        .20185E-06** at limit **
   9  Prefactor     .10000E-03    1.1574        .24341E-07** at limit **
  10  norm          7.3616        13.272       -.31895E-06    .26502E-04
  11  Prefactor     .10000E-03    11.487        .91349E-08** at limit **
  12  norm          1.2567        7.6718        .11582E-05   -.85117E-05
  13  Prefactor     14.001        26.003       -.30674E-06    .22370E-04
  14  Prefactor     12.509        33.302       -.18551E-06    .96390E-05
  15  norm          .10000E-03    2.8157        .16749E-07** at limit **
  16  Prefactor     5.2272        11.507        .46530E-07    .37100E-04
  17  Prefactor     .10000E-03    5.0605        .17740E-07** at limit **
  18  Prefactor     2.5875        7.5085        .44119E-06   -.24828E-04
  19  norm          .63642        1.5867       -.32380E-06   -.20064E-03
  20  norm          1.4422        6.1816       -.16996E-05   -.23890E-03
  21  Prefactor     2.2802        13.696        .29901E-05   -.11280E-03
  22  Prefactor     31.385        71.675        .15680E-05   -.55263E-05
  23  Prefactor     .10000E-03    63.384        .92845E-06** at limit **
  24  Prefactor     3.7801        15.483        .41420E-06   -.73698E-04
  25  norm          19.757        2.4510        .81270E-08    .57378E-04
  26  Prefactor     .10000E-03    11.505        .24532E-07** at limit **
  27  Prefactor     .10000E-03    17.089       -.49732E-08** at limit **
  28  norm          14.491        13.058        .60455E-08    .40347E-05
  29  Normalizat    1.2850        .18044        .97799E-07    .12775E-05
  30  Prefactor     .88676        .18599        .99561E-08    .59909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 5.59064
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.36159
  Prefactor  = 0.0001
  norm       = 1.25673
  Prefactor  = 14.0008
  Prefactor  = 12.5085
  norm       = 0.0001
  Prefactor  = 5.22724
  Prefactor  = 0.0001
  Prefactor  = 2.58754
  norm       = 0.636417
  norm       = 1.44223
  Prefactor  = 2.28024
  Prefactor  = 31.385
  Prefactor  = 0.000100002
  Prefactor  = 3.78005
  norm       = 19.7574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.4911
  Normalizat = 1.28496
  Prefactor  = 0.88676
 **********
 **   18 **HESSE 
 **********

 FCN=   7285.330     FROM HESSE     STATUS=OK           590 CALLS     4527 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5906        6.0046        .16991E-03   -1.5235    
   3  norm          .10000E-03    11.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.507        4.6587        .11706E-03   -1.5060    
   7  Prefactor     .10000E-03    7.2268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1644        .89640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.3616        13.232        .73907E-03   -1.5165    
  11  Prefactor     .10000E-03    11.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2567        7.6873        .19979E-02   -1.5484    
  13  Prefactor     14.001        26.001        .10702E-03   -1.4959    
  14  Prefactor     12.509        33.350        .11326E-03   -1.5000    
  15  norm          .10000E-03    2.8168        .13986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2272        11.473        .87930E-03   -1.5251    
  17  Prefactor     .10000E-03    5.1127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5875        7.5041        .12683E-02   -1.5386    
  19  norm          .63642        1.5963        .15545E-03   -1.5548    
  20  norm          1.4422        6.1942        .29664E-03   -1.5468    
  21  Prefactor     2.2802        13.881        .27121E-03   -1.5406    
  22  Prefactor     31.385        71.434        .71553E-04   -1.4587    
  23  Prefactor     .10000E-03    63.763        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.7801        14.818        .10349E-02   -1.5319    
  25  norm          19.757        2.4480        .45415E-04   -1.4819    
  26  Prefactor     .10000E-03    11.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    17.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          14.491        13.032        .10521E-03   -1.4946    
  29  Normalizat    1.2850        .21434        .24170E-03   -.84016    
  30  Prefactor     .88676        .22208        .30820E-03   -.96605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09163e-09
Minuit parameter uncertainties:
  1  0.000396306
  2  6.00528
  3  2.65368e-05
  4  3.88547e-07
  5  2.44003e-05
  6  4.65885
  7  4.92953e-07
  8  6.58359e-05
  9  1.69913e-06
  10  13.237
  11  4.78081e-06
  12  6.21731
  13  26.0219
  14  33.3999
  15  6.97593e-07
  16  11.478
  17  2.4277e-05
  18  7.50682
  19  1.59639
  20  5.97863
  21  11.2555
  22  71.6295
  23  0.000621434
  24  14.8327
  25  2.44803
  26  4.60826e-06
  27  1.26339e-05
  28  13.0345
  29  0.214491
  30  0.222305
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.257e+00  6.217e+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.868e-01  2.223e-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.285e+00  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/668737/likelihoodResults_344304001_344563201_4FGL_J1438.9+3710_daily_bin405.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) = 7284.91312609
delta logL = 0.416965368522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7284.873312
delta logL = 0.456779458882

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7284.873     FROM MIGRAD    STATUS=FAILED       104 CALLS      290 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34631        20.584        .54620E-03    .79638E-02
   2  alpha         4.7313        4.8047        .68476E-01   -.61449E-05
   3  Normalizat    1.2303        .14159        .24612E-03   -.12887E-04
   4  Prefactor     .92616        .15017        .30231E-03   -.78221E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7284.873     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      379 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34631        20.584        .77912E-04    .79638E-02
   2  alpha         4.7313        4.8047        .78896E-02   -.61449E-05
   3  Normalizat    1.2303        .14159        .12716E-03   -.12887E-04
   4  Prefactor     .92616        .15017        .81028E-04   -.78221E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7284.873     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      410 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34632        21.353        .10924E-03   -.13259E-03
   2  alpha         4.7313        4.8421        .27391E-02   -.15357E-05
   3  Normalizat    1.2303        .20297        .98448E-05   -.15474E-04
   4  Prefactor     .92616        .21683        .12092E-04   -.88375E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.346321
  alpha      = 4.73129
  Normalizat = 1.23029
  Prefactor  = 0.926159
 **********
 **   18 **HESSE 
 **********

 FCN=   7284.873     FROM HESSE     STATUS=OK            23 CALLS      433 TOTAL
                     EDM=   .92E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34632        4.4428        .43696E-05   -1.5590    
   2  alpha         4.7313        3.9217        .10956E-03    1.1029    
   3  Normalizat    1.2303        .21270        .19690E-05   -.85672    
   4  Prefactor     .92616        .22616        .24185E-05   -.95233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19827e-13
Minuit parameter uncertainties:
  1  2.4807
  2  4.50691
  3  0.212852
  4  0.226394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668737': 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) = 7284.87330812
delta logL = 0.456783335174

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.463e-01  2.481e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  4.731e+00  4.507e+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:  9.262e-01  2.264e-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.230e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 219.740 37.175
Photon Index (Free Index): 4.73 +/- 4.51
Photon Flux (Free Index): 4.41e-08 +/- 4.97e-08
Energy Flux (Free Index): 6.17e-06 +/- 7.77e-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/668737/cmap_HighResolution_344304001_344563201_4FGL_J1438.9+3710_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-05', comment='SUCCESS', energy_flux2='6.17e-06', dlogl='4.57e-01', photon_flux2='4.41e-08', job_status='DONE', time_completed='2021-09-10 03:37:24.309265', photon_index_error2='4.51', photon_index2='4.73', ts='0.05', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='7.60e-08', energy_flux_error2='7.77e-06', EG='1.28', time_epoch_completed='1631270244.31', return_code='0', job_id='668737', GAL2='0.93', EG2='1.23', return_code2='0', photon_flux_error2='4.97e-08', ts2='1.04', photon_index='2.31' WHERE bin_id='405' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:37:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 668737: <4FGL_J1438.9+3710_daily_bin405> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin405> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:21:06 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:21:08 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:21:08 2021
Terminated at Fri Sep 10 03:37:25 2021
Results reported at Fri Sep 10 03:37:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin405 219.74 37.1752 344304001 344563201 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 :                                   954.53 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             344.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            979 sec.

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

