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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin189
RA = 219.74, Dec = 37.1752
tmin = 288316801, tmax = 288576001
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='667214', job_status='RUN', time_executed='2021-09-10 03:19:10.907122', time_epoch_executed='1631269150.91' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667214/ft1_4FGL_J1438.9+3710_daily_bin189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667214/ft2_4FGL_J1438.9+3710_daily_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667214/ft1_4FGL_J1438.9+3710_daily_bin189.fits outfile=/scratch/kocevski/667214/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin189.fits ra=219.74 dec=37.1752 rad=12.0 tmin=288316801.0 tmax=288576001.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.61
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/667214/ft1_filtered_4FGL_J1438.9+3710_daily_bin189.fits" evtable="EVENTS" scfile=/scratch/kocevski/667214/ft2_4FGL_J1438.9+3710_daily_bin189.fits sctable="SC_DATA" outfile=/scratch/kocevski/667214/ltcube_288316801_288576001_4FGL_J1438.9+3710_daily_bin189.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/667214/ft2_4FGL_J1438.9+3710_daily_bin189.fits
.....................!
real 11.67
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667214/ft1_filtered_4FGL_J1438.9+3710_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/667214/ft2_4FGL_J1438.9+3710_daily_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/667214/ltcube_288316801_288576001_4FGL_J1438.9+3710_daily_bin189.fits outfile=/scratch/kocevski/667214/expmap_288316801_288576001_4FGL_J1438.9+3710_daily_bin189.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/667214/ltcube_288316801_288576001_4FGL_J1438.9+3710_daily_bin189.fits
.....................!
real 191.40
user 185.33
sys 5.64

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/667214/ft1_filtered_4FGL_J1438.9+3710_daily_bin189.fits scfile=/scratch/kocevski/667214/ft2_4FGL_J1438.9+3710_daily_bin189.fits outfile=/scratch/kocevski/667214/cmap_288316801_288576001_4FGL_J1438.9+3710_daily_bin189.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.516       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6823       1.0000         .10000E-03   10000.    
     3 'norm      '    5.7684       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    74.872       1.0000         .10000E-03   10000.    
     6 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11170E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.3316       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.955       1.0000         .10000E-03   10000.    
    12 'norm      '    22.038       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.466       1.0000         .10000E-03   10000.    
    15 'norm      '    11.723       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11234E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0757       1.0000         .10000E-03   10000.    
    19 'norm      '    8.2472       1.0000         .10000E-03   10000.    
    20 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.380       1.0000         .10000E-03   10000.    
    22 'Prefactor '    98.559       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.4233       1.0000         .10000E-03   10000.    
    25 'norm      '    21.930       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.021       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .70607       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0803       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=   6613.565     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3912 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.587        96.042       -.44007E-05   -.89790E-04
   2  Prefactor     4.6849        5.1907       -.10944E-06    .32046E-03
   3  norm          5.7716        11.314        .45742E-07    .10810E-03
   4  Prefactor     .10000E-03    5.2935        .21562E-06** at limit **
   5  Prefactor     74.900        31.077       -.91409E-06   -.24860E-03
   6  norm          .10000E-03    1.4272       -.76070E-08** at limit **
   7  Prefactor     .10000E-03    5.4418       -.11135E-06** at limit **
   8  Prefactor     .10000E-03    6.3776       -.16337E-06** at limit **
   9  Prefactor     .10001E-03    3.5157       -.17255E-05** at limit **
  10  norm          7.3302        9.7741       -.10795E-06    .56215E-04
  11  Prefactor     10.972        29.386       -.10225E-05   -.47668E-04
  12  norm          22.049        9.3914        .82521E-07    .14126E-03
  13  Prefactor     .10000E-03    15.767        .45882E-06** at limit **
  14  Prefactor     47.491        45.227       -.16815E-05   -.46456E-04
  15  norm          11.724        9.0127       -.53205E-07    .14623E-04
  16  Prefactor     .10000E-03    33.352       -.50612E-06** at limit **
  17  Prefactor     .10000E-03    4.2552       -.41952E-08** at limit **
  18  Prefactor     4.0752        5.5881       -.55527E-07    .14616E-04
  19  norm          8.2492        2.5481       -.22465E-07    .12147E-03
  20  norm          .10000E-03    2.3277        .41574E-07** at limit **
  21  Prefactor     10.373        11.586        .37802E-06    .67795E-04
  22  Prefactor     98.551        84.971        .52747E-06    .34296E-04
  23  Prefactor     .10000E-03    19.073       -.11362E-06** at limit **
  24  Prefactor     6.4444        17.875       -.92617E-06   -.53784E-04
  25  norm          21.930        2.9116       -.11919E-07    .71292E-04
  26  Prefactor     10.022        10.188        .71844E-08   -.15772E-04
  27  Prefactor     .10000E-03    12.592        .89974E-08** at limit **
  28  norm          .10000E-03    10.221       -.37082E-06** at limit **
  29  Normalizat    .70495        .23137       -.28145E-05    .13538E-03
  30  Prefactor     1.0815        .21558        .32363E-05    .29245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.5875
  Prefactor  = 4.68486
  norm       = 5.77163
  Prefactor  = 0.0001
  Prefactor  = 74.9
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 7.33024
  Prefactor  = 10.9716
  norm       = 22.0485
  Prefactor  = 0.0001
  Prefactor  = 47.4911
  norm       = 11.724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.0752
  norm       = 8.2492
  norm       = 0.0001
  Prefactor  = 10.3734
  Prefactor  = 98.5506
  Prefactor  = 0.0001
  Prefactor  = 6.4444
  norm       = 21.9305
  Prefactor  = 10.0215
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.704952
  Prefactor  = 1.08152
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.587        98.758        .24981E-03   -1.4099    
   2  Prefactor     4.6849        5.2567        .92988E-03   -1.5275    
   3  norm          5.7716        11.385        .83614E-03   -1.5227    
   4  Prefactor     .10000E-03    5.2984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     74.900        31.617        .46403E-04   -1.3975    
   6  norm          .10000E-03    1.4363        .94856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    7.1898        .21944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.3302        9.7759        .74064E-03   -1.5166    
  11  Prefactor     10.972        29.510        .12104E-03   -1.5045    
  12  norm          22.049        9.3988        .85323E-04   -1.4769    
  13  Prefactor     .10000E-03    15.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     47.491        45.574        .58201E-04   -1.4329    
  15  norm          11.724        9.0123        .11700E-03   -1.5023    
  16  Prefactor     .10000E-03    33.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2685        .16375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0752        5.5790        .19971E-03   -1.5304    
  19  norm          8.2492        2.5463        .67116E-04   -1.5133    
  20  norm          .10000E-03    2.3613        .12073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.373        11.434        .12436E-03   -1.5064    
  22  Prefactor     98.551        85.014        .20246E-03   -1.3719    
  23  Prefactor     .10000E-03    19.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.4444        17.750        .15836E-03   -1.5200    
  25  norm          21.930        2.9109        .47050E-04   -1.4771    
  26  Prefactor     10.022        10.195        .63289E-03   -1.5075    
  27  Prefactor     .10000E-03    12.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    10.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .70495        .24577        .31058E-03   -1.0370    
  30  Prefactor     1.0815        .23429        .27277E-03   -.90059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48396e-09
Minuit parameter uncertainties:
  1  99.0097
  2  5.25721
  3  11.3894
  4  1.55298e-05
  5  31.6244
  6  2.40735e-07
  7  2.97812e-06
  8  5.60495e-06
  9  0.000635357
  10  9.77806
  11  29.5495
  12  9.39942
  13  5.7227e-05
  14  45.607
  15  9.01338
  16  4.1933e-05
  17  1.38089e-06
  18  5.57966
  19  2.54635
  20  8.19372e-07
  21  11.4367
  22  85.1196
  23  3.66443e-06
  24  17.7644
  25  2.91088
  26  10.1972
  27  7.75369e-06
  28  4.364e-05
  29  0.24616
  30  0.234513
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.205e+01  9.399e+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.082e+00  2.345e-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:  7.050e-01  2.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.80
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 9.99e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 3.42e-05 +/- 1.46e-05

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) = 6612.47882046
delta logL = 1.08572320794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6612.4779061
delta logL = 1.08663756258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.238       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0141       1.0000          .0000       5.0000    
     3 'Normalizat'    .62673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1397       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=   6612.478     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      302 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.237        9.5432        .10260E-03    .24307E-02
   2  alpha         3.0142        .54133        .93636E-02    .27440E-03
   3  Normalizat    .62687        .22289        .32748E-03   -.10300E-03
   4  Prefactor     1.1396        .23405        .26655E-03   -.29446E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.2372
  alpha      = 3.01419
  Normalizat = 0.626871
  Prefactor  = 1.13958
 **********
 **   18 **HESSE 
 **********

 FCN=   6612.478     FROM HESSE     STATUS=OK            23 CALLS      325 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.237        8.9698        .20520E-04   -1.4927    
   2  alpha         3.0142        .50885        .37454E-03    .20716    
   3  Normalizat    .62687        .22275        .13099E-04   -1.0685    
   4  Prefactor     1.1396        .23391        .53310E-04   -.88212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51068e-09
Minuit parameter uncertainties:
  1  8.97064
  2  0.51259
  3  0.223068
  4  0.234121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667214': 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) = 6612.47790582
delta logL = 1.08663784234

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.524e+01  8.971e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  3.014e+00  5.126e-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.140e+00  2.341e-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:  6.269e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.15
Ra Dec: 219.740 37.175
Photon Index (Free Index): 3.01 +/- 0.51
Photon Flux (Free Index): 1.59e-07 +/- 6.73e-08
Energy Flux (Free Index): 3.31e-05 +/- 1.22e-05

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/667214/cmap_HighResolution_288316801_288576001_4FGL_J1438.9+3710_daily_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.99e-08', energy_flux2='3.31e-05', photon_flux_error='4.26e-08', dlogl='1.09e+00', energy_flux='3.42e-05', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-09-10 03:31:45.202139', photon_index_error2='0.51', photon_index2='3.01', ts='12.80', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.70', time_epoch_completed='1631269905.2', return_code='0', job_id='667214', GAL2='1.14', EG2='0.63', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='6.73e-08', ts2='15.15', photon_index='2.31' WHERE bin_id='189' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:31:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 667214: <4FGL_J1438.9+3710_daily_bin189> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin189 219.74 37.1752 288316801 288576001 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 :                                   753.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

