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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin443
RA = 158.173, Dec = 37.6234
tmin = 354153601, tmax = 354412801
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='963228', job_status='RUN', time_executed='2021-09-02 02:45:49.030476', time_epoch_executed='1630575949.03' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963228/ft1_4FGL_J1032.6+3737_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963228/ft2_4FGL_J1032.6+3737_daily_bin443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963228/ft1_4FGL_J1032.6+3737_daily_bin443.fits outfile=/scratch/kocevski/963228/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin443.fits ra=158.173 dec=37.6234 rad=12.0 tmin=354153601.0 tmax=354412801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.06
user 3.83
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963228/ft1_filtered_4FGL_J1032.6+3737_daily_bin443.fits" evtable="EVENTS" scfile=/scratch/kocevski/963228/ft2_4FGL_J1032.6+3737_daily_bin443.fits sctable="SC_DATA" outfile=/scratch/kocevski/963228/ltcube_354153601_354412801_4FGL_J1032.6+3737_daily_bin443.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/963228/ft2_4FGL_J1032.6+3737_daily_bin443.fits
.....................!
real 21.87
user 15.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963228/ft1_filtered_4FGL_J1032.6+3737_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/963228/ft2_4FGL_J1032.6+3737_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/963228/ltcube_354153601_354412801_4FGL_J1032.6+3737_daily_bin443.fits outfile=/scratch/kocevski/963228/expmap_354153601_354412801_4FGL_J1032.6+3737_daily_bin443.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/963228/ltcube_354153601_354412801_4FGL_J1032.6+3737_daily_bin443.fits
.....................!
real 192.17
user 187.38
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/963228/ft1_filtered_4FGL_J1032.6+3737_daily_bin443.fits scfile=/scratch/kocevski/963228/ft2_4FGL_J1032.6+3737_daily_bin443.fits outfile=/scratch/kocevski/963228/cmap_354153601_354412801_4FGL_J1032.6+3737_daily_bin443.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963228/ft1_filtered_4FGL_J1032.6+3737_daily_bin443.fits scfile=/scratch/kocevski/963228/ft2_4FGL_J1032.6+3737_daily_bin443.fits outfile=/scratch/kocevski/963228/cmap_HighResolution_354153601_354412801_4FGL_J1032.6+3737_daily_bin443.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.57
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/963228/ft1_filtered_4FGL_J1032.6+3737_daily_bin443.fits', '/scratch/kocevski/963228/ft2_4FGL_J1032.6+3737_daily_bin443.fits', expMap='/scratch/kocevski/963228/expmap_354153601_354412801_4FGL_J1032.6+3737_daily_bin443.fits', expCube='/scratch/kocevski/963228/ltcube_354153601_354412801_4FGL_J1032.6+3737_daily_bin443.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/963228/Model_4FGL_J1032.6+3737_daily_bin443.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/963228/ft1_filtered_4FGL_J1032.6+3737_daily_bin443.fits
Spacecraft file(s): /scratch/kocevski/963228/ft2_4FGL_J1032.6+3737_daily_bin443.fits
Exposure map: /scratch/kocevski/963228/expmap_354153601_354412801_4FGL_J1032.6+3737_daily_bin443.fits
Exposure cube: /scratch/kocevski/963228/ltcube_354153601_354412801_4FGL_J1032.6+3737_daily_bin443.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/963228/Model_4FGL_J1032.6+3737_daily_bin443.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) = 5162.8870362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7692       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16037E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4926       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9907       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58383       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.300       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5687       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    107.18       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.560       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10796E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.066       1.0000         .10000E-03   10000.    
    19 'norm      '    .82183       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    18.350       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0062       1.0000         .10000E-03   10000.    
    26 'norm      '    3.6231       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .82695       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .96825       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=   5162.846     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3533 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7576        14.660       -.57697E-05   -.25482E-03
   2  Prefactor     .10000E-03    14.979        .25381E-05** at limit **
   3  Prefactor     .10002E-03    263.60       -.67880E-04** at limit **
   4  Prefactor     .10000E-03    7.7460        .44091E-06** at limit **
   5  norm          5.4930        14.179       -.35323E-06    .38597E-04
   6  Prefactor     3.9920        3.3994        .72299E-07    .47741E-03
   7  Prefactor     .58349        2.5720       -.31655E-05    .27141E-03
   8  Prefactor     10.299        26.647       -.12816E-05    .18328E-04
   9  Prefactor     3.5692        4.1187        .12667E-05    .12022E-02
  10  norm          .10000E-03    2.7886        .64438E-07** at limit **
  11  Prefactor     107.21        67.333       -.46488E-05   -.26670E-04
  12  Prefactor     .10000E-03    7.7968       -.24287E-06** at limit **
  13  Prefactor     1.1299        2.5245       -.63692E-06    .24400E-03
  14  Prefactor     .10000E-03    1.3260        .72942E-08** at limit **
  15  Prefactor     .10000E-03    11.397        .39538E-06** at limit **
  16  Prefactor     11.563        14.009       -.20422E-06    .22435E-04
  17  Prefactor     .10000E-03    47.602       -.19436E-06** at limit **
  18  Prefactor     16.074        12.783       -.72640E-06    .60919E-04
  19  norm          .82187        .27115        .26686E-08    .15854E-02
  20  Prefactor     .10000E-03    2.0877       -.22664E-06** at limit **
  21  Prefactor     .10000E-03    14.553       -.23112E-05** at limit **
  22  Prefactor     .10000E-03    7.1688        .71368E-07** at limit **
  23  norm          18.355        12.939       -.81489E-06    .14690E-03
  24  Prefactor     .10000E-03    .70422        .38303E-06** at limit **
  25  Prefactor     2.0627        64.911        .78041E-05    .30109E-04
  26  norm          3.6216        2.8193       -.14786E-06   -.50156E-03
  27  Normalizat    .82686        .16554       -.47073E-06    .14607E-04
  28  Prefactor     .96826        .19793        .56437E-06    .20243E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.75759
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 5.49301
  Prefactor  = 3.99204
  Prefactor  = 0.583492
  Prefactor  = 10.2987
  Prefactor  = 3.56924
  norm       = 0.0001
  Prefactor  = 107.212
  Prefactor  = 0.0001
  Prefactor  = 1.12988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5631
  Prefactor  = 0.0001
  Prefactor  = 16.0738
  norm       = 0.821872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.3548
  Prefactor  = 0.0001
  Prefactor  = 2.06272
  norm       = 3.62158
  Normalizat = 0.826864
  Prefactor  = 0.968259
 **********
 **   18 **HESSE 
 **********

 FCN=   5162.846     FROM HESSE     STATUS=OK           523 CALLS     4056 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7576        13.698        .18424E-03   -1.5272    
   2  Prefactor     .10000E-03    15.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    255.00        .76007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4930        14.197        .17144E-03   -1.5239    
   6  Prefactor     3.9920        3.3942        .11599E-03   -1.5308    
   7  Prefactor     .58349        2.4901        .20980E-03   -1.5555    
   8  Prefactor     10.299        26.639        .12485E-03   -1.5066    
   9  Prefactor     3.5692        4.0697        .13915E-03   -1.5330    
  10  norm          .10000E-03    2.7966        .11716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     107.21        67.613        .19423E-03   -1.3633    
  12  Prefactor     .10000E-03    7.7992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1299        2.4566        .16421E-03   -1.5495    
  14  Prefactor     .10000E-03    1.3298        .80789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.563        14.006        .11783E-03   -1.5028    
  17  Prefactor     .10000E-03    47.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.074        12.743        .99924E-04   -1.4906    
  19  norm          .82187        .27114        .20735E-04   -1.5527    
  20  Prefactor     .10000E-03    2.1147        .10105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.1860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          18.355        12.897        .93498E-04   -1.4851    
  24  Prefactor     .10000E-03    .70437        .58650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.0627        66.315        .29233E-03   -1.5421    
  26  norm          3.6216        2.8021        .99214E-04   -1.5327    
  27  Normalizat    .82686        .18948        .22794E-03   -.99080    
  28  Prefactor     .96826        .22838        .26299E-03   -.93795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71383e-09
Minuit parameter uncertainties:
  1  13.7073
  2  0.000136669
  3  0.00451554
  4  3.73429e-05
  5  14.2055
  6  3.39439
  7  2.41071
  8  26.6693
  9  4.07006
  10  7.18116e-06
  11  67.6621
  12  9.93705e-07
  13  2.45684
  14  3.12104e-06
  15  2.18785e-05
  16  14.0095
  17  4.27281e-05
  18  12.7455
  19  0.271141
  20  4.86728e-05
  21  0.000153585
  22  1.92739e-05
  23  12.8992
  24  2.49936e-05
  25  23.4191
  26  2.80221
  27  0.189628
  28  0.228608
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  9.937e-07  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:  9.683e-01  2.286e-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:  8.269e-01  1.896e-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: 3.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/963228/likelihoodResults_354153601_354412801_4FGL_J1032.6+3737_daily_bin443.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) = 5162.84709424
delta logL = -0.000607187623245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5162.84648744
delta logL = -3.91434696212e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0437       1.0000          .0000       10.000    
     3 'Normalizat'    .82706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96801       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5162.846     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      232 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10154E-03    51.889        .18142E-02** at limit **
   2  Index         1.9867        6.6755        .50000        .27770E-04
   3  Normalizat    .82686        .97505E-02    .22794E-03    .26898E-03
   4  Prefactor     .96826        .12155E-01    .26299E-03    .27717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101542
  Index      = 1.98666
  Normalizat = 0.826864
  Prefactor  = 0.96826
 **********
 **   18 **HESSE 
 **********

 FCN=   5162.846     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      261 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10154E-03    226.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9867        7.1147        .50000       -.64684    
   3  Normalizat    .82686        .20900E-01    .45588E-04   -.99080    
   4  Prefactor     .96826        .26052E-01    .52598E-04   -.93795    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.75357e-08
Minuit parameter uncertainties:
  1  0.0375477
  2  336.84
  3  0.0209001
  4  0.0260527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963228': 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) = 5162.84648646
delta logL = 5.88572220295e-07

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.015e-04  3.755e-02  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  1.987e+00  3.368e+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:  9.683e-01  2.605e-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:  8.269e-01  2.090e-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/963228/cmap_HighResolution_354153601_354412801_4FGL_J1032.6+3737_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-03', job_status='DONE', photon_flux_upper_limit='3.41e-08', time_completed='2021-09-02 02:58:54.316054', job_id='963228', GAL2='0.97', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630576734.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='5.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='443' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 02:58:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 963228: <4FGL_J1032.6+3737_daily_bin443> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin443> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 02:45:23 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 02:45:30 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:45:30 2021
Terminated at Thu Sep  2 02:58:55 2021
Results reported at Thu Sep  2 02:58:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin443 158.173 37.6234 354153601 354412801 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 :                                   774.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            812 sec.

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

