/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 231 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin81
RA = 209.29, Dec = 19.3608
tmin = 260323201, tmax = 260582401
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='60868', job_status='RUN', time_executed='2021-09-08 17:49:18.053996', time_epoch_executed='1631148558.05' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60868

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60868/ft1_4FGL_J1357.1+1921_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60868/ft2_4FGL_J1357.1+1921_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60868/ft1_4FGL_J1357.1+1921_daily_bin81.fits outfile=/scratch/kocevski/60868/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin81.fits ra=209.29 dec=19.3608 rad=12.0 tmin=260323201.0 tmax=260582401.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.55
user 1.38
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/60868/ft2_4FGL_J1357.1+1921_daily_bin81.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/60868/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin81.fits evtable="EVENTS" outfile="/scratch/kocevski/60868/ft1_filtered_4FGL_J1357.1+1921_daily_bin81.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60868/ft1_filtered_4FGL_J1357.1+1921_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/60868/ft2_4FGL_J1357.1+1921_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/60868/ltcube_260323201_260582401_4FGL_J1357.1+1921_daily_bin81.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/60868/ft2_4FGL_J1357.1+1921_daily_bin81.fits
.....................!
real 13.69
user 13.24
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60868/ft1_filtered_4FGL_J1357.1+1921_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/60868/ft2_4FGL_J1357.1+1921_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/60868/ltcube_260323201_260582401_4FGL_J1357.1+1921_daily_bin81.fits outfile=/scratch/kocevski/60868/expmap_260323201_260582401_4FGL_J1357.1+1921_daily_bin81.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/60868/ltcube_260323201_260582401_4FGL_J1357.1+1921_daily_bin81.fits
.....................!
real 189.87
user 185.03
sys 4.51

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/60868/ft1_filtered_4FGL_J1357.1+1921_daily_bin81.fits scfile=/scratch/kocevski/60868/ft2_4FGL_J1357.1+1921_daily_bin81.fits outfile=/scratch/kocevski/60868/cmap_260323201_260582401_4FGL_J1357.1+1921_daily_bin81.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.52
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60868/ft1_filtered_4FGL_J1357.1+1921_daily_bin81.fits scfile=/scratch/kocevski/60868/ft2_4FGL_J1357.1+1921_daily_bin81.fits outfile=/scratch/kocevski/60868/cmap_HighResolution_260323201_260582401_4FGL_J1357.1+1921_daily_bin81.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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/60868/ft1_filtered_4FGL_J1357.1+1921_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/60868/ft2_4FGL_J1357.1+1921_daily_bin81.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/60868/Model_4FGL_J1357.1+1921_daily_bin81.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/60868/ft1_filtered_4FGL_J1357.1+1921_daily_bin81.fits.....................!
real 66.22
user 64.88
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/60868/ft1_filtered_4FGL_J1357.1+1921_daily_bin81.fits', '/scratch/kocevski/60868/ft2_4FGL_J1357.1+1921_daily_bin81.fits', expMap='/scratch/kocevski/60868/expmap_260323201_260582401_4FGL_J1357.1+1921_daily_bin81.fits', expCube='/scratch/kocevski/60868/ltcube_260323201_260582401_4FGL_J1357.1+1921_daily_bin81.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/60868/Model_4FGL_J1357.1+1921_daily_bin81.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/60868/ft1_filtered_4FGL_J1357.1+1921_daily_bin81.fits
Spacecraft file(s): /scratch/kocevski/60868/ft2_4FGL_J1357.1+1921_daily_bin81.fits
Exposure map: /scratch/kocevski/60868/expmap_260323201_260582401_4FGL_J1357.1+1921_daily_bin81.fits
Exposure cube: /scratch/kocevski/60868/ltcube_260323201_260582401_4FGL_J1357.1+1921_daily_bin81.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/60868/Model_4FGL_J1357.1+1921_daily_bin81.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) = 9137.75348949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6350       1.0000         .10000E-03   10000.    
     2 'norm      '    8.3704       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.207       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7812       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.373       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4463       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .74755E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.254       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.763       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17448       1.0000         .10000E-03   10000.    
    14 'norm      '    10.252       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1197       1.0000         .10000E-03   10000.    
    16 'norm      '    .18933E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.673       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3279       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77364       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=   9137.748     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1917 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6345        9.5203        .21663E-06    .18033E-04
   2  norm          8.3714        5.8006       -.31637E-06   -.15520E-03
   3  Prefactor     .10000E-03    7.8255        .10215E-05** at limit **
   4  norm          12.208        6.7136       -.17217E-06   -.31259E-04
   5  Prefactor     4.7803        15.929        .70987E-05   -.87187E-04
   6  Prefactor     23.359        17.643        .55559E-05   -.40167E-04
   7  Prefactor     .10000E-03    12.955       -.11181E-05** at limit **
   8  Prefactor     3.4455        3.9476       -.83766E-06   -.65782E-03
   9  Prefactor     .10003E-03    1.6025       -.60389E-06** at limit **
  10  Prefactor     14.257        11.451       -.40370E-05    .65531E-04
  11  Prefactor     .10000E-03    4.4922        .39783E-06** at limit **
  12  Prefactor     13.770        13.807        .13543E-04    .19487E-03
  13  Prefactor     .92805E-01    6.2884       -.26765E-05    .21447E-03
  14  norm          10.251        2.9085       -.20158E-07   -.11468E-03
  15  Prefactor     4.1463        6.9848        .13360E-05    .39096E-03
  16  norm          .10000E-03    .94632        .79422E-06** at limit **
  17  Prefactor     22.663        35.015       -.24934E-04   -.41576E-04
  18  Normalizat    1.3277        .16031       -.12484E-06    .35096E-03
  19  Prefactor     .77387        .13047        .10711E-05    .24610E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.63453
  norm       = 8.37137
  Prefactor  = 0.0001
  norm       = 12.2076
  Prefactor  = 4.78026
  Prefactor  = 23.3591
  Prefactor  = 0.0001
  Prefactor  = 3.44554
  Prefactor  = 0.000100026
  Prefactor  = 14.2568
  Prefactor  = 0.0001
  Prefactor  = 13.77
  Prefactor  = 0.0928052
  norm       = 10.251
  Prefactor  = 4.14629
  norm       = 0.000100004
  Prefactor  = 22.6629
  Normalizat = 1.32775
  Prefactor  = 0.773868
 **********
 **   18 **HESSE 
 **********

 FCN=   9137.748     FROM HESSE     STATUS=OK           284 CALLS     2201 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6345        9.5200        .13641E-03   -1.5120    
   2  norm          8.3714        5.8032        .13856E-03   -1.5129    
   3  Prefactor     .10000E-03    7.8321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.208        6.7146        .11465E-03   -1.5009    
   5  Prefactor     4.7803        15.846        .18400E-03   -1.5271    
   6  Prefactor     23.359        17.608        .82853E-04   -1.4741    
   7  Prefactor     .10000E-03    12.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4455        3.9637        .19514E-03   -1.5337    
   9  Prefactor     .10003E-03    8.4986        .23311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.257        11.443        .10609E-03   -1.4953    
  11  Prefactor     .10000E-03    4.5521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.770        13.860        .10797E-03   -1.4966    
  13  Prefactor     .92805E-01    8.7570        .57253E-01   -1.5647    
  14  norm          10.251        2.9086        .83848E-04   -1.5068    
  15  Prefactor     4.1463        7.0228        .19861E-03   -1.5301    
  16  norm          .10000E-03    4.4066        .17727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.663        34.932        .84121E-04   -1.4755    
  18  Normalizat    1.3277        .19322        .23835E-03   -.82742    
  19  Prefactor     .77387        .15590        .25058E-03   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12041e-09
Minuit parameter uncertainties:
  1  9.52168
  2  5.80358
  3  1.78443e-06
  4  6.71505
  5  15.8596
  6  17.6124
  7  4.26083e-06
  8  3.96403
  9  0.000940063
  10  11.4443
  11  9.21448e-07
  12  13.863
  13  1.80229
  14  2.90865
  15  7.02415
  16  0.00025765
  17  34.9631
  18  0.193327
  19  0.155987
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  9.214e-07  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:  7.739e-01  1.560e-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.328e+00  1.933e-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: 5.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/60868/likelihoodResults_260323201_260582401_4FGL_J1357.1+1921_daily_bin81.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) = 9137.74917053
delta logL = -0.00104678131174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9137.74812374
delta logL = 4.46561898571e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7402       1.0000          .0000       10.000    
     3 'Normalizat'    1.3277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77391       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9137.748     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      257 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0496        .71777E-01** at limit **
   2  Index         2.4110        6.1535        .50000        .44724E-06
   3  Normalizat    1.3277        .30307E-02    .23835E-03   -.16253E-03
   4  Prefactor     .77387        .25184E-02    .25058E-03   -.14137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.41102
  Normalizat = 1.32775
  Prefactor  = 0.773869
 **********
 **   18 **HESSE 
 **********

 FCN=   9137.748     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      288 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    121.33        .34013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4110        5.7385        .50000       -.54427    
   3  Normalizat    1.3277        .19104E-01    .47670E-04   -.82742    
   4  Prefactor     .77387        .15874E-01    .10023E-04   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.24248e-09
Minuit parameter uncertainties:
  1  0.00131998
  2  517.701
  3  0.0191036
  4  0.0158741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60868': 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) = 9137.74812235
delta logL = 1.40053998621e-06

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.320e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.411e+00  5.177e+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:  7.739e-01  1.587e-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.328e+00  1.910e-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/60868/cmap_HighResolution_260323201_260582401_4FGL_J1357.1+1921_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.53e-08', time_completed='2021-09-08 18:00:36.744920', job_id='60868', GAL2='0.77', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631149236.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='81' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:00:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 60868: <4FGL_J1357.1+1921_daily_bin81> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin81> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:45:18 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:45:19 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:45:19 2021
Terminated at Wed Sep  8 18:00:37 2021
Results reported at Wed Sep  8 18:00:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin81 209.29 19.3608 260323201 260582401 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 :                                   646.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            919 sec.

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

