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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1590
RA = 9.234, Dec = 18.5424
tmin = 651456001, tmax = 651715201
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='220063', job_status='RUN', time_executed='2021-08-27 00:02:41.651841', time_epoch_executed='1630047761.65' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220063

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220063/ft1_4FGL_J0036.9+1832_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220063/ft2_4FGL_J0036.9+1832_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220063/ft1_4FGL_J0036.9+1832_daily_bin1590.fits outfile=/scratch/kocevski/220063/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1590.fits ra=9.234 dec=18.5424 rad=12.0 tmin=651456001.0 tmax=651715201.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 3.78
user 3.26
sys 0.45

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/220063/ft2_4FGL_J0036.9+1832_daily_bin1590.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/220063/ft2_4FGL_J0036.9+1832_daily_bin1590.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/220063/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1590.fits evtable="EVENTS" outfile="/scratch/kocevski/220063/ft1_filtered_4FGL_J0036.9+1832_daily_bin1590.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.90
user 0.32
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/220063/ft1_filtered_4FGL_J0036.9+1832_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/220063/ft2_4FGL_J0036.9+1832_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/220063/ltcube_651456001_651715201_4FGL_J0036.9+1832_daily_bin1590.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/220063/ft2_4FGL_J0036.9+1832_daily_bin1590.fits
.....................!
real 12.13
user 11.28
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220063/ft1_filtered_4FGL_J0036.9+1832_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/220063/ft2_4FGL_J0036.9+1832_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/220063/ltcube_651456001_651715201_4FGL_J0036.9+1832_daily_bin1590.fits outfile=/scratch/kocevski/220063/expmap_651456001_651715201_4FGL_J0036.9+1832_daily_bin1590.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/220063/ltcube_651456001_651715201_4FGL_J0036.9+1832_daily_bin1590.fits
.....................!
real 192.21
user 185.61
sys 4.99

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 J0036.9+1832 @ 9.234 18.5424

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/220063/ft1_filtered_4FGL_J0036.9+1832_daily_bin1590.fits scfile=/scratch/kocevski/220063/ft2_4FGL_J0036.9+1832_daily_bin1590.fits outfile=/scratch/kocevski/220063/cmap_651456001_651715201_4FGL_J0036.9+1832_daily_bin1590.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=9.234 yref=18.5424 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.79
user 0.37
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/220063/ft1_filtered_4FGL_J0036.9+1832_daily_bin1590.fits scfile=/scratch/kocevski/220063/ft2_4FGL_J0036.9+1832_daily_bin1590.fits outfile=/scratch/kocevski/220063/cmap_HighResolution_651456001_651715201_4FGL_J0036.9+1832_daily_bin1590.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=9.234 yref=18.5424 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.79
user 0.36
sys 0.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/220063/ft1_filtered_4FGL_J0036.9+1832_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/220063/ft2_4FGL_J0036.9+1832_daily_bin1590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/220063/Model_4FGL_J0036.9+1832_daily_bin1590.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/220063/ft1_filtered_4FGL_J0036.9+1832_daily_bin1590.fits.....................!
real 73.01
user 70.90
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/220063/ft1_filtered_4FGL_J0036.9+1832_daily_bin1590.fits', '/scratch/kocevski/220063/ft2_4FGL_J0036.9+1832_daily_bin1590.fits', expMap='/scratch/kocevski/220063/expmap_651456001_651715201_4FGL_J0036.9+1832_daily_bin1590.fits', expCube='/scratch/kocevski/220063/ltcube_651456001_651715201_4FGL_J0036.9+1832_daily_bin1590.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/220063/Model_4FGL_J0036.9+1832_daily_bin1590.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0036.9+1832'

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  4.389e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
142        Scale:  9.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/220063/ft1_filtered_4FGL_J0036.9+1832_daily_bin1590.fits
Spacecraft file(s): /scratch/kocevski/220063/ft2_4FGL_J0036.9+1832_daily_bin1590.fits
Exposure map: /scratch/kocevski/220063/expmap_651456001_651715201_4FGL_J0036.9+1832_daily_bin1590.fits
Exposure cube: /scratch/kocevski/220063/ltcube_651456001_651715201_4FGL_J0036.9+1832_daily_bin1590.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/220063/Model_4FGL_J0036.9+1832_daily_bin1590.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) = 6746.14359356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4543       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1202       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.4936       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1899       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5474       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.341       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .36526       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5088       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2935       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0556       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97788       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6746.143     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2351 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4539        3.2850         .0000        .23690E-03
   2  Prefactor     .10001E-03    10.353         .0000    ** at limit **
   3  Prefactor     .10000E-03    5.8763         .0000    ** at limit **
   4  Prefactor     .10000E-03    12.766         .0000    ** at limit **
   5  Prefactor     4.1201        2.9711         .0000        .19830E-03
   6  norm          .10000E-03    3.2831         .0000    ** at limit **
   7  Prefactor     .10000E-03    9.1888         .0000    ** at limit **
   8  Prefactor     .10000E-03    7.4162         .0000    ** at limit **
   9  norm          6.4932        6.8216         .0000        .80712E-04
  10  Prefactor     6.1902        4.8792         .0000       -.51113E-03
  11  Prefactor     1.5468        15.238         .0000        .38366E-03
  12  Prefactor     14.340        48.090         .0000        .24023E-03
  13  Prefactor     .10000E-03    37.932         .0000    ** at limit **
  14  norm          .36520        .35904         .0000       -.28354E-03
  15  Prefactor     .10000E-03    4.1003         .0000    ** at limit **
  16  Prefactor     .10000E-03    19.979         .0000    ** at limit **
  17  Prefactor     1.5057        5.7138         .0000        .10512E-02
  18  Prefactor     1.2942        6.2766         .0000        .27822E-01
  19  Normalizat    1.0555        .18627         .0000        .26678E-04
  20  Prefactor     .97791        .12664         .0000        .31814E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.45389
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 4.12009
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 6.4932
  Prefactor  = 6.19019
  Prefactor  = 1.54679
  Prefactor  = 14.3403
  Prefactor  = 0.0001
  norm       = 0.365198
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.50571
  Prefactor  = 1.29416
  Normalizat = 1.05553
  Prefactor  = 0.977907
 **********
 **   18 **HESSE 
 **********

 FCN=   6746.143     FROM HESSE     STATUS=OK           291 CALLS     2642 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4539        3.2820        .10119E-03   -1.5200    
   2  Prefactor     .10001E-03    10.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1201        2.9689        .11593E-03   -1.5302    
   6  norm          .10000E-03    3.2882        .14534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.4932        6.8040        .15749E-03   -1.5198    
  10  Prefactor     6.1902        4.8796        .15622E-03   -1.5210    
  11  Prefactor     1.5468        15.281        .34252E-03   -1.5459    
  12  Prefactor     14.340        48.121        .10577E-03   -1.4950    
  13  Prefactor     .10000E-03    38.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .36520        .36233        .46794E-04   -1.5587    
  15  Prefactor     .10000E-03    4.1056        .16241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5057        5.6874        .34828E-03   -1.5463    
  18  Prefactor     1.2942        6.2833        .19456E-02   -1.5480    
  19  Normalizat    1.0555        .22059        .27587E-03   -.91193    
  20  Prefactor     .97791        .15058        .19887E-03   -.93470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88799e-09
Minuit parameter uncertainties:
  1  3.28213
  2  0.000664791
  3  5.43839e-06
  4  0.000439779
  5  2.96896
  6  1.99096e-06
  7  0.000422545
  8  5.76495e-05
  9  6.80484
  10  4.87993
  11  9.7263
  12  48.2513
  13  4.71026e-07
  14  0.362329
  15  4.77546e-06
  16  0.000224514
  17  5.68944
  18  5.70395
  19  0.220783
  20  0.150649
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  4.225e-04  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
142        Scale:  9.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  9.779e-01  1.506e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.056e+00  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 9.234 18.542
Photon Flux Upper Limit: 6.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/220063/likelihoodResults_651456001_651715201_4FGL_J0036.9+1832_daily_bin1590.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) = 6746.14340554
delta logL = -0.000517735550602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6746.14288918
delta logL = -1.38405266625e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3535       1.0000          .0000       10.000    
     3 'Normalizat'    1.0554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97788       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+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=   6746.143     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      246 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10364E-03    9.7166        .18142E-01** at limit **
   2  Index         2.2584        5.4881        .50000        .21661E-04
   3  Normalizat    1.0555        .44945E-02    .27587E-03   -.53162E-05
   4  Prefactor     .97791        .31494E-02    .19887E-03   -.11719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103635
  Index      = 2.25839
  Normalizat = 1.05553
  Prefactor  = 0.977907
 **********
 **   18 **HESSE 
 **********

 FCN=   6746.143     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 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     .10364E-03    73.226        .26138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2584        5.7781        .50000       -.58036    
   3  Normalizat    1.0555        .12389E-01    .11035E-04   -.91193    
   4  Prefactor     .97791        .86817E-02    .79549E-05   -.93470    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.15608e-09
Minuit parameter uncertainties:
  1  0.0326712
  2  290.892
  3  0.0123894
  4  0.00868174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220063': 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) = 6746.14288722
delta logL = 5.81765561947e-07

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.036e-04  3.267e-02  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.258e+00  2.909e+02  0.000e+00  1.000e+01 (-1.000e+00)
142        Scale:  9.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  9.779e-01  8.682e-03  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.056e+00  1.239e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 9.234 18.542

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/220063/cmap_HighResolution_651456001_651715201_4FGL_J0036.9+1832_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='6.08e-08', time_completed='2021-08-27 00:12:52.564358', job_id='220063', GAL2='0.98', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630048372.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1590' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 00:12:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 220063: <4FGL_J0036.9+1832_daily_bin1590> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1590> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 00:00:25 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 00:00:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 00:00:27 2021
Terminated at Fri Aug 27 00:12:53 2021
Results reported at Fri Aug 27 00:12:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1590 9.234 18.5424 651456001 651715201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0036.9+1832 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   615.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             327.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            748 sec.

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

