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


Performing analysis on: 4FGL_J1438.0+0219_daily_bin496
RA = 219.504, Dec = 2.3272
tmin = 367891201, tmax = 368150401
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='639888', job_status='RUN', time_executed='2021-09-10 01:46:41.516359', time_epoch_executed='1631263601.52' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639888/ft1_4FGL_J1438.0+0219_daily_bin496.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639888/ft2_4FGL_J1438.0+0219_daily_bin496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639888/ft1_4FGL_J1438.0+0219_daily_bin496.fits outfile=/scratch/kocevski/639888/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin496.fits ra=219.504 dec=2.3272 rad=12.0 tmin=367891201.0 tmax=368150401.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.33
user 3.11
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/639888/ft2_4FGL_J1438.0+0219_daily_bin496.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639888/ft2_4FGL_J1438.0+0219_daily_bin496.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/639888/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin496.fits evtable="EVENTS" outfile="/scratch/kocevski/639888/ft1_filtered_4FGL_J1438.0+0219_daily_bin496.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639888/ft1_filtered_4FGL_J1438.0+0219_daily_bin496.fits" evtable="EVENTS" scfile=/scratch/kocevski/639888/ft2_4FGL_J1438.0+0219_daily_bin496.fits sctable="SC_DATA" outfile=/scratch/kocevski/639888/ltcube_367891201_368150401_4FGL_J1438.0+0219_daily_bin496.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/639888/ft2_4FGL_J1438.0+0219_daily_bin496.fits
.....................!
real 13.65
user 13.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639888/ft1_filtered_4FGL_J1438.0+0219_daily_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/639888/ft2_4FGL_J1438.0+0219_daily_bin496.fits sctable="SC_DATA" expcube=/scratch/kocevski/639888/ltcube_367891201_368150401_4FGL_J1438.0+0219_daily_bin496.fits outfile=/scratch/kocevski/639888/expmap_367891201_368150401_4FGL_J1438.0+0219_daily_bin496.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/639888/ltcube_367891201_368150401_4FGL_J1438.0+0219_daily_bin496.fits
.....................!
real 190.61
user 185.45
sys 4.76

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J1438.0+0219 @ 219.504 2.3272

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/639888/ft1_filtered_4FGL_J1438.0+0219_daily_bin496.fits scfile=/scratch/kocevski/639888/ft2_4FGL_J1438.0+0219_daily_bin496.fits outfile=/scratch/kocevski/639888/cmap_367891201_368150401_4FGL_J1438.0+0219_daily_bin496.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.504 yref=2.3272 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639888/ft1_filtered_4FGL_J1438.0+0219_daily_bin496.fits scfile=/scratch/kocevski/639888/ft2_4FGL_J1438.0+0219_daily_bin496.fits outfile=/scratch/kocevski/639888/cmap_HighResolution_367891201_368150401_4FGL_J1438.0+0219_daily_bin496.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.504 yref=2.3272 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639888/ft1_filtered_4FGL_J1438.0+0219_daily_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/639888/ft2_4FGL_J1438.0+0219_daily_bin496.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639888/Model_4FGL_J1438.0+0219_daily_bin496.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/639888/ft1_filtered_4FGL_J1438.0+0219_daily_bin496.fits.....................!
real 50.55
user 49.12
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639888/ft1_filtered_4FGL_J1438.0+0219_daily_bin496.fits', '/scratch/kocevski/639888/ft2_4FGL_J1438.0+0219_daily_bin496.fits', expMap='/scratch/kocevski/639888/expmap_367891201_368150401_4FGL_J1438.0+0219_daily_bin496.fits', expCube='/scratch/kocevski/639888/ltcube_367891201_368150401_4FGL_J1438.0+0219_daily_bin496.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639888/Model_4FGL_J1438.0+0219_daily_bin496.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.0+0219'

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  3.502e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/639888/ft1_filtered_4FGL_J1438.0+0219_daily_bin496.fits
Spacecraft file(s): /scratch/kocevski/639888/ft2_4FGL_J1438.0+0219_daily_bin496.fits
Exposure map: /scratch/kocevski/639888/expmap_367891201_368150401_4FGL_J1438.0+0219_daily_bin496.fits
Exposure cube: /scratch/kocevski/639888/ltcube_367891201_368150401_4FGL_J1438.0+0219_daily_bin496.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639888/Model_4FGL_J1438.0+0219_daily_bin496.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) = 6367.36077977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.235       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    17.144       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5456       1.0000         .10000E-03   10000.    
     7 'norm      '    .15436E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.0252       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.293       1.0000         .10000E-03   10000.    
    12 'norm      '    .98770E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .48454       1.0000         .10000E-03   10000.    
    14 'norm      '    .10256E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.519       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4185       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.154       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2110       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97404       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6367.293     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1917 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.235        30.083       -.62726E-05    .70427E-05
   2  Prefactor     .10000E-03    5.0742        .25663E-06** at limit **
   3  Prefactor     .10000E-03    19.282        .26047E-06** at limit **
   4  norm          17.144        12.777        .91895E-06    .15857E-04
   5  norm          .10000E-03    8.0429        .24321E-06** at limit **
   6  Prefactor     9.5532        19.544       -.23277E-04   -.22563E-04
   7  norm          .10000E-03    55.313        .77227E-05** at limit **
   8  Prefactor     .10000E-03    55.914       -.10273E-04** at limit **
   9  Prefactor     .10000E-03    13.544        .29310E-06** at limit **
  10  norm          6.0205        14.839       -.66027E-05   -.19781E-04
  11  Prefactor     19.293        17.768       -.14798E-05    .72849E-04
  12  norm          .98600E-01    .15382       -.18485E-06   -.41314E-02
  13  norm          .48667        1.8995       -.11203E-05   -.57172E-03
  14  norm          .10000E-03    8.5862        .26983E-06** at limit **
  15  norm          16.519        7.8806        .26159E-06    .65058E-05
  16  norm          5.4185        4.0776        .22344E-07    .18937E-03
  17  Prefactor     9.9452        58.549       -.11581E-04    .23063E-04
  18  Normalizat    1.2112        .22955        .43564E-05    .12065E-03
  19  Prefactor     .97396        .13015        .48605E-06    .39574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.2346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.1443
  norm       = 0.0001
  Prefactor  = 9.55324
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.02048
  Prefactor  = 19.2928
  norm       = 0.0986005
  norm       = 0.486672
  norm       = 0.0001
  norm       = 16.519
  norm       = 5.41853
  Prefactor  = 9.94521
  Normalizat = 1.21116
  Prefactor  = 0.973962
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.293     FROM HESSE     STATUS=OK           272 CALLS     2189 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.235        30.101        .78211E-04   -1.4683    
   2  Prefactor     .10000E-03    5.0832        .17553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.144        12.775        .96729E-04   -1.4880    
   5  norm          .10000E-03    8.0901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.5532        19.553        .12971E-03   -1.5090    
   7  norm          .10000E-03    56.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.0205        14.843        .16358E-03   -1.5217    
  11  Prefactor     19.293        17.730        .91186E-04   -1.4829    
  12  norm          .98600E-01    .14423        .37450E-03   -1.5645    
  13  norm          .48667        3.0354        .19732E-02   -1.5568    
  14  norm          .10000E-03    8.8255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.519        7.8939        .98543E-04   -1.4895    
  16  norm          5.4185        4.0521        .13317E-03   -1.5242    
  17  Prefactor     9.9452        58.040        .12574E-03   -1.5077    
  18  Normalizat    1.2112        .27277        .31061E-03   -.86259    
  19  Prefactor     .97396        .15643        .19769E-03   -.93603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97732e-10
Minuit parameter uncertainties:
  1  30.1183
  2  9.53967e-06
  3  1.58459e-05
  4  12.7767
  5  2.89334e-05
  6  19.5656
  7  0.000642088
  8  6.21715e-06
  9  6.64378e-05
  10  14.852
  11  17.7347
  12  0.144227
  13  2.43076
  14  1.19016e-05
  15  7.89436
  16  4.0523
  17  48.1211
  18  0.273091
  19  0.156501
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  6.217e-06  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.740e-01  1.565e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.211e+00  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.504 2.327
Photon Flux Upper Limit: 8.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639888/likelihoodResults_367891201_368150401_4FGL_J1438.0+0219_daily_bin496.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) = 6367.29358024
delta logL = -8.50357255331e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6367.29349525
delta logL = -3.76494426746e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2907       1.0000          .0000       10.000    
     3 'Normalizat'    1.2112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97396       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6367.293     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7036.3        .90712E-02** at limit **
   2  Index         2.2984        7.3585        .50000       -.12117E-05
   3  Normalizat    1.2112        .59786E-01    .70199E-01   -.11468E-04
   4  Prefactor     .97396        .34727E-01    .45941E-01   -.10087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29845
  Normalizat = 1.21116
  Prefactor  = 0.97396
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.293     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    195.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2984        5.2475        .50000       -.57081    
   3  Normalizat    1.2112        .26410        .31061E-03   -.86259    
   4  Prefactor     .97396        .15371        .19769E-03   -.93603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45881e-11
Minuit parameter uncertainties:
  1  0.000311295
  2  7.89792
  3  0.264394
  4  0.153776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639888': 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) = 6367.29349519
delta logL = 1.68383849086e-08

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  3.113e-04  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.298e+00  7.898e+00  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.740e-01  1.538e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.211e+00  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.504 2.327

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/639888/cmap_HighResolution_367891201_368150401_4FGL_J1438.0+0219_daily_bin496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', job_status='DONE', photon_flux_upper_limit='8.80e-08', time_completed='2021-09-10 01:55:44.670860', job_id='639888', GAL2='0.97', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631264144.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='496' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:55:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 639888: <4FGL_J1438.0+0219_daily_bin496> in cluster <slac> Done

Job <4FGL_J1438.0+0219_daily_bin496> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 01:42:27 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 01:42:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 01:42:29 2021
Terminated at Fri Sep 10 01:55:46 2021
Results reported at Fri Sep 10 01:55:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin496 219.504 2.3272 367891201 368150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.0+0219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   537.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

