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


Performing analysis on: 4FGL_J1438.0+0219_daily_bin1475
RA = 219.504, Dec = 2.3272
tmin = 621648001, tmax = 621907201
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='804897', job_status='RUN', time_executed='2021-09-10 10:36:40.348662', time_epoch_executed='1631295400.35' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804897

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804897/ft1_4FGL_J1438.0+0219_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804897/ft2_4FGL_J1438.0+0219_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804897/ft1_4FGL_J1438.0+0219_daily_bin1475.fits outfile=/scratch/kocevski/804897/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin1475.fits ra=219.504 dec=2.3272 rad=12.0 tmin=621648001.0 tmax=621907201.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 5.32
user 5.05
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804897/ft1_filtered_4FGL_J1438.0+0219_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/804897/ft2_4FGL_J1438.0+0219_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/804897/ltcube_621648001_621907201_4FGL_J1438.0+0219_daily_bin1475.fits outfile=/scratch/kocevski/804897/expmap_621648001_621907201_4FGL_J1438.0+0219_daily_bin1475.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/804897/ltcube_621648001_621907201_4FGL_J1438.0+0219_daily_bin1475.fits
.....................!
real 189.68
user 184.63
sys 4.59

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/804897/ft1_filtered_4FGL_J1438.0+0219_daily_bin1475.fits scfile=/scratch/kocevski/804897/ft2_4FGL_J1438.0+0219_daily_bin1475.fits outfile=/scratch/kocevski/804897/cmap_621648001_621907201_4FGL_J1438.0+0219_daily_bin1475.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804897/ft1_filtered_4FGL_J1438.0+0219_daily_bin1475.fits scfile=/scratch/kocevski/804897/ft2_4FGL_J1438.0+0219_daily_bin1475.fits outfile=/scratch/kocevski/804897/cmap_HighResolution_621648001_621907201_4FGL_J1438.0+0219_daily_bin1475.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/804897/ft1_filtered_4FGL_J1438.0+0219_daily_bin1475.fits', '/scratch/kocevski/804897/ft2_4FGL_J1438.0+0219_daily_bin1475.fits', expMap='/scratch/kocevski/804897/expmap_621648001_621907201_4FGL_J1438.0+0219_daily_bin1475.fits', expCube='/scratch/kocevski/804897/ltcube_621648001_621907201_4FGL_J1438.0+0219_daily_bin1475.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/804897/Model_4FGL_J1438.0+0219_daily_bin1475.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/804897/ft1_filtered_4FGL_J1438.0+0219_daily_bin1475.fits
Spacecraft file(s): /scratch/kocevski/804897/ft2_4FGL_J1438.0+0219_daily_bin1475.fits
Exposure map: /scratch/kocevski/804897/expmap_621648001_621907201_4FGL_J1438.0+0219_daily_bin1475.fits
Exposure cube: /scratch/kocevski/804897/ltcube_621648001_621907201_4FGL_J1438.0+0219_daily_bin1475.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/804897/Model_4FGL_J1438.0+0219_daily_bin1475.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) = 6275.44311053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.891       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2966       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    27.179       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.119       1.0000         .10000E-03   10000.    
     7 'norm      '    .14722E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10859E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12204E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1324       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5635       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4378       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6342       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.8551       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .68575       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=   6275.437     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1873 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.920        34.751       -.74732E-06    .43060E-05
   2  Prefactor     4.3206        21.420       -.15119E-06    .14607E-04
   3  Prefactor     .10000E-03    15.451       -.46880E-06** at limit **
   4  norm          .10000E-03    4.2572        .42712E-07** at limit **
   5  norm          27.186        16.943       -.19742E-06    .18258E-05
   6  Prefactor     35.008        44.166        .31729E-06    .28536E-04
   7  norm          .10001E-03    141.38       -.12972E-04** at limit **
   8  Prefactor     .10000E-03    56.467       -.83358E-07** at limit **
   9  Prefactor     .10000E-03    17.205       -.12866E-06** at limit **
  10  norm          .10000E-03    12.943       -.75365E-07** at limit **
  11  Prefactor     .10000E-03    16.139        .12046E-06** at limit **
  12  norm          1.1326        .28328       -.21757E-07   -.17310E-03
  13  norm          3.5642        2.3693       -.63484E-07    .15616E-04
  14  norm          .10000E-03    1.9983        .17350E-07** at limit **
  15  norm          4.4384        5.0186        .25984E-06    .49511E-04
  16  norm          6.6357        4.7783        .42440E-06    .18800E-03
  17  Prefactor     .10000E-03    27.206        .20404E-06** at limit **
  18  Normalizat    1.8543        .29056        .40212E-05    .17849E-04
  19  Prefactor     .68600        .14977       -.30121E-05    .17786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9203
  Prefactor  = 4.32057
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 27.1862
  Prefactor  = 35.0079
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13262
  norm       = 3.56425
  norm       = 0.0001
  norm       = 4.4384
  norm       = 6.63566
  Prefactor  = 0.0001
  Normalizat = 1.85434
  Prefactor  = 0.685998
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.437     FROM HESSE     STATUS=OK           266 CALLS     2139 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.920        34.625        .11157E-03   -1.4989    
   2  Prefactor     4.3206        21.345        .19436E-03   -1.5292    
   3  Prefactor     .10000E-03    15.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.2583        .15964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          27.186        16.951        .76843E-04   -1.4665    
   6  Prefactor     35.008        44.373        .67624E-04   -1.4524    
   7  norm          .10001E-03    151.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    56.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    12.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1326        .28361        .20371E-04   -1.5495    
  13  norm          3.5642        2.3677        .95142E-04   -1.5330    
  14  norm          .10000E-03    1.9991        .10937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4384        5.0119        .18164E-03   -1.5287    
  16  norm          6.6357        4.7872        .70565E-03   -1.5193    
  17  Prefactor     .10000E-03    27.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.8543        .30361        .29436E-03   -.68254    
  19  Prefactor     .68600        .15577        .24040E-03   -1.0408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57812e-10
Minuit parameter uncertainties:
  1  34.6788
  2  19.2171
  3  3.4087e-05
  4  1.20394e-06
  5  16.9541
  6  44.4144
  7  0.00207069
  8  5.80745e-05
  9  1.76584e-05
  10  1.10286e-05
  11  3.11546e-06
  12  0.283607
  13  2.36777
  14  4.09755e-07
  15  5.01234
  16  4.78745
  17  2.34851e-05
  18  0.303926
  19  0.155868
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  5.807e-05  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:  6.860e-01  1.559e-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.854e+00  3.039e-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: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804897/likelihoodResults_621648001_621907201_4FGL_J1438.0+0219_daily_bin1475.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) = 6275.43703374
delta logL = -8.42154076963e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6275.43694966
delta logL = -1.3854514691e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4428       1.0000          .0000       10.000    
     3 'Normalizat'    1.8543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68600       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=   6275.437     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      243 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.317        .90712E-02** at limit **
   2  Index         2.4244        6.9778        .50000        .30585E-05
   3  Normalizat    1.8543        .54046E-02    .66558E-01    .43751E-05
   4  Prefactor     .68600        .28786E-02    .42215E-01    .17174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42436
  Normalizat = 1.85434
  Prefactor  = 0.685996
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.437     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      274 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    205.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4244        7.3868        .50000       -.54116    
   3  Normalizat    1.8543        .13296E-01    .29436E-03   -.68253    
   4  Prefactor     .68600        .70818E-02    .24040E-03   -1.0408    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52845e-08
Minuit parameter uncertainties:
  1  0.000417842
  2  228.511
  3  0.0132959
  4  0.00708184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804897': 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): 102
logL (Free Index) = 6275.43694962
delta logL = -9.27348082769e-08

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  4.178e-04  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.424e+00  2.285e+02  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:  6.860e-01  7.082e-03  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.854e+00  1.330e-02  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/804897/cmap_HighResolution_621648001_621907201_4FGL_J1438.0+0219_daily_bin1475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-10 10:45:39.289689', job_id='804897', GAL2='0.69', fit_tolerance='1e-08', EG2='1.85', EG='1.85', time_epoch_completed='1631295939.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-9.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1475' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 10:45:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 804897: <4FGL_J1438.0+0219_daily_bin1475> in cluster <slac> Done

Job <4FGL_J1438.0+0219_daily_bin1475> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 10 10:36:23 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 10:36:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 10:36:25 2021
Terminated at Fri Sep 10 10:45:40 2021
Results reported at Fri Sep 10 10:45:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin1475 219.504 2.3272 621648001 621907201 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 :                                   541.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   554 sec.
    Turnaround time :                            557 sec.

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

