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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin93
RA = 219.74, Dec = 37.1752
tmin = 263433601, tmax = 263692801
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='665900', job_status='RUN', time_executed='2021-09-10 03:11:32.471002', time_epoch_executed='1631268692.47' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665900

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665900/ft1_4FGL_J1438.9+3710_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665900/ft2_4FGL_J1438.9+3710_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665900/ft1_4FGL_J1438.9+3710_daily_bin93.fits outfile=/scratch/kocevski/665900/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin93.fits ra=219.74 dec=37.1752 rad=12.0 tmin=263433601.0 tmax=263692801.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.44
user 3.21
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665900/ft1_filtered_4FGL_J1438.9+3710_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/665900/ft2_4FGL_J1438.9+3710_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/665900/ltcube_263433601_263692801_4FGL_J1438.9+3710_daily_bin93.fits outfile=/scratch/kocevski/665900/expmap_263433601_263692801_4FGL_J1438.9+3710_daily_bin93.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/665900/ltcube_263433601_263692801_4FGL_J1438.9+3710_daily_bin93.fits
.....................!
real 189.30
user 185.15
sys 3.77

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/665900/ft1_filtered_4FGL_J1438.9+3710_daily_bin93.fits scfile=/scratch/kocevski/665900/ft2_4FGL_J1438.9+3710_daily_bin93.fits outfile=/scratch/kocevski/665900/cmap_263433601_263692801_4FGL_J1438.9+3710_daily_bin93.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665900/ft1_filtered_4FGL_J1438.9+3710_daily_bin93.fits scfile=/scratch/kocevski/665900/ft2_4FGL_J1438.9+3710_daily_bin93.fits outfile=/scratch/kocevski/665900/cmap_HighResolution_263433601_263692801_4FGL_J1438.9+3710_daily_bin93.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.051       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .34332E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    23.425       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11308E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.327       1.0000         .10000E-03   10000.    
     6 'norm      '    .45622       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10631E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.231       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5788       1.0000         .10000E-03   10000.    
    12 'norm      '    18.628       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.028       1.0000         .10000E-03   10000.    
    15 'norm      '    9.2607       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.183       1.0000         .10000E-03   10000.    
    19 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7554       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.773       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.454       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.4477       1.0000         .10000E-03   10000.    
    25 'norm      '    15.312       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .51622       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3287       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=   5806.044     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3981 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     89.917        82.516       -.12586E-03    .21755E-04
   2  Prefactor     .10000E-03    4.3317       -.16670E-05** at limit **
   3  norm          23.431        15.314        .23957E-05    .11953E-03
   4  Prefactor     .10000E-03    37.831       -.45570E-05** at limit **
   5  Prefactor     16.324        21.962       -.49442E-05    .47109E-04
   6  norm          .46423        2.4831       -.20511E-05    .28604E-03
   7  Prefactor     .10000E-03    9.5387        .16933E-05** at limit **
   8  Prefactor     15.253        18.195       -.45501E-05    .21884E-03
   9  Prefactor     .10000E-03    1.5994       -.25612E-06** at limit **
  10  norm          .10000E-03    5.4136       -.28068E-06** at limit **
  11  Prefactor     3.5824        52.696       -.77628E-05   -.33585E-04
  12  norm          18.632        8.5521       -.28624E-06    .28448E-03
  13  Prefactor     .10000E-03    75.260        .17944E-04** at limit **
  14  Prefactor     21.026        24.471       -.30822E-05    .31907E-04
  15  norm          9.2597        9.2281       -.88548E-06    .12225E-04
  16  Prefactor     .10000E-03    7.8571        .19084E-05** at limit **
  17  Prefactor     .10000E-03    8.3915       -.38637E-05** at limit **
  18  Prefactor     10.182        7.4147       -.10621E-05   -.30743E-04
  19  norm          .10000E-03    .36760        .11980E-06** at limit **
  20  norm          1.7544        2.8162       -.12387E-05   -.55254E-03
  21  Prefactor     .10000E-03    11.186        .51015E-06** at limit **
  22  Prefactor     13.726        45.361       -.83468E-04    .71722E-05
  23  Prefactor     25.425        27.662       -.20701E-04   -.32075E-04
  24  Prefactor     7.4653        15.835        .13230E-04    .69828E-04
  25  norm          15.311        2.2860       -.21659E-06    .24586E-03
  26  Prefactor     .10000E-03    11.325       -.37637E-06** at limit **
  27  Prefactor     .10000E-03    5.0243        .26673E-06** at limit **
  28  norm          .10000E-03    4.5708       -.33233E-07** at limit **
  29  Normalizat    .51581        .19777        .15972E-04    .43283E-03
  30  Prefactor     1.3293        .20117        .23094E-05    .53116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 89.9173
  Prefactor  = 0.000100003
  norm       = 23.4309
  Prefactor  = 0.0001
  Prefactor  = 16.3237
  norm       = 0.464227
  Prefactor  = 0.0001
  Prefactor  = 15.2534
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.58241
  norm       = 18.6315
  Prefactor  = 0.000100001
  Prefactor  = 21.0256
  norm       = 9.25965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1821
  norm       = 0.0001
  norm       = 1.7544
  Prefactor  = 0.0001
  Prefactor  = 13.7263
  Prefactor  = 25.4247
  Prefactor  = 7.46533
  norm       = 15.3114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.515809
  Prefactor  = 1.32925
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.044     FROM HESSE     STATUS=OK           592 CALLS     4573 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     89.917        82.554        .21172E-03   -1.3809    
   2  Prefactor     .10000E-03    11.899        .30514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          23.431        15.315        .82762E-04   -1.4739    
   4  Prefactor     .10000E-03    39.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.324        22.055        .99120E-04   -1.4900    
   6  norm          .46423        8.1105        .22320E-02   -1.5572    
   7  Prefactor     .10000E-03    9.5496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.253        18.115        .10263E-03   -1.4927    
   9  Prefactor     .10000E-03    1.6218        .94008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.4152        .17313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5824        52.327        .21362E-03   -1.5329    
  12  norm          18.632        8.5483        .92798E-04   -1.4844    
  13  Prefactor     .10000E-03    75.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.026        24.468        .87346E-04   -1.4791    
  15  norm          9.2597        9.2257        .13170E-03   -1.5099    
  16  Prefactor     .10000E-03    7.8796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.182        7.4094        .12557E-03   -1.5070    
  19  norm          .10000E-03    .36992        .45084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7544        2.7725        .15224E-03   -1.5443    
  21  Prefactor     .10000E-03    11.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.726        45.428        .10793E-03   -1.4967    
  23  Prefactor     25.425        27.456        .79399E-04   -1.4699    
  24  Prefactor     7.4653        15.624        .14696E-03   -1.5161    
  25  norm          15.311        2.2813        .42507E-04   -1.4925    
  26  Prefactor     .10000E-03    11.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.0256        .16681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.5823        .15910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .51581        .22948        .31449E-03   -1.1169    
  30  Prefactor     1.3293        .23888        .23255E-03   -.82441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45378e-09
Minuit parameter uncertainties:
  1  82.6595
  2  0.000370828
  3  15.3173
  4  8.82316e-05
  5  22.0663
  6  3.88097
  7  6.4132e-05
  8  18.1211
  9  3.11013e-05
  10  3.24098e-06
  11  27.4113
  12  8.54891
  13  0.000517551
  14  24.4797
  15  9.22714
  16  5.14407e-05
  17  4.47677e-05
  18  7.41012
  19  6.79089e-06
  20  2.77273
  21  0.000122871
  22  45.5424
  23  27.47
  24  15.6328
  25  2.28131
  26  2.64381e-05
  27  5.85386e-06
  28  2.97996e-06
  29  0.229904
  30  0.239076
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.863e+01  8.549e+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.329e+00  2.391e-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:  5.158e-01  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.63
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.44e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.33e-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) = 5805.4906783
delta logL = 0.553045927491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5805.46545389
delta logL = 0.578270334123

Fit tolerance = 1e-08

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

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

 FCN=   5805.465     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      269 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.280        100.08        .26493E-02    .84583E-04
   2  alpha         2.8113        3.9056        .22449        .47065E-04
   3  Normalizat    .46979        .10835        .74232E-01    .39671E-04
   4  Prefactor     1.3638        .10563        .52026E-01    .56349E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2804
  alpha      = 2.8113
  Normalizat = 0.469793
  Prefactor  = 1.36376
 **********
 **   18 **HESSE 
 **********

 FCN=   5805.465     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.280        8.6891        .10597E-03   -1.4952    
   2  alpha         2.8113        .50749        .94072E-02    .12485    
   3  Normalizat    .46979        .21057        .32869E-03   -1.1384    
   4  Prefactor     1.3638        .23635        .23000E-03   -.81430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46532e-12
Minuit parameter uncertainties:
  1  8.68986
  2  0.511094
  3  0.210929
  4  0.236542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665900': 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) = 5805.46545182
delta logL = 0.578272409277

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.428e+01  8.690e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.811e+00  5.111e-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.364e+00  2.365e-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:  4.698e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.87
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.81 +/- 0.51
Photon Flux (Free Index): 1.15e-07 +/- 5.28e-08
Energy Flux (Free Index): 2.66e-05 +/- 1.14e-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/665900/cmap_HighResolution_263433601_263692801_4FGL_J1438.9+3710_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.44e-08', energy_flux2='2.66e-05', photon_flux_error='3.87e-08', dlogl='5.78e-01', energy_flux='2.89e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-10 03:23:39.695968', photon_index_error2='0.51', photon_index2='2.81', ts='9.63', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.52', time_epoch_completed='1631269419.7', return_code='0', job_id='665900', GAL2='1.36', EG2='0.47', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='5.28e-08', ts2='10.87', photon_index='2.31' WHERE bin_id='93' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:23:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 665900: <4FGL_J1438.9+3710_daily_bin93> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin93> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:11:14 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:11:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:11:16 2021
Terminated at Fri Sep 10 03:23:40 2021
Results reported at Fri Sep 10 03:23:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin93 219.74 37.1752 263433601 263692801 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 :                                   723.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            746 sec.

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

