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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin1402
RA = 158.173, Dec = 37.6234
tmin = 602726401, tmax = 602985601
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='969965', job_status='RUN', time_executed='2021-09-02 03:12:41.044583', time_epoch_executed='1630577561.04' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/969965

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/969965/ft1_4FGL_J1032.6+3737_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/969965/ft2_4FGL_J1032.6+3737_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/969965/ft1_4FGL_J1032.6+3737_daily_bin1402.fits outfile=/scratch/kocevski/969965/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1402.fits ra=158.173 dec=37.6234 rad=12.0 tmin=602726401.0 tmax=602985601.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.11
user 2.89
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/969965/ft2_4FGL_J1032.6+3737_daily_bin1402.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/969965/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1402.fits evtable="EVENTS" outfile="/scratch/kocevski/969965/ft1_filtered_4FGL_J1032.6+3737_daily_bin1402.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/969965/ft1_filtered_4FGL_J1032.6+3737_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/969965/ft2_4FGL_J1032.6+3737_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/969965/ltcube_602726401_602985601_4FGL_J1032.6+3737_daily_bin1402.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/969965/ft2_4FGL_J1032.6+3737_daily_bin1402.fits
.....................!
real 18.94
user 18.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/969965/ft1_filtered_4FGL_J1032.6+3737_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/969965/ft2_4FGL_J1032.6+3737_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/969965/ltcube_602726401_602985601_4FGL_J1032.6+3737_daily_bin1402.fits outfile=/scratch/kocevski/969965/expmap_602726401_602985601_4FGL_J1032.6+3737_daily_bin1402.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/969965/ltcube_602726401_602985601_4FGL_J1032.6+3737_daily_bin1402.fits
.....................!
real 195.36
user 189.70
sys 4.27

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/969965/ft1_filtered_4FGL_J1032.6+3737_daily_bin1402.fits scfile=/scratch/kocevski/969965/ft2_4FGL_J1032.6+3737_daily_bin1402.fits outfile=/scratch/kocevski/969965/cmap_602726401_602985601_4FGL_J1032.6+3737_daily_bin1402.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/969965/ft1_filtered_4FGL_J1032.6+3737_daily_bin1402.fits scfile=/scratch/kocevski/969965/ft2_4FGL_J1032.6+3737_daily_bin1402.fits outfile=/scratch/kocevski/969965/cmap_HighResolution_602726401_602985601_4FGL_J1032.6+3737_daily_bin1402.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.56
user 0.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/969965/ft1_filtered_4FGL_J1032.6+3737_daily_bin1402.fits', '/scratch/kocevski/969965/ft2_4FGL_J1032.6+3737_daily_bin1402.fits', expMap='/scratch/kocevski/969965/expmap_602726401_602985601_4FGL_J1032.6+3737_daily_bin1402.fits', expCube='/scratch/kocevski/969965/ltcube_602726401_602985601_4FGL_J1032.6+3737_daily_bin1402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/969965/Model_4FGL_J1032.6+3737_daily_bin1402.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/969965/ft1_filtered_4FGL_J1032.6+3737_daily_bin1402.fits
Spacecraft file(s): /scratch/kocevski/969965/ft2_4FGL_J1032.6+3737_daily_bin1402.fits
Exposure map: /scratch/kocevski/969965/expmap_602726401_602985601_4FGL_J1032.6+3737_daily_bin1402.fits
Exposure cube: /scratch/kocevski/969965/ltcube_602726401_602985601_4FGL_J1032.6+3737_daily_bin1402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/969965/Model_4FGL_J1032.6+3737_daily_bin1402.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 107.167883013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 106.68638432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9778       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7820       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1921       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4647       1.0000         .10000E-03   10000.    
     5 'norm      '    6.8269       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1652       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8982       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8030       1.0000         .10000E-03   10000.    
    10 'norm      '    9.9881       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3480       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7505       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4259       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .61514       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .90780       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24893E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6085       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .69814E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14849E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .49603E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.028       1.0000         .10000E-03   10000.    
    23 'norm      '    .13429E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.227       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.8956       1.0000         .10000E-03   10000.    
    26 'norm      '    5.1109       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .38887       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .48663       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   104.8576     FROM MIGRAD    STATUS=CONVERGED    959 CALLS     1169 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9778        1.0362         .0000         .0000    
   2  Prefactor     2.7820        1.0171         .0000         .0000    
   3  Prefactor     7.1921        1.0024         .0000         .0000    
   4  Prefactor     1.4647        1.0750         .0000         .0000    
   5  norm          7.5238        1.2589       -.67499E-06   -.14870E-04
   6  Prefactor     1.0098        1.3253         .0000         .0000    
   7  Prefactor     68.653        119.69       -.39373E-04   -.48347E-03
   8  Prefactor     8.0513        2.5355       -.21251E-05   -.44168E-04
   9  Prefactor     87.182        148.88       -.43571E-04   -.94111E-03
  10  norm         10000.0        9994.2       -.87762E-03** at limit **
  11  Prefactor     .10090E-03    8116.0       -.17343E-04** at limit **
  12  Prefactor     .10241E-03    8510.6       -.48501E-05** at limit **
  13  Prefactor    10000.0        6961.6        .55020E-05** at limit **
  14  Prefactor     .10022E-03    1562.7        .22314E-04** at limit **
  15  Prefactor     .10003E-03    2093.0       -.25487E-05** at limit **
  16  Prefactor     .10000E-03    315.19       -.20837E-05** at limit **
  17  Prefactor     .10000E-03    1062.2        .39909E-05** at limit **
  18  Prefactor     .10000E-03    81.528        .35504E-06** at limit **
  19  norm          .10000E-03    1.3933       -.66489E-06** at limit **
  20  Prefactor     .10000E-03    129.36       -.13652E-04** at limit **
  21  Prefactor     .10000E-03    64.068        .11614E-05** at limit **
  22  Prefactor     .10000E-03    132.85        .24876E-05** at limit **
  23  norm          .10000E-03    68.879       -.10187E-06** at limit **
  24  Prefactor     21.491        21.106       -.32842E-05   -.15594E-03
  25  Prefactor     .10008E-03    1639.8       -.37061E-04** at limit **
  26  norm          6.7008        14.753        .24418E-05   -.14040E-03
  27  Normalizat    .10000E-01    1.3611        .69352E-05** at limit **
  28  Prefactor     .45900        .59283       -.43770E-04    .73066E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97778
  Prefactor  = 2.78201
  Prefactor  = 7.19212
  Prefactor  = 1.46472
  norm       = 7.52379
  Prefactor  = 1.00983
  Prefactor  = 68.6526
  Prefactor  = 8.0513
  Prefactor  = 87.1824
  norm       = 10000
  Prefactor  = 0.000100897
  Prefactor  = 0.00010241
  Prefactor  = 10000
  Prefactor  = 0.000100216
  Prefactor  = 0.000100026
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 21.4908
  Prefactor  = 0.000100083
  norm       = 6.70079
  Normalizat = 0.0100005
  Prefactor  = 0.459002
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   104.8576     FROM HESSE     STATUS=FAILED         9 CALLS     1178 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          569.36        567.24         .0000       -1.5427    
   2  Prefactor     2.7820        1.0171         .0000       -1.5374    
   3  Prefactor     7.1921        1.0024         .0000       -1.5172    
   4  Prefactor     1.4647        1.0750         .0000       -1.5466    
   5  norm          7.5238        1.0526       -.67499E-06   -1.5159    
   6  Prefactor     1.0098        1.3253         .0000       -1.5507    
   7  Prefactor     68.653        8.7947       -.39373E-04   -1.4049    
   8  Prefactor     8.0513        1.1725       -.21251E-05   -1.5140    
   9  Prefactor     87.182        7.2344       -.43571E-04   -1.3838    
  10  norm         10000.0        .25118E-01   -.87762E-03    1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10090E-03    .58305E-01   -.17343E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10241E-03    .32417E-01   -.48501E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        .57252E-01    .55020E-05    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10022E-03    .34411        .22314E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    .41189       -.25487E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20916       -.20837E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .44961E-01    .39909E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .21932        .35504E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .20571       -.66489E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .26211       -.13652E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .21474        .11614E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .61194E-02    .24876E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .20657       -.10187E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.491        .96220       -.32842E-05   -1.4780    
  25  Prefactor     .10008E-03    .36473E-01   -.37061E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.7008        1.1505        .24418E-05   -1.6226    
  27  Normalizat    .10000E-01    .35570        .69352E-05   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .45900        .80499       -.43770E-04   -2.0026    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.11374e-09
Minuit parameter uncertainties:
  1  1.03618
  2  1.01714
  3  1.00244
  4  1.075
  5  1.05261
  6  1.32538
  7  8.79482
  8  1.17247
  9  7.2345
  10  0.0100787
  11  0.000457461
  12  0.000559048
  13  0.000689014
  14  0.00054572
  15  0.000207827
  16  5.46898e-05
  17  2.00285e-05
  18  1.7375e-05
  19  1.26268e-05
  20  5.35068e-05
  21  8.59448e-06
  22  6.48031e-06
  23  1.77358e-06
  24  0.962202
  25  0.00011006
  26  1.1505
  27  0.000816622
  28  0.826291
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 104.85761966

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.024e-04  5.590e-04  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:  4.590e-01  8.263e-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.000e-02  8.166e-04  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.565621243834

TS (Fixed Index): -0.00
Ra Dec: 158.173 37.623
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.55e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/969965/likelihoodResults_602726401_602985601_4FGL_J1032.6+3737_daily_bin1402.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) = 104.85794497
delta logL = -0.000325309894478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 104.85794497
delta logL = -0.000325309448201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.0749       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=   104.8579     FROM MIGRAD    STATUS=CONVERGED     26 CALLS       91 TOTAL
                     EDM=   .47E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 18.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.2776        9.2348       -.21468        .20687E-07
                               ERR DEF=  .500    
Final values: 
  Index      = 1.27763
 **********
 **   18 **HESSE 
 **********

 FCN=   104.8579     FROM HESSE     STATUS=OK            11 CALLS      102 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       1.2776        5.5803        .50000       -.83975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30047e-11
Minuit parameter uncertainties:
  1  758.26
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/969965': 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) = 104.857944744
delta logL = -0.000325083752159

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  9.634e-03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
317        Index:  1.278e+00  7.583e+02  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:  4.541e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/969965/cmap_HighResolution_602726401_602985601_4FGL_J1032.6+3737_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.55e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-02 03:18:45.075442', job_id='969965', GAL2='0.45', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630577925.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.46', dlogl='-3.25e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1402' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:18:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 969965: <4FGL_J1032.6+3737_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin1402> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 03:05:35 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:08:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 03:08:51 2021
Terminated at Thu Sep  2 03:18:45 2021
Results reported at Thu Sep  2 03:18:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin1402 158.173 37.6234 602726401 602985601 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 :                                   341.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             228.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            790 sec.

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

