/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 115 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 = 7384
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1438.9+3710_daily_bin898
RA = 219.74, Dec = 37.1752
tmin = 472089601, tmax = 472348801
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='671853', job_status='RUN', time_executed='2021-09-10 03:33:46.139919', time_epoch_executed='1631270026.14' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671853

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671853/ft1_4FGL_J1438.9+3710_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671853/ft2_4FGL_J1438.9+3710_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671853/ft1_4FGL_J1438.9+3710_daily_bin898.fits outfile=/scratch/kocevski/671853/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin898.fits ra=219.74 dec=37.1752 rad=12.0 tmin=472089601.0 tmax=472348801.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.49
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671853/ft1_filtered_4FGL_J1438.9+3710_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/671853/ft2_4FGL_J1438.9+3710_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/671853/ltcube_472089601_472348801_4FGL_J1438.9+3710_daily_bin898.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/671853/ft2_4FGL_J1438.9+3710_daily_bin898.fits
.....................!
real 11.91
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671853/ft1_filtered_4FGL_J1438.9+3710_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/671853/ft2_4FGL_J1438.9+3710_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/671853/ltcube_472089601_472348801_4FGL_J1438.9+3710_daily_bin898.fits outfile=/scratch/kocevski/671853/expmap_472089601_472348801_4FGL_J1438.9+3710_daily_bin898.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/671853/ltcube_472089601_472348801_4FGL_J1438.9+3710_daily_bin898.fits
.....................!
real 190.74
user 185.43
sys 4.92

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/671853/ft1_filtered_4FGL_J1438.9+3710_daily_bin898.fits scfile=/scratch/kocevski/671853/ft2_4FGL_J1438.9+3710_daily_bin898.fits outfile=/scratch/kocevski/671853/cmap_472089601_472348801_4FGL_J1438.9+3710_daily_bin898.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671853/ft1_filtered_4FGL_J1438.9+3710_daily_bin898.fits scfile=/scratch/kocevski/671853/ft2_4FGL_J1438.9+3710_daily_bin898.fits outfile=/scratch/kocevski/671853/cmap_HighResolution_472089601_472348801_4FGL_J1438.9+3710_daily_bin898.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27120E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18953E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9298       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1431       1.0000         .10000E-03   10000.    
     6 'norm      '    22.171       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3800       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.021       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.792       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.590       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4731       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .42513       1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.593       1.0000         .10000E-03   10000.    
    25 'norm      '    11.520       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.704       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    16.050       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0133       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .84712       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=   7459.228     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     4487 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1040.2       -.28471E-04** at limit **
   2  Prefactor     .10001E-03    4.1057        .78564E-06** at limit **
   3  norm          .10000E-03    5.7858        .46574E-07** at limit **
   4  Prefactor     8.9287        13.632        .21676E-06   -.22364E-05
   5  Prefactor     8.1259        21.548        .11520E-05   -.18429E-04
   6  norm          22.169        6.2124        .19301E-06   -.13096E-03
   7  Prefactor     .10000E-03    25.829       -.27140E-06** at limit **
   8  Prefactor     9.3605        13.929        .12111E-05   -.73513E-04
   9  Prefactor     .10000E-03    2.3555        .20544E-06** at limit **
  10  norm          .10000E-03    6.0501        .15507E-08** at limit **
  11  Prefactor     .10000E-03    13.669        .15423E-06** at limit **
  12  norm          22.021        9.0344        .15303E-06   -.90557E-04
  13  Prefactor     .10000E-03    17.982        .90676E-08** at limit **
  14  Prefactor     52.773        34.511        .46235E-06   -.69122E-04
  15  norm          .10000E-03    2.4071        .26475E-07** at limit **
  16  Prefactor     40.599        19.537        .94322E-07   -.98228E-04
  17  Prefactor     3.4680        9.8956       -.20706E-05   -.33148E-03
  18  Prefactor     .10000E-03    2.5885        .91073E-07** at limit **
  19  norm          .42585        1.7700        .21765E-05   -.44990E-04
  20  norm          .10000E-03    2.5507        .25387E-06** at limit **
  21  Prefactor     .10000E-03    15.902        .11520E-06** at limit **
  22  Prefactor     .10000E-03    34.032       -.15933E-06** at limit **
  23  Prefactor     .10000E-03    6.9732        .37679E-07** at limit **
  24  Prefactor     26.587        14.731       -.28955E-06   -.13408E-04
  25  norm          11.521        2.4366        .36100E-07   -.24274E-03
  26  Prefactor     20.700        17.557        .16031E-06   -.34915E-04
  27  Prefactor     .10000E-03    12.968       -.16884E-06** at limit **
  28  norm          16.041        17.831        .53520E-06   -.62755E-04
  29  Normalizat    1.0131        .17631       -.14901E-05    .36661E-04
  30  Prefactor     .84742        .17317       -.20067E-05    .82042E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 8.92874
  Prefactor  = 8.1259
  norm       = 22.1687
  Prefactor  = 0.0001
  Prefactor  = 9.36046
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 22.0212
  Prefactor  = 0.0001
  Prefactor  = 52.7734
  norm       = 0.0001
  Prefactor  = 40.599
  Prefactor  = 3.46803
  Prefactor  = 0.0001
  norm       = 0.425853
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5873
  norm       = 11.5205
  Prefactor  = 20.7002
  Prefactor  = 0.0001
  norm       = 16.0406
  Normalizat = 1.01307
  Prefactor  = 0.84742
 **********
 **   18 **HESSE 
 **********

 FCN=   7459.228     FROM HESSE     STATUS=OK           588 CALLS     5075 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1040.9        .39870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    32.437        .33517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.8010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9287        13.620        .13413E-03   -1.5110    
   5  Prefactor     8.1259        21.794        .14050E-03   -1.5138    
   6  norm          22.169        6.2145        .42533E-03   -1.4766    
   7  Prefactor     .10000E-03    26.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.3605        13.736        .13085E-03   -1.5096    
   9  Prefactor     .10000E-03    2.4106        .12943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.0597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.021        9.0394        .85356E-04   -1.4769    
  13  Prefactor     .10000E-03    17.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.773        34.598        .55201E-04   -1.4254    
  15  norm          .10000E-03    2.4074        .13086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.599        19.501        .62917E-04   -1.4433    
  17  Prefactor     3.4680        9.4047        .21698E-03   -1.5335    
  18  Prefactor     .10000E-03    2.5959        .13571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .42585        1.7062        .18491E-03   -1.5577    
  20  norm          .10000E-03    5.4499        .25894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.9795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.587        14.232        .77683E-04   -1.4676    
  25  norm          11.521        2.4557        .50532E-04   -1.5029    
  26  Prefactor     20.700        17.700        .88026E-04   -1.4798    
  27  Prefactor     .10000E-03    12.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          16.041        17.793        .99972E-04   -1.4907    
  29  Normalizat    1.0131        .20822        .25703E-03   -.92594    
  30  Prefactor     .84742        .20330        .29426E-03   -.98003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01475e-10
Minuit parameter uncertainties:
  1  0.00791754
  2  0.000865443
  3  1.74149e-05
  4  13.6246
  5  21.8157
  6  6.21466
  7  8.7064e-05
  8  13.7402
  9  8.40031e-06
  10  1.45674e-06
  11  2.43693e-05
  12  9.03994
  13  1.82637e-05
  14  34.611
  15  7.4239e-07
  16  19.5039
  17  9.40866
  18  4.15807e-06
  19  1.70468
  20  0.000180374
  21  0.000109505
  22  5.46836e-05
  23  4.6475e-06
  24  14.234
  25  2.45568
  26  17.7041
  27  3.57855e-05
  28  17.7991
  29  0.208385
  30  0.203484
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.202e+01  9.040e+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.474e-01  2.035e-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.013e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.85
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 9.98e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 3.42e-05 +/- 1.40e-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) = 7458.60776
delta logL = 0.620515525467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7458.59053822
delta logL = 0.637737300016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.841       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8753       1.0000          .0000       5.0000    
     3 'Normalizat'    .95307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89256       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=   7458.591     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.841        10.418        .97597E-04   -.16191E-03
   2  alpha         2.8753        .57637        .10160E-01   -.34759E-04
   3  Normalizat    .95309        .19920        .26350E-03    .29632E-03
   4  Prefactor     .89254        .20637        .28758E-03    .20114E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.841
  alpha      = 2.87528
  Normalizat = 0.95309
  Prefactor  = 0.892544
 **********
 **   18 **HESSE 
 **********

 FCN=   7458.591     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.841        9.7018        .39039E-05   -1.4887    
   2  alpha         2.8753        .53682        .40639E-03    .15068    
   3  Normalizat    .95309        .19879        .10540E-04   -.94619    
   4  Prefactor     .89254        .20598        .11503E-04   -.96402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01121e-10
Minuit parameter uncertainties:
  1  9.70271
  2  0.541133
  3  0.198944
  4  0.206164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671853': 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) = 7458.59053822
delta logL = 0.637737304072

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.684e+01  9.703e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.875e+00  5.411e-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.925e-01  2.062e-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:  9.531e-01  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.27
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.88 +/- 0.54
Photon Flux (Free Index): 1.47e-07 +/- 6.43e-08
Energy Flux (Free Index): 3.28e-05 +/- 1.21e-05

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/671853/cmap_HighResolution_472089601_472348801_4FGL_J1438.9+3710_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.98e-08', energy_flux2='3.28e-05', photon_flux_error='4.09e-08', dlogl='6.38e-01', energy_flux='3.42e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-10 03:48:17.821482', photon_index_error2='0.54', photon_index2='2.88', ts='11.85', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='1.01', time_epoch_completed='1631270897.82', return_code='0', job_id='671853', GAL2='0.89', EG2='0.95', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='6.43e-08', ts2='13.27', photon_index='2.31' WHERE bin_id='898' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:48:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 671853: <4FGL_J1438.9+3710_daily_bin898> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin898> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 03:31:40 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:31:42 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:31:42 2021
Terminated at Fri Sep 10 03:48:18 2021
Results reported at Fri Sep 10 03:48:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin898 219.74 37.1752 472089601 472348801 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 :                                   868.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

