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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin738
RA = 158.173, Dec = 37.6234
tmin = 430617601, tmax = 430876801
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='965136', job_status='RUN', time_executed='2021-09-02 02:53:31.832530', time_epoch_executed='1630576411.83' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/965136

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/965136/ft1_4FGL_J1032.6+3737_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/965136/ft2_4FGL_J1032.6+3737_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/965136/ft1_4FGL_J1032.6+3737_daily_bin738.fits outfile=/scratch/kocevski/965136/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin738.fits ra=158.173 dec=37.6234 rad=12.0 tmin=430617601.0 tmax=430876801.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 5.42
user 5.17
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/965136/ft2_4FGL_J1032.6+3737_daily_bin738.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/965136/ft2_4FGL_J1032.6+3737_daily_bin738.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/965136/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin738.fits evtable="EVENTS" outfile="/scratch/kocevski/965136/ft1_filtered_4FGL_J1032.6+3737_daily_bin738.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.54
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/965136/ft1_filtered_4FGL_J1032.6+3737_daily_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/965136/ft2_4FGL_J1032.6+3737_daily_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/965136/ltcube_430617601_430876801_4FGL_J1032.6+3737_daily_bin738.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/965136/ft2_4FGL_J1032.6+3737_daily_bin738.fits
.....................!
real 16.90
user 16.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/965136/ft1_filtered_4FGL_J1032.6+3737_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/965136/ft2_4FGL_J1032.6+3737_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/965136/ltcube_430617601_430876801_4FGL_J1032.6+3737_daily_bin738.fits outfile=/scratch/kocevski/965136/expmap_430617601_430876801_4FGL_J1032.6+3737_daily_bin738.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/965136/ltcube_430617601_430876801_4FGL_J1032.6+3737_daily_bin738.fits
.....................!
real 191.83
user 186.99
sys 4.43

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 204 point sources and 0 extended sources

Setting source of interest to:
4FGL J1032.6+3737 @ 158.173 37.6234

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/965136/ft1_filtered_4FGL_J1032.6+3737_daily_bin738.fits scfile=/scratch/kocevski/965136/ft2_4FGL_J1032.6+3737_daily_bin738.fits outfile=/scratch/kocevski/965136/cmap_430617601_430876801_4FGL_J1032.6+3737_daily_bin738.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=158.173 yref=37.6234 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.58
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/965136/ft1_filtered_4FGL_J1032.6+3737_daily_bin738.fits scfile=/scratch/kocevski/965136/ft2_4FGL_J1032.6+3737_daily_bin738.fits outfile=/scratch/kocevski/965136/cmap_HighResolution_430617601_430876801_4FGL_J1032.6+3737_daily_bin738.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=158.173 yref=37.6234 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.59
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/965136/ft1_filtered_4FGL_J1032.6+3737_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/965136/ft2_4FGL_J1032.6+3737_daily_bin738.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/965136/Model_4FGL_J1032.6+3737_daily_bin738.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/965136/ft1_filtered_4FGL_J1032.6+3737_daily_bin738.fits.....................!
real 38.34
user 37.05
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/965136/ft1_filtered_4FGL_J1032.6+3737_daily_bin738.fits', '/scratch/kocevski/965136/ft2_4FGL_J1032.6+3737_daily_bin738.fits', expMap='/scratch/kocevski/965136/expmap_430617601_430876801_4FGL_J1032.6+3737_daily_bin738.fits', expCube='/scratch/kocevski/965136/ltcube_430617601_430876801_4FGL_J1032.6+3737_daily_bin738.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/965136/Model_4FGL_J1032.6+3737_daily_bin738.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1032.6+3737'

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  7.905e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  2.076e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/965136/ft1_filtered_4FGL_J1032.6+3737_daily_bin738.fits
Spacecraft file(s): /scratch/kocevski/965136/ft2_4FGL_J1032.6+3737_daily_bin738.fits
Exposure map: /scratch/kocevski/965136/expmap_430617601_430876801_4FGL_J1032.6+3737_daily_bin738.fits
Exposure cube: /scratch/kocevski/965136/ltcube_430617601_430876801_4FGL_J1032.6+3737_daily_bin738.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/965136/Model_4FGL_J1032.6+3737_daily_bin738.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) = 3814.20555269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10603E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.168       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .44726E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .90697       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4850       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10954E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9398       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9612       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .91746       1.0000         .10000E-03   10000.    
    19 'norm      '    .42585       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18425E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8725       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.0105       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .12240E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2154       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .56326       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3814.142     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3586 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.948       -.21182E-05** at limit **
   2  Prefactor     .10000E-03    42.983       -.20386E-05** at limit **
   3  Prefactor     20.189        39.286        .28129E-05    .64804E-04
   4  Prefactor     .10764E-03    7.9539       -.12112E-05** at limit **
   5  norm          .10000E-03    5.1411       -.26106E-08** at limit **
   6  Prefactor     .90699        2.4207        .29963E-06    .14017E-03
   7  Prefactor     2.4867        4.0621        .20272E-06    .88388E-04
   8  Prefactor     .10000E-03    31.226        .27817E-05** at limit **
   9  Prefactor     .10000E-03    2.1830        .22628E-07** at limit **
  10  norm          2.9172        12.140       -.74399E-06   -.75553E-04
  11  Prefactor     .10000E-03    42.752       -.11397E-05** at limit **
  12  Prefactor     .10000E-03    13.786        .63670E-06** at limit **
  13  Prefactor     1.9681        5.4617        .52133E-06    .32430E-04
  14  Prefactor     .10000E-03    2.8874        .41430E-07** at limit **
  15  Prefactor     .10000E-03    11.331       -.51847E-08** at limit **
  16  Prefactor     .10000E-03    14.279       -.85767E-06** at limit **
  17  Prefactor     .10000E-03    55.683        .20431E-05** at limit **
  18  Prefactor     .91884        30.419        .58496E-05    .11838E-03
  19  norm          .42576        .24901       -.10222E-07   -.31382E-03
  20  Prefactor     .25749E-01    7.8733       -.40788E-05    .10815E-02
  21  Prefactor     .10000E-03    15.662        .42936E-06** at limit **
  22  Prefactor     .10000E-03    6.1089        .79959E-08** at limit **
  23  norm          2.8709        9.1123        .58987E-05    .65391E-03
  24  Prefactor     1.0027        2.6536        .27083E-06    .33414E-03
  25  Prefactor     .10000E-03    118.04       -.79785E-06** at limit **
  26  norm          .10000E-03    2.4392       -.85752E-07** at limit **
  27  Normalizat    1.2153        .19522       -.52981E-06    .18146E-03
  28  Prefactor     .56336        .22269       -.74694E-06    .66048E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1892
  Prefactor  = 0.000107639
  norm       = 0.0001
  Prefactor  = 0.906993
  Prefactor  = 2.48674
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.91716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.96813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.91884
  norm       = 0.425762
  Prefactor  = 0.0257488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.87087
  Prefactor  = 1.00268
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.21533
  Prefactor  = 0.563358
 **********
 **   18 **HESSE 
 **********

 FCN=   3814.142     FROM HESSE     STATUS=OK           537 CALLS     4123 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.189        39.661        .89188E-04   -1.4809    
   4  Prefactor     .10764E-03    15.497        .54673E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.1493        .13677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .90699        2.3752        .14955E-03   -1.5517    
   7  Prefactor     2.4867        4.0381        .14938E-03   -1.5393    
   8  Prefactor     .10000E-03    31.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1903        .88921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9172        11.753        .23689E-03   -1.5366    
  11  Prefactor     .10000E-03    42.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9681        5.3597        .21120E-03   -1.5427    
  14  Prefactor     .10000E-03    2.9111        .10244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    55.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .91884        113.68        .47628E-02   -1.5516    
  19  norm          .42576        .24853        .22782E-04   -1.5577    
  20  Prefactor     .25749E-01    9.2661        .35427E-01   -1.5676    
  21  Prefactor     .10000E-03    15.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.1122        .14908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8709        9.2486        .11991E-02   -1.5369    
  24  Prefactor     1.0027        2.2986        .14966E-02   -1.5508    
  25  Prefactor     .10000E-03    118.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    8.4896        .17810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2153        .22396        .18598E-03   -.86130    
  28  Prefactor     .56336        .25365        .31575E-03   -1.0915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86885e-09
Minuit parameter uncertainties:
  1  9.31854e-06
  2  1.9798e-05
  3  39.7123
  4  0.0217657
  5  6.4074e-08
  6  2.37549
  7  4.03856
  8  0.000256894
  9  2.25416e-06
  10  11.7145
  11  0.000144694
  12  2.74756e-05
  13  5.361
  14  4.77971e-06
  15  8.99396e-07
  16  6.11949e-05
  17  0.000230158
  18  20.4792
  19  0.248533
  20  0.975171
  21  2.42744e-05
  22  3.22476e-07
  23  9.25323
  24  2.29882
  25  4.73977e-05
  26  3.34446e-05
  27  0.224136
  28  0.254165
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  2.748e-05  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  2.076e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  5.634e-01  2.542e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.215e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 158.173 37.623
Photon Flux Upper Limit: 5.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/965136/likelihoodResults_430617601_430876801_4FGL_J1032.6+3737_daily_bin738.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) = 3814.14213769
delta logL = -0.000344528045844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3814.14179376
delta logL = -5.93335698795e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3814.142     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1530.6        .90712E-02** at limit **
   2  Index         2.0313        8.8862        .50000        .12243E-04
   3  Normalizat    1.2153        .55924E-01    .34523E-01    .15677E-04
   4  Prefactor     .56336        .67195E-01    .71329E-01    .27065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.03134
  Normalizat = 1.21533
  Prefactor  = 0.563359
 **********
 **   18 **HESSE 
 **********

 FCN=   3814.142     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      237 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1211.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0313        7.9354        .50000       -.63569    
   3  Normalizat    1.2153        .47304E-01    .18598E-03   -.86130    
   4  Prefactor     .56336        .56726E-01    .31576E-03   -1.0915    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04472e-08
Minuit parameter uncertainties:
  1  0.00170461
  2  37.8527
  3  0.0473052
  4  0.0567316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/965136': 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) = 3814.14179302
delta logL = 1.39841176861e-07

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.705e-03  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  2.031e+00  3.785e+01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  5.634e-01  5.673e-02  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.215e+00  4.731e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 158.173 37.623

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/965136/cmap_HighResolution_430617601_430876801_4FGL_J1032.6+3737_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2021-09-02 03:04:52.730919', job_id='965136', GAL2='0.56', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630577092.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='1.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='738' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:04:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 965136: <4FGL_J1032.6+3737_daily_bin738> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin738> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 02:50:44 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 02:53:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 02:53:18 2021
Terminated at Thu Sep  2 03:04:53 2021
Results reported at Thu Sep  2 03:04:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin738 158.173 37.6234 430617601 430876801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1032.6+3737 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   678.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            849 sec.

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

