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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin660
RA = 209.29, Dec = 19.3608
tmin = 410400001, tmax = 410659201
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='62777', job_status='RUN', time_executed='2021-09-08 17:54:17.648571', time_epoch_executed='1631148857.65' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62777

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62777/ft1_4FGL_J1357.1+1921_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62777/ft2_4FGL_J1357.1+1921_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62777/ft1_4FGL_J1357.1+1921_daily_bin660.fits outfile=/scratch/kocevski/62777/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin660.fits ra=209.29 dec=19.3608 rad=12.0 tmin=410400001.0 tmax=410659201.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 6.61
user 6.36
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/62777/ft2_4FGL_J1357.1+1921_daily_bin660.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62777/ft2_4FGL_J1357.1+1921_daily_bin660.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/62777/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin660.fits evtable="EVENTS" outfile="/scratch/kocevski/62777/ft1_filtered_4FGL_J1357.1+1921_daily_bin660.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/62777/ft1_filtered_4FGL_J1357.1+1921_daily_bin660.fits" evtable="EVENTS" scfile=/scratch/kocevski/62777/ft2_4FGL_J1357.1+1921_daily_bin660.fits sctable="SC_DATA" outfile=/scratch/kocevski/62777/ltcube_410400001_410659201_4FGL_J1357.1+1921_daily_bin660.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/62777/ft2_4FGL_J1357.1+1921_daily_bin660.fits
.....................!
real 12.08
user 11.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62777/ft1_filtered_4FGL_J1357.1+1921_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/62777/ft2_4FGL_J1357.1+1921_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/62777/ltcube_410400001_410659201_4FGL_J1357.1+1921_daily_bin660.fits outfile=/scratch/kocevski/62777/expmap_410400001_410659201_4FGL_J1357.1+1921_daily_bin660.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/62777/ltcube_410400001_410659201_4FGL_J1357.1+1921_daily_bin660.fits
.....................!
real 191.70
user 186.57
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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J1357.1+1921 @ 209.29 19.3608

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/62777/ft1_filtered_4FGL_J1357.1+1921_daily_bin660.fits scfile=/scratch/kocevski/62777/ft2_4FGL_J1357.1+1921_daily_bin660.fits outfile=/scratch/kocevski/62777/cmap_410400001_410659201_4FGL_J1357.1+1921_daily_bin660.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=209.29 yref=19.3608 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62777/ft1_filtered_4FGL_J1357.1+1921_daily_bin660.fits scfile=/scratch/kocevski/62777/ft2_4FGL_J1357.1+1921_daily_bin660.fits outfile=/scratch/kocevski/62777/cmap_HighResolution_410400001_410659201_4FGL_J1357.1+1921_daily_bin660.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=209.29 yref=19.3608 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/62777/ft1_filtered_4FGL_J1357.1+1921_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/62777/ft2_4FGL_J1357.1+1921_daily_bin660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62777/Model_4FGL_J1357.1+1921_daily_bin660.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/62777/ft1_filtered_4FGL_J1357.1+1921_daily_bin660.fits.....................!
real 54.38
user 52.99
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/62777/ft1_filtered_4FGL_J1357.1+1921_daily_bin660.fits', '/scratch/kocevski/62777/ft2_4FGL_J1357.1+1921_daily_bin660.fits', expMap='/scratch/kocevski/62777/expmap_410400001_410659201_4FGL_J1357.1+1921_daily_bin660.fits', expCube='/scratch/kocevski/62777/ltcube_410400001_410659201_4FGL_J1357.1+1921_daily_bin660.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/62777/Model_4FGL_J1357.1+1921_daily_bin660.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1357.1+1921'

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.782e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/62777/ft1_filtered_4FGL_J1357.1+1921_daily_bin660.fits
Spacecraft file(s): /scratch/kocevski/62777/ft2_4FGL_J1357.1+1921_daily_bin660.fits
Exposure map: /scratch/kocevski/62777/expmap_410400001_410659201_4FGL_J1357.1+1921_daily_bin660.fits
Exposure cube: /scratch/kocevski/62777/ltcube_410400001_410659201_4FGL_J1357.1+1921_daily_bin660.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/62777/Model_4FGL_J1357.1+1921_daily_bin660.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) = 7317.01267484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.125       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7044       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41590       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.233       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .80036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.805       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27059       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2792       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22171       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8528       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0364       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2707       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0048       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7317.011     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2425 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.127        20.525        .10259E-06    .61402E-05
   2  norm          .10000E-03    5.9809        .24749E-06** at limit **
   3  Prefactor     .10000E-03    13.091       -.32233E-06** at limit **
   4  norm          .10000E-03    4.1839        .14213E-06** at limit **
   5  Prefactor     16.573        24.874        .81904E-07   -.30184E-04
   6  Prefactor     .10000E-03    7.6825        .11734E-06** at limit **
   7  Prefactor     .10000E-03    17.167        .58797E-06** at limit **
   8  Prefactor     2.7042        5.2992        .11443E-06    .12218E-04
   9  Prefactor     .41646        .12004        .12469E-06   -.82860E-03
  10  Prefactor     11.232        8.3061        .64730E-08   -.16609E-03
  11  Prefactor     .10000E-03    5.4436       -.48066E-06** at limit **
  12  Prefactor     13.806        19.278       -.83902E-07    .31913E-04
  13  Prefactor     .28190        27.362       -.67482E-05    .93040E-05
  14  norm          6.2794        2.8573        .30502E-07   -.10624E-03
  15  Prefactor     .20720        42.865       -.83954E-05    .50430E-05
  16  norm          3.8533        2.3257        .17756E-07    .53385E-04
  17  Prefactor     8.0445        26.775        .33339E-06    .77022E-04
  18  Normalizat    1.2708        .18878       -.88694E-06   -.22903E-03
  19  Prefactor     1.0047        .15410       -.14554E-06   -.88690E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.127
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 16.5729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.70415
  Prefactor  = 0.416462
  Prefactor  = 11.2322
  Prefactor  = 0.0001
  Prefactor  = 13.8063
  Prefactor  = 0.281899
  norm       = 6.27935
  Prefactor  = 0.207198
  norm       = 3.85333
  Prefactor  = 8.04445
  Normalizat = 1.27077
  Prefactor  = 1.00471
 **********
 **   18 **HESSE 
 **********

 FCN=   7317.011     FROM HESSE     STATUS=OK           276 CALLS     2701 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.127        20.529        .99739E-04   -1.4905    
   2  norm          .10000E-03    6.0882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.2221        .17092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.573        24.885        .98380E-04   -1.4894    
   6  Prefactor     .10000E-03    7.6882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7042        5.2915        .24770E-03   -1.5379    
   9  Prefactor     .41646        4.7862        .17743E-02   -1.5579    
  10  Prefactor     11.232        8.3068        .11953E-03   -1.5038    
  11  Prefactor     .10000E-03    25.809        .36859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.806        19.215        .10780E-03   -1.4965    
  13  Prefactor     .28190        29.227        .35484E-02   -1.5602    
  14  norm          6.2794        2.8593        .94065E-04   -1.5207    
  15  Prefactor     .20720        46.008        .26320E-02   -1.5617    
  16  norm          3.8533        2.3202        .96771E-04   -1.5315    
  17  Prefactor     8.0445        26.778        .14143E-03   -1.5141    
  18  Normalizat    1.2708        .22936        .25946E-03   -.84443    
  19  Prefactor     1.0047        .18682        .23591E-03   -.92573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47381e-09
Minuit parameter uncertainties:
  1  20.5383
  2  5.18888e-05
  3  0.000204969
  4  3.48556e-05
  5  24.9002
  6  6.01706e-06
  7  0.00015607
  8  5.2924
  9  2.8236
  10  8.30762
  11  0.000145687
  12  19.2232
  13  5.74261
  14  2.85936
  15  6.17838
  16  2.32029
  17  26.818
  18  0.229542
  19  0.186939
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.457e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.005e+00  1.869e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.271e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 9.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62777/likelihoodResults_410400001_410659201_4FGL_J1357.1+1921_daily_bin660.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) = 7317.01141776
delta logL = -0.000183482232387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7317.01123445
delta logL = -1.77235051524e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7317.011     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1.0567        .90712E-01** at limit **
   2  Index         2.7036        6.2879        .50000        .79313E-05
   3  Normalizat    1.2708        .19321E-02    .58669E-01    .25101E-03
   4  Prefactor     1.0047        .15920E-02    .44253E-01    .25060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100021
  Index      = 2.70359
  Normalizat = 1.27078
  Prefactor  = 1.00471
 **********
 **   18 **HESSE 
 **********

 FCN=   7317.011     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      254 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    223.39        .40937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7036        8.5975        .50000       -.47719    
   3  Normalizat    1.2708        .13312E-01    .25946E-03   -.84443    
   4  Prefactor     1.0047        .10972E-01    .23591E-03   -.92573    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.63329e-07
Minuit parameter uncertainties:
  1  0.00435618
  2  464.418
  3  0.0133123
  4  0.0109725
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62777': 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) = 7317.01123416
delta logL = 1.09775101009e-07

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  4.356e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.704e+00  4.644e+02  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.005e+00  1.097e-02  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.271e+00  1.331e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.290 19.361

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/62777/cmap_HighResolution_410400001_410659201_4FGL_J1357.1+1921_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.25e-08', time_completed='2021-09-08 18:04:47.346547', job_id='62777', GAL2='1.00', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631149487.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='660' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:04:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 62777: <4FGL_J1357.1+1921_daily_bin660> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin660> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 17:50:30 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:50:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 17:50:31 2021
Terminated at Wed Sep  8 18:04:48 2021
Results reported at Wed Sep  8 18:04:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin660 209.29 19.3608 410400001 410659201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1357.1+1921 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   628.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             240.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            858 sec.

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

