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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin262
RA = 209.29, Dec = 19.3608
tmin = 307238401, tmax = 307497601
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='61165', job_status='RUN', time_executed='2021-09-08 17:48:48.088725', time_epoch_executed='1631148528.09' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61165/ft1_4FGL_J1357.1+1921_daily_bin262.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61165/ft2_4FGL_J1357.1+1921_daily_bin262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61165/ft1_4FGL_J1357.1+1921_daily_bin262.fits outfile=/scratch/kocevski/61165/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin262.fits ra=209.29 dec=19.3608 rad=12.0 tmin=307238401.0 tmax=307497601.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.39
user 6.10
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61165/ft1_filtered_4FGL_J1357.1+1921_daily_bin262.fits" evtable="EVENTS" scfile=/scratch/kocevski/61165/ft2_4FGL_J1357.1+1921_daily_bin262.fits sctable="SC_DATA" outfile=/scratch/kocevski/61165/ltcube_307238401_307497601_4FGL_J1357.1+1921_daily_bin262.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/61165/ft2_4FGL_J1357.1+1921_daily_bin262.fits
.....................!
real 11.70
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61165/ft1_filtered_4FGL_J1357.1+1921_daily_bin262.fits evtable="EVENTS" scfile=/scratch/kocevski/61165/ft2_4FGL_J1357.1+1921_daily_bin262.fits sctable="SC_DATA" expcube=/scratch/kocevski/61165/ltcube_307238401_307497601_4FGL_J1357.1+1921_daily_bin262.fits outfile=/scratch/kocevski/61165/expmap_307238401_307497601_4FGL_J1357.1+1921_daily_bin262.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/61165/ltcube_307238401_307497601_4FGL_J1357.1+1921_daily_bin262.fits
.....................!
real 190.85
user 185.08
sys 5.40

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/61165/ft1_filtered_4FGL_J1357.1+1921_daily_bin262.fits scfile=/scratch/kocevski/61165/ft2_4FGL_J1357.1+1921_daily_bin262.fits outfile=/scratch/kocevski/61165/cmap_307238401_307497601_4FGL_J1357.1+1921_daily_bin262.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61165/ft1_filtered_4FGL_J1357.1+1921_daily_bin262.fits scfile=/scratch/kocevski/61165/ft2_4FGL_J1357.1+1921_daily_bin262.fits outfile=/scratch/kocevski/61165/cmap_HighResolution_307238401_307497601_4FGL_J1357.1+1921_daily_bin262.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    61.997       1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.3249       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.499       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2181       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10772E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8997       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.680       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0050       1.0000         .10000E-03   10000.    
    14 'norm      '    15.547       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10700       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.255       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2199       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89590       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=   5270.589     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1848 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          61.997        31.007       -.40098E-06   -.22248E-04
   2  norm          .10000E-03    9.1902        .37789E-05** at limit **
   3  Prefactor     .10000E-03    12.191       -.29005E-05** at limit **
   4  norm          4.3272        9.0423       -.23863E-05   -.25553E-03
   5  Prefactor     .10000E-03    28.490       -.20980E-06** at limit **
   6  Prefactor     .10000E-03    21.551        .15928E-05** at limit **
   7  Prefactor     33.443        66.165       -.89534E-04    .33050E-04
   8  Prefactor     2.2180        5.4823       -.75460E-05   -.68763E-03
   9  Prefactor     .10000E-03    8.1480       -.80851E-06** at limit **
  10  Prefactor     .10000E-03    8.3422       -.12569E-05** at limit **
  11  Prefactor     7.8874        15.125       -.85494E-05    .18149E-04
  12  Prefactor     50.665        43.773       -.18554E-04    .80142E-04
  13  Prefactor     2.0036        4.5171       -.30551E-05   -.30448E-03
  14  norm          15.546        4.4957       -.80699E-07    .26879E-03
  15  Prefactor     .10000E-03    1.9546        .70260E-07** at limit **
  16  norm          .85726E-01    1.6306       -.64918E-06    .15955E-03
  17  Prefactor     32.239        41.582       -.20242E-04    .62035E-04
  18  Normalizat    1.2195        .22071        .70287E-05    .13881E-03
  19  Prefactor     .89648        .18125        .77187E-05    .23697E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 61.9972
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.32717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.4434
  Prefactor  = 2.21803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.88742
  Prefactor  = 50.6653
  Prefactor  = 2.00358
  norm       = 15.5461
  Prefactor  = 0.0001
  norm       = 0.0857261
  Prefactor  = 32.2393
  Normalizat = 1.21945
  Prefactor  = 0.896482
 **********
 **   18 **HESSE 
 **********

 FCN=   5270.589     FROM HESSE     STATUS=OK           264 CALLS     2112 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          61.997        31.010        .50961E-04   -1.4132    
   2  norm          .10000E-03    9.3255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.3272        9.0459        .19370E-03   -1.5292    
   5  Prefactor     .10000E-03    28.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.443        66.150        .69234E-04   -1.4551    
   8  Prefactor     2.2180        5.5416        .25494E-03   -1.5410    
   9  Prefactor     .10000E-03    8.4682        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8874        15.158        .14266E-03   -1.5146    
  12  Prefactor     50.665        43.751        .56333E-04   -1.4283    
  13  Prefactor     2.0036        4.4883        .22426E-03   -1.5425    
  14  norm          15.546        4.4958        .79971E-04   -1.4919    
  15  Prefactor     .10000E-03    1.9595        .99112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .85726E-01    26.359        .17622E-02   -1.5649    
  17  Prefactor     32.239        41.518        .70553E-04   -1.4572    
  18  Normalizat    1.2195        .26826        .25915E-03   -.86004    
  19  Prefactor     .89648        .22189        .24655E-03   -.96264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4398e-09
Minuit parameter uncertainties:
  1  31.0178
  2  0.000131919
  3  6.6272e-06
  4  9.04877
  5  0.000150638
  6  0.000152296
  7  66.296
  8  5.54287
  9  9.80017e-05
  10  1.05914e-05
  11  15.1655
  12  43.7786
  13  4.489
  14  4.49594
  15  6.47112e-06
  16  3.00603
  17  41.5555
  18  0.268562
  19  0.222111
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  7.887e+00  1.517e+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:  8.965e-01  2.221e-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.219e+00  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/61165/likelihoodResults_307238401_307497601_4FGL_J1357.1+1921_daily_bin262.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) = 5270.58020687
delta logL = 0.00882639223073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5270.57889478
delta logL = 0.0101384796599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6386       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5899       1.0000          .0000       10.000    
     3 'Normalizat'    1.2233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89356       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5270.579     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      283 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6289        16.582        .68192E-03    .41836E-04
   2  Index         2.5903        1.1369        .14573E-01    .40179E-04
   3  Normalizat    1.2231        .25666        .25881E-03   -.40851E-05
   4  Prefactor     .89377        .21302        .24688E-03   -.36839E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.6289
  Index      = 2.59027
  Normalizat = 1.22306
  Prefactor  = 0.893766
 **********
 **   18 **HESSE 
 **********

 FCN=   5270.579     FROM HESSE     STATUS=OK            27 CALLS      310 TOTAL
                     EDM=   .78E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6289        16.352        .13638E-03   -1.5120    
   2  Index         2.5903        1.1219        .29146E-02   -.50287    
   3  Normalizat    1.2231        .25695        .10353E-04   -.85893    
   4  Prefactor     .89377        .21314        .98753E-05   -.96359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82827e-14
Minuit parameter uncertainties:
  1  16.36
  2  1.13456
  3  0.257217
  4  0.213338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61165': 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) = 5270.57889413
delta logL = 0.0101391246581

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  8.629e+00  1.636e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.590e+00  1.135e+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:  8.938e-01  2.133e-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.223e+00  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/61165/cmap_HighResolution_307238401_307497601_4FGL_J1357.1+1921_daily_bin262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-09-08 17:58:07.250873', job_id='61165', GAL2='0.89', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631149087.25', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.01e-02', ts2='0.34', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='262' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 61165: <4FGL_J1357.1+1921_daily_bin262> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin262 209.29 19.3608 307238401 307497601 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 :                                   510.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            745 sec.

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

