/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 2 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin826
RA = 209.29, Dec = 19.3608
tmin = 453427201, tmax = 453686401
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='64253', job_status='RUN', time_executed='2021-09-08 17:55:30.557444', time_epoch_executed='1631148930.56' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='826'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64253

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64253/ft1_4FGL_J1357.1+1921_daily_bin826.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64253/ft2_4FGL_J1357.1+1921_daily_bin826.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64253/ft1_4FGL_J1357.1+1921_daily_bin826.fits outfile=/scratch/kocevski/64253/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin826.fits ra=209.29 dec=19.3608 rad=12.0 tmin=453427201.0 tmax=453686401.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 4.04
user 3.35
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/64253/ft2_4FGL_J1357.1+1921_daily_bin826.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/64253/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin826.fits evtable="EVENTS" outfile="/scratch/kocevski/64253/ft1_filtered_4FGL_J1357.1+1921_daily_bin826.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64253/ft1_filtered_4FGL_J1357.1+1921_daily_bin826.fits" evtable="EVENTS" scfile=/scratch/kocevski/64253/ft2_4FGL_J1357.1+1921_daily_bin826.fits sctable="SC_DATA" outfile=/scratch/kocevski/64253/ltcube_453427201_453686401_4FGL_J1357.1+1921_daily_bin826.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/64253/ft2_4FGL_J1357.1+1921_daily_bin826.fits
.....................!
real 12.18
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64253/ft1_filtered_4FGL_J1357.1+1921_daily_bin826.fits evtable="EVENTS" scfile=/scratch/kocevski/64253/ft2_4FGL_J1357.1+1921_daily_bin826.fits sctable="SC_DATA" expcube=/scratch/kocevski/64253/ltcube_453427201_453686401_4FGL_J1357.1+1921_daily_bin826.fits outfile=/scratch/kocevski/64253/expmap_453427201_453686401_4FGL_J1357.1+1921_daily_bin826.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/64253/ltcube_453427201_453686401_4FGL_J1357.1+1921_daily_bin826.fits
.....................!
real 193.29
user 187.03
sys 5.50

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/64253/ft1_filtered_4FGL_J1357.1+1921_daily_bin826.fits scfile=/scratch/kocevski/64253/ft2_4FGL_J1357.1+1921_daily_bin826.fits outfile=/scratch/kocevski/64253/cmap_453427201_453686401_4FGL_J1357.1+1921_daily_bin826.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64253/ft1_filtered_4FGL_J1357.1+1921_daily_bin826.fits scfile=/scratch/kocevski/64253/ft2_4FGL_J1357.1+1921_daily_bin826.fits outfile=/scratch/kocevski/64253/cmap_HighResolution_453427201_453686401_4FGL_J1357.1+1921_daily_bin826.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0318       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7554       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.287       1.0000         .10000E-03   10000.    
     4 'norm      '    14.840       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.659       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.016       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3819       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3272       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3259       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9598       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1567       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1428       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=   6958.491     FROM MIGRAD    STATUS=CONVERGED    363 CALLS     1849 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0328        13.696        .13689E-05   -.84648E-04
   2  norm          2.7541        9.0190       -.30275E-05   -.36532E-03
   3  Prefactor     28.286        32.431       -.47453E-06    .16425E-04
   4  norm          14.843        13.045        .17379E-05   -.15509E-03
   5  Prefactor     .10000E-03    19.929       -.34569E-05** at limit **
   6  Prefactor     46.666        25.843        .67811E-05   -.72715E-03
   7  Prefactor     11.015        21.573       -.41928E-06    .65655E-05
   8  Prefactor     1.3874        4.5799       -.18208E-05   -.10498E-02
   9  Prefactor     .10000E-03    2.0001       -.24018E-06** at limit **
  10  Prefactor     .10000E-03    4.7882        .33522E-08** at limit **
  11  Prefactor     8.3280        15.660        .60906E-06   -.89214E-04
  12  Prefactor     .10000E-03    10.014       -.30354E-06** at limit **
  13  Prefactor     .10000E-03    2.9925        .12822E-06** at limit **
  14  norm          4.3259        2.9876       -.46869E-07   -.49719E-04
  15  Prefactor     .10000E-03    4.1486        .25221E-06** at limit **
  16  norm          2.9597        3.1224       -.98575E-06   -.71556E-04
  17  Prefactor     .10000E-03    19.724        .29882E-05** at limit **
  18  Normalizat    1.1566        .20633       -.70700E-06    .77278E-04
  19  Prefactor     1.1429        .16740        .53480E-06   -.24400E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.03281
  norm       = 2.75414
  Prefactor  = 28.2864
  norm       = 14.8428
  Prefactor  = 0.0001
  Prefactor  = 46.6664
  Prefactor  = 11.0154
  Prefactor  = 1.38741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.32799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.32593
  Prefactor  = 0.0001
  norm       = 2.95971
  Prefactor  = 0.0001
  Normalizat = 1.15662
  Prefactor  = 1.14287
 **********
 **   18 **HESSE 
 **********

 FCN=   6958.491     FROM HESSE     STATUS=OK           270 CALLS     2119 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0328        13.614        .20083E-03   -1.5306    
   2  norm          2.7541        9.0161        .24522E-03   -1.5376    
   3  Prefactor     28.286        32.452        .75327E-04   -1.4644    
   4  norm          14.843        12.883        .10397E-03   -1.4937    
   5  Prefactor     .10000E-03    20.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.666        24.913        .29350E-03   -1.4341    
   7  Prefactor     11.015        21.575        .12071E-03   -1.5044    
   8  Prefactor     1.3874        4.8848        .32861E-03   -1.5472    
   9  Prefactor     .10000E-03    2.0157        .11518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7992        .17826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3280        15.696        .13892E-03   -1.5131    
  12  Prefactor     .10000E-03    10.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0020        .14091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3259        2.9890        .11545E-03   -1.5292    
  15  Prefactor     .10000E-03    4.1833        .16584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9597        3.1408        .14563E-03   -1.5364    
  17  Prefactor     .10000E-03    19.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1566        .25692        .28153E-03   -.87954    
  19  Prefactor     1.1429        .20860        .23691E-03   -.88108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26359e-09
Minuit parameter uncertainties:
  1  13.6246
  2  9.02054
  3  32.4726
  4  12.8853
  5  5.13354e-05
  6  24.9183
  7  21.5899
  8  4.88624
  9  5.28656e-06
  10  6.45747e-07
  11  15.7036
  12  1.55313e-05
  13  2.18085e-06
  14  2.98915
  15  2.46486e-06
  16  3.14099
  17  0.000179395
  18  0.257201
  19  0.208745
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  8.328e+00  1.570e+01  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.143e+00  2.087e-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.157e+00  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/64253/likelihoodResults_453427201_453686401_4FGL_J1357.1+1921_daily_bin826.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): 0
logL (Free Index) = 6958.35845226
delta logL = 0.132269473687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6958.34733208
delta logL = 0.143389656989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7372       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4125       1.0000          .0000       10.000    
     3 'Normalizat'    1.1326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1558       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=   6958.347     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      252 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7375        15.474        .15459E-03   -.23681E-04
   2  Index         3.4127        1.5879        .12328E-01    .32916E-03
   3  Normalizat    1.1326        .25087        .28412E-03    .10299E-03
   4  Prefactor     1.1558        .20609        .23573E-03    .11088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.73748
  Index      = 3.41273
  Normalizat = 1.13257
  Prefactor  = 1.15584
 **********
 **   18 **HESSE 
 **********

 FCN=   6958.347     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7375        13.344        .61835E-05   -1.5189    
   2  Index         3.4127        1.3747        .24656E-02   -.32304    
   3  Normalizat    1.1326        .25141        .11365E-04   -.88713    
   4  Prefactor     1.1558        .20623        .94290E-05   -.87701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81383e-11
Minuit parameter uncertainties:
  1  13.3497
  2  1.39471
  3  0.251679
  4  0.206376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64253': 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) = 6958.34733202
delta logL = 0.143389720021

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.737e+00  1.335e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.413e+00  1.395e+00  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.156e+00  2.064e-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.133e+00  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
Ra Dec: 209.290 19.361

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/64253/cmap_HighResolution_453427201_453686401_4FGL_J1357.1+1921_daily_bin826.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', job_status='DONE', photon_flux_upper_limit='1.55e-07', time_completed='2021-09-08 18:04:54.014513', job_id='64253', GAL2='1.16', fit_tolerance='1e-08', EG2='1.13', EG='1.16', time_epoch_completed='1631149494.01', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.43e-01', ts2='0.64', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='826' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:04:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 64253: <4FGL_J1357.1+1921_daily_bin826> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin826> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:55:18 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:55:20 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:55:20 2021
Terminated at Wed Sep  8 18:04:54 2021
Results reported at Wed Sep  8 18:04:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin826 209.29 19.3608 453427201 453686401 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 :                                   558.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            576 sec.

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

