/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 186 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_bin128
RA = 212.529, Dec = 2.0354
tmin = 272505601, tmax = 272764801
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='231191', job_status='RUN', time_executed='2021-09-09 03:34:07.821284', time_epoch_executed='1631183647.82' WHERE source_name='4FGL J1410.1+0202' and cadence='daily' and bin_id='128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231191

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231191/ft1_4FGL_J1410.1+0202_daily_bin128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231191/ft2_4FGL_J1410.1+0202_daily_bin128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231191/ft1_4FGL_J1410.1+0202_daily_bin128.fits outfile=/scratch/kocevski/231191/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin128.fits ra=212.529 dec=2.0354 rad=12.0 tmin=272505601.0 tmax=272764801.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 1.76
user 1.57
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231191/ft2_4FGL_J1410.1+0202_daily_bin128.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/231191/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin128.fits evtable="EVENTS" outfile="/scratch/kocevski/231191/ft1_filtered_4FGL_J1410.1+0202_daily_bin128.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231191/ft1_filtered_4FGL_J1410.1+0202_daily_bin128.fits" evtable="EVENTS" scfile=/scratch/kocevski/231191/ft2_4FGL_J1410.1+0202_daily_bin128.fits sctable="SC_DATA" outfile=/scratch/kocevski/231191/ltcube_272505601_272764801_4FGL_J1410.1+0202_daily_bin128.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/231191/ft2_4FGL_J1410.1+0202_daily_bin128.fits
.....................!
real 12.69
user 12.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231191/ft1_filtered_4FGL_J1410.1+0202_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/231191/ft2_4FGL_J1410.1+0202_daily_bin128.fits sctable="SC_DATA" expcube=/scratch/kocevski/231191/ltcube_272505601_272764801_4FGL_J1410.1+0202_daily_bin128.fits outfile=/scratch/kocevski/231191/expmap_272505601_272764801_4FGL_J1410.1+0202_daily_bin128.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/231191/ltcube_272505601_272764801_4FGL_J1410.1+0202_daily_bin128.fits
.....................!
real 189.95
user 185.00
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 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/231191/ft1_filtered_4FGL_J1410.1+0202_daily_bin128.fits scfile=/scratch/kocevski/231191/ft2_4FGL_J1410.1+0202_daily_bin128.fits outfile=/scratch/kocevski/231191/cmap_272505601_272764801_4FGL_J1410.1+0202_daily_bin128.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 0.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231191/ft1_filtered_4FGL_J1410.1+0202_daily_bin128.fits scfile=/scratch/kocevski/231191/ft2_4FGL_J1410.1+0202_daily_bin128.fits outfile=/scratch/kocevski/231191/cmap_HighResolution_272505601_272764801_4FGL_J1410.1+0202_daily_bin128.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 0.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231191/ft1_filtered_4FGL_J1410.1+0202_daily_bin128.fits', '/scratch/kocevski/231191/ft2_4FGL_J1410.1+0202_daily_bin128.fits', expMap='/scratch/kocevski/231191/expmap_272505601_272764801_4FGL_J1410.1+0202_daily_bin128.fits', expCube='/scratch/kocevski/231191/ltcube_272505601_272764801_4FGL_J1410.1+0202_daily_bin128.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231191/Model_4FGL_J1410.1+0202_daily_bin128.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/231191/ft1_filtered_4FGL_J1410.1+0202_daily_bin128.fits
Spacecraft file(s): /scratch/kocevski/231191/ft2_4FGL_J1410.1+0202_daily_bin128.fits
Exposure map: /scratch/kocevski/231191/expmap_272505601_272764801_4FGL_J1410.1+0202_daily_bin128.fits
Exposure cube: /scratch/kocevski/231191/ltcube_272505601_272764801_4FGL_J1410.1+0202_daily_bin128.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231191/Model_4FGL_J1410.1+0202_daily_bin128.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) = 7141.00411261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8959       1.0000         .10000E-03   10000.    
     2 'norm      '    .14235E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11490E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6353       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25749E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .74348E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13478E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10760E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.747       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15761E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20994E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12109E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4535       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .83435       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.

 FCN=   7140.910     FROM MIGRAD    STATUS=CONVERGED    352 CALLS     1466 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8992        3.0155        .35674E-02    .48228E-02
   2  norm          .10003E-03    13.477        .90712E-02** at limit **
   3  Prefactor     .10000E-03    2.3049        .90712E-02** at limit **
   4  Prefactor     .10001E-03    8.2204        .90712E-02** at limit **
   5  Prefactor     2.6371        2.6164        .62796E-02   -.23011E-03
   6  Prefactor     .10000E-03    10.129        .10727E-01** at limit **
   7  norm          .77193E-01    1.0131        .58578E-01    .40700E-03
   8  Prefactor     .10001E-03    7.7297        .90712E-02** at limit **
   9  Prefactor     .10002E-03    10.381        .90712E-02** at limit **
  10  norm          .10000E-03    4.9386        .90712E-02** at limit **
  11  norm          10.766        7.3624        .30554E-02    .20683E-03
  12  Prefactor     .10002E-03    8.5060        .90712E-02** at limit **
  13  norm          .10000E-03    36.551        .90712E-02** at limit **
  14  Prefactor     .10001E-03    20.088        .90712E-02** at limit **
  15  Prefactor     .10001E-03    10.009        .90712E-02** at limit **
  16  norm          .10000E-03    4.3806        .90712E-02** at limit **
  17  Normalizat    1.4538        .19637        .58829E-01   -.58959E-05
  18  Prefactor     .83409        .12848        .44163E-01    .53728E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.89923
  norm       = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 2.63705
  Prefactor  = 0.000100004
  norm       = 0.0771934
  Prefactor  = 0.000100013
  Prefactor  = 0.000100018
  norm       = 0.0001
  norm       = 10.7663
  Prefactor  = 0.000100018
  norm       = 0.000100001
  Prefactor  = 0.000100013
  Prefactor  = 0.000100008
  norm       = 0.0001
  Normalizat = 1.45378
  Prefactor  = 0.834092
 **********
 **   18 **HESSE 
 **********

 FCN=   7140.910     FROM HESSE     STATUS=OK           240 CALLS     1706 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8992        3.0238        .43471E-03   -1.5146    
   2  norm          .10003E-03    13.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3588        .12520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    8.2343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6371        2.6247        .13275E-03   -1.5383    
   6  Prefactor     .10000E-03    10.271        .21453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .77193E-01    15.410        .16143E-02   -1.5652    
   8  Prefactor     .10001E-03    7.7411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    10.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.9735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.766        7.3826        .12222E-03   -1.5052    
  12  Prefactor     .10002E-03    8.5274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    37.687        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    20.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    10.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.3858        .17273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.4538        .23727        .26016E-03   -.79086    
  18  Prefactor     .83409        .15544        .21810E-03   -.98484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10481e-08
Minuit parameter uncertainties:
  1  3.02385
  2  0.00132404
  3  1.48541e-06
  4  0.000585355
  5  2.62478
  6  0.000406928
  7  2.1805
  8  0.000640029
  9  0.000854782
  10  3.08133e-06
  11  7.38322
  12  0.000775195
  13  0.00040484
  14  0.00100867
  15  0.000573792
  16  7.52542e-06
  17  0.237452
  18  0.155525
Done.

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

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.000e-04  6.400e-04  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:  8.341e-01  1.555e-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:  1.454e+00  2.375e-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: 6.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231191/likelihoodResults_272505601_272764801_4FGL_J1410.1+0202_daily_bin128.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) = 7140.91085356
delta logL = -0.00061508568524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7140.91023846
delta logL = 1.50566847879e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3047       1.0000          .0000       10.000    
     3 'Normalizat'    1.4538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83410       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7140.910     FROM MIGRAD    STATUS=FAILED        95 CALLS      247 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10074E-03    24.539        .18142E-01** at limit **
   2  Index         1.9237        8.1889        .50000        .80702E-06
   3  Normalizat    1.4538        .84225E-02    .26016E-03   -.51303E-04
   4  Prefactor     .83409        .55586E-02    .21810E-03   -.19912E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7140.910     FROM SIMPLEX   STATUS=UNCHANGED    114 CALLS      361 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10074E-03    24.539        .56477E-03** at limit **
   2  Index         1.9237        8.1889        .75972E-03    .80702E-06
   3  Normalizat    1.4538        .84225E-02    .17278E-05   -.51303E-04
   4  Prefactor     .83409        .55586E-02    .11097E-05   -.19912E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7140.910     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      394 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    1795.3        .24077E-02** at limit **
   2  Index         1.9640        7.9865        .50000        .20540E-05
   3  Normalizat    1.4538        .14360        .10406E-04   -.49818E-04
   4  Prefactor     .83409        .94725E-01    .87239E-05   -.18505E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100125
  Index      = 1.96396
  Normalizat = 1.45378
  Prefactor  = 0.834092
 **********
 **   18 **HESSE 
 **********

 FCN=   7140.910     FROM HESSE     STATUS=OK            29 CALLS      423 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    8.6430        .48154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9640        7.3150        .50000       -.65254    
   3  Normalizat    1.4538        .23431        .20812E-05   -.79086    
   4  Prefactor     .83409        .15465        .17448E-05   -.98484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72038e-08
Minuit parameter uncertainties:
  1  0.00207679
  2  245.732
  3  0.234485
  4  0.154735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231191': 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) = 7140.9102379
delta logL = 5.77908394916e-07

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.001e-04  2.077e-03  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  1.964e+00  2.457e+02  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:  8.341e-01  1.547e-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:  1.454e+00  2.345e-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/231191/cmap_HighResolution_272505601_272764801_4FGL_J1410.1+0202_daily_bin128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.08e-08', time_completed='2021-09-09 03:43:15.776806', job_id='231191', GAL2='0.83', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1631184195.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='5.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='128' AND source_name='4FGL J1410.1+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:43:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 231191: <4FGL_J1410.1+0202_daily_bin128> in cluster <slac> Done

Job <4FGL_J1410.1+0202_daily_bin128> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 03:30:51 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:30:53 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:30:53 2021
Terminated at Thu Sep  9 03:43:17 2021
Results reported at Thu Sep  9 03:43:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1410.1+0202_daily_bin128 212.529 2.0354 272505601 272764801 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 :                                   546.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            746 sec.

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

