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


Performing analysis on: 4FGL_J1410.1+0202_daily_bin226
RA = 212.529, Dec = 2.0354
tmin = 297907201, tmax = 298166401
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='232373', job_status='RUN', time_executed='2021-09-09 03:38:04.932173', time_epoch_executed='1631183884.93' WHERE source_name='4FGL J1410.1+0202' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232373/ft1_4FGL_J1410.1+0202_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232373/ft2_4FGL_J1410.1+0202_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232373/ft1_4FGL_J1410.1+0202_daily_bin226.fits outfile=/scratch/kocevski/232373/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin226.fits ra=212.529 dec=2.0354 rad=12.0 tmin=297907201.0 tmax=298166401.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.57
user 3.33
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/232373/ft2_4FGL_J1410.1+0202_daily_bin226.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232373/ft2_4FGL_J1410.1+0202_daily_bin226.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/232373/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin226.fits evtable="EVENTS" outfile="/scratch/kocevski/232373/ft1_filtered_4FGL_J1410.1+0202_daily_bin226.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.52
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232373/ft1_filtered_4FGL_J1410.1+0202_daily_bin226.fits" evtable="EVENTS" scfile=/scratch/kocevski/232373/ft2_4FGL_J1410.1+0202_daily_bin226.fits sctable="SC_DATA" outfile=/scratch/kocevski/232373/ltcube_297907201_298166401_4FGL_J1410.1+0202_daily_bin226.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/232373/ft2_4FGL_J1410.1+0202_daily_bin226.fits
.....................!
real 11.71
user 11.38
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232373/ft1_filtered_4FGL_J1410.1+0202_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/232373/ft2_4FGL_J1410.1+0202_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/232373/ltcube_297907201_298166401_4FGL_J1410.1+0202_daily_bin226.fits outfile=/scratch/kocevski/232373/expmap_297907201_298166401_4FGL_J1410.1+0202_daily_bin226.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/232373/ltcube_297907201_298166401_4FGL_J1410.1+0202_daily_bin226.fits
.....................!
real 189.80
user 185.11
sys 4.31

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

Setting source of interest to:
4FGL J1410.1+0202 @ 212.529 2.0354

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/232373/ft1_filtered_4FGL_J1410.1+0202_daily_bin226.fits scfile=/scratch/kocevski/232373/ft2_4FGL_J1410.1+0202_daily_bin226.fits outfile=/scratch/kocevski/232373/cmap_297907201_298166401_4FGL_J1410.1+0202_daily_bin226.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=212.529 yref=2.0354 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 2.99
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232373/ft1_filtered_4FGL_J1410.1+0202_daily_bin226.fits scfile=/scratch/kocevski/232373/ft2_4FGL_J1410.1+0202_daily_bin226.fits outfile=/scratch/kocevski/232373/cmap_HighResolution_297907201_298166401_4FGL_J1410.1+0202_daily_bin226.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=212.529 yref=2.0354 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 1.92
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/232373/ft1_filtered_4FGL_J1410.1+0202_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/232373/ft2_4FGL_J1410.1+0202_daily_bin226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/232373/Model_4FGL_J1410.1+0202_daily_bin226.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/232373/ft1_filtered_4FGL_J1410.1+0202_daily_bin226.fits.....................!
real 65.01
user 55.76
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/232373/ft1_filtered_4FGL_J1410.1+0202_daily_bin226.fits', '/scratch/kocevski/232373/ft2_4FGL_J1410.1+0202_daily_bin226.fits', expMap='/scratch/kocevski/232373/expmap_297907201_298166401_4FGL_J1410.1+0202_daily_bin226.fits', expCube='/scratch/kocevski/232373/ltcube_297907201_298166401_4FGL_J1410.1+0202_daily_bin226.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/232373/Model_4FGL_J1410.1+0202_daily_bin226.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1410.1+0202'

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  5.797e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/232373/ft1_filtered_4FGL_J1410.1+0202_daily_bin226.fits
Spacecraft file(s): /scratch/kocevski/232373/ft2_4FGL_J1410.1+0202_daily_bin226.fits
Exposure map: /scratch/kocevski/232373/expmap_297907201_298166401_4FGL_J1410.1+0202_daily_bin226.fits
Exposure cube: /scratch/kocevski/232373/ltcube_297907201_298166401_4FGL_J1410.1+0202_daily_bin226.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/232373/Model_4FGL_J1410.1+0202_daily_bin226.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) = 7698.75048961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7877       1.0000         .10000E-03   10000.    
     2 'norm      '    6.9431       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2267       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.932       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1036       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7208       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.425       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.026       1.0000         .10000E-03   10000.    
    16 'norm      '    .10331E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .97921       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0406       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7697.901     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1461 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7877        2.0359       -.15121E-06    .55619E-04
   2  norm          6.9427        13.040       -.42767E-06   -.73937E-05
   3  Prefactor     2.2268        3.2115       -.35220E-05    .99651E-04
   4  Prefactor     13.932        14.092        .44778E-06    .14178E-04
   5  Prefactor     .10000E-03    1.7030        .31649E-07** at limit **
   6  Prefactor     1.1035        6.8889       -.74223E-06   -.22673E-04
   7  norm          2.7208        2.3244       -.24293E-06   -.53624E-03
   8  Prefactor     .10000E-03    6.3139        .13089E-05** at limit **
   9  Prefactor     .10000E-03    15.730       -.59312E-05** at limit **
  10  norm          16.424        11.101       -.68828E-07    .36008E-05
  11  norm          .10000E-03    2.5691        .13348E-06** at limit **
  12  Prefactor     .10000E-03    6.9501       -.17603E-05** at limit **
  13  norm          .10000E-03    14.362        .24726E-05** at limit **
  14  Prefactor     .10000E-03    12.211        .51429E-05** at limit **
  15  Prefactor     22.028        20.800        .27811E-05   -.16005E-03
  16  norm          .10000E-03    10.272       -.26485E-05** at limit **
  17  Normalizat    .97921        .18519        .12028E-05    .12060E-03
  18  Prefactor     1.0406        .12083        .18142E-07    .23694E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.78766
  norm       = 6.9427
  Prefactor  = 2.22684
  Prefactor  = 13.9323
  Prefactor  = 0.0001
  Prefactor  = 1.10354
  norm       = 2.72076
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 16.4244
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.0279
  norm       = 0.0001
  Normalizat = 0.97921
  Prefactor  = 1.04059
 **********
 **   18 **HESSE 
 **********

 FCN=   7697.901     FROM HESSE     STATUS=OK           244 CALLS     1705 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7877        2.0397        .78634E-04   -1.5270    
   2  norm          6.9427        13.038        .15225E-03   -1.5181    
   3  Prefactor     2.2268        3.3385        .18759E-03   -1.5410    
   4  Prefactor     13.932        14.079        .10731E-03   -1.4961    
   5  Prefactor     .10000E-03    1.7164        .11181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1035        36.534        .42229E-02   -1.5498    
   7  norm          2.7208        2.3282        .11834E-03   -1.5378    
   8  Prefactor     .10000E-03    6.3135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.424        11.106        .98826E-04   -1.4897    
  11  norm          .10000E-03    2.5900        .13730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    14.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.028        20.737        .85347E-04   -1.4769    
  16  norm          .10000E-03    10.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .97921        .21907        .29352E-03   -.93730    
  18  Prefactor     1.0406        .14383        .19353E-03   -.91389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17992e-08
Minuit parameter uncertainties:
  1  2.0397
  2  13.0436
  3  3.33874
  4  14.0822
  5  2.76597e-06
  6  12.707
  7  2.32832
  8  4.05618e-05
  9  0.000282192
  10  11.1073
  11  3.24173e-06
  12  5.21448e-05
  13  0.000134016
  14  0.000224517
  15  20.744
  16  6.83657e-05
  17  0.219269
  18  0.143887
Done.

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

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.000e-04  4.056e-05  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.041e+00  1.439e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.792e-01  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 212.529 2.035
Photon Flux Upper Limit: 5.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232373/likelihoodResults_297907201_298166401_4FGL_J1410.1+0202_daily_bin226.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) = 7697.90184286
delta logL = -0.000754387046982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7697.90108847
delta logL = -3.18323145621e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3154       1.0000          .0000       10.000    
     3 'Normalizat'    .97921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0406       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+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=   7697.901     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1239.5        .18142E-02** at limit **
   2  Index         2.3160        5.4621        .50000       -.96638E-06
   3  Normalizat    .97921        .10627        .29352E-03   -.22790E-03
   4  Prefactor     1.0406        .72461E-01    .19353E-03   -.98395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31596
  Normalizat = 0.979207
  Prefactor  = 1.04059
 **********
 **   18 **HESSE 
 **********

 FCN=   7697.901     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3160        6.1558        .50000       -.56665    
   3  Normalizat    .97921        .20916        .11741E-04   -.93730    
   4  Prefactor     1.0406        .14270        .38706E-04   -.91388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5279e-10
Minuit parameter uncertainties:
  1  1.17347e-05
  2  4.41138
  3  0.209336
  4  0.142753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232373': 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) = 7697.90108847
delta logL = 1.82808435056e-10

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.000e-04  1.173e-05  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.316e+00  4.411e+00  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.041e+00  1.428e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.792e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 212.529 2.035

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/232373/cmap_HighResolution_297907201_298166401_4FGL_J1410.1+0202_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-03', job_status='DONE', photon_flux_upper_limit='5.33e-08', time_completed='2021-09-09 03:47:30.933130', job_id='232373', GAL2='1.04', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631184450.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.83e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='226' AND source_name='4FGL J1410.1+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:47:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 232373: <4FGL_J1410.1+0202_daily_bin226> in cluster <slac> Done

Job <4FGL_J1410.1+0202_daily_bin226> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 03:35:24 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:35:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 03:35:26 2021
Terminated at Thu Sep  9 03:47:32 2021
Results reported at Thu Sep  9 03:47:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1410.1+0202_daily_bin226 212.529 2.0354 297907201 298166401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1410.1+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   543.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            728 sec.

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

