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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin725
RA = 158.173, Dec = 37.6234
tmin = 427248001, tmax = 427507201
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='965116', job_status='RUN', time_executed='2021-09-02 02:53:16.523184', time_epoch_executed='1630576396.52' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/965116

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/965116/ft1_4FGL_J1032.6+3737_daily_bin725.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/965116/ft2_4FGL_J1032.6+3737_daily_bin725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/965116/ft1_4FGL_J1032.6+3737_daily_bin725.fits outfile=/scratch/kocevski/965116/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin725.fits ra=158.173 dec=37.6234 rad=12.0 tmin=427248001.0 tmax=427507201.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.56
user 5.26
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/965116/ft1_filtered_4FGL_J1032.6+3737_daily_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/965116/ft2_4FGL_J1032.6+3737_daily_bin725.fits sctable="SC_DATA" expcube=/scratch/kocevski/965116/ltcube_427248001_427507201_4FGL_J1032.6+3737_daily_bin725.fits outfile=/scratch/kocevski/965116/expmap_427248001_427507201_4FGL_J1032.6+3737_daily_bin725.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/965116/ltcube_427248001_427507201_4FGL_J1032.6+3737_daily_bin725.fits
.....................!
real 193.69
user 188.05
sys 4.28

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/965116/ft1_filtered_4FGL_J1032.6+3737_daily_bin725.fits scfile=/scratch/kocevski/965116/ft2_4FGL_J1032.6+3737_daily_bin725.fits outfile=/scratch/kocevski/965116/cmap_427248001_427507201_4FGL_J1032.6+3737_daily_bin725.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/965116/ft1_filtered_4FGL_J1032.6+3737_daily_bin725.fits scfile=/scratch/kocevski/965116/ft2_4FGL_J1032.6+3737_daily_bin725.fits outfile=/scratch/kocevski/965116/cmap_HighResolution_427248001_427507201_4FGL_J1032.6+3737_daily_bin725.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/965116/ft1_filtered_4FGL_J1032.6+3737_daily_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/965116/ft2_4FGL_J1032.6+3737_daily_bin725.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/965116/Model_4FGL_J1032.6+3737_daily_bin725.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/965116/ft1_filtered_4FGL_J1032.6+3737_daily_bin725.fits.....................!
real 49.36
user 47.21
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.764       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.232       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6407       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8223       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10641E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11135E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    23.994       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38208E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9410       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3525       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.388       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.7814       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9744       1.0000         .10000E-03   10000.    
    23 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5799       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.2290       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4717       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .58903       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=   5332.062     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3471 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.759        14.902        .47255E-06   -.69661E-04
   2  Prefactor     .10000E-03    17.271        .61786E-05** at limit **
   3  Prefactor     23.224        23.894       -.17087E-05   -.10793E-04
   4  Prefactor     6.6408        11.836       -.18515E-06   -.77298E-04
   5  norm          1.8187        19.850       -.17637E-05   -.18600E-03
   6  Prefactor     .10000E-03    1.7940        .33472E-07** at limit **
   7  Prefactor     .10000E-03    2.3084       -.82274E-09** at limit **
   8  Prefactor     .10000E-03    12.641        .27700E-05** at limit **
   9  Prefactor     .10000E-03    7.4023       -.60900E-07** at limit **
  10  norm          24.000        13.879       -.13382E-06    .68053E-04
  11  Prefactor     .10000E-03    22.786       -.46315E-05** at limit **
  12  Prefactor     .10000E-03    150.02       -.26185E-04** at limit **
  13  Prefactor     6.9403        4.7328        .10362E-05   -.20482E-04
  14  Prefactor     4.3542        5.6226        .83933E-06    .37175E-03
  15  Prefactor     .10000E-03    15.207       -.34618E-06** at limit **
  16  Prefactor     20.389        36.081        .96866E-06    .18664E-04
  17  Prefactor     .10000E-03    34.046        .60912E-05** at limit **
  18  Prefactor     .10000E-03    12.817       -.19854E-05** at limit **
  19  norm          1.7814        .43537        .17133E-07    .59168E-03
  20  Prefactor     .10000E-03    1.2463        .10441E-07** at limit **
  21  Prefactor     .10000E-03    14.152       -.35583E-05** at limit **
  22  Prefactor     2.9737        12.940       -.57143E-06   -.94357E-04
  23  norm          .10000E-03    31.219       -.36660E-05** at limit **
  24  Prefactor     3.5801        3.5956        .35191E-06   -.19653E-03
  25  Prefactor     .10000E-03    85.596        .61130E-06** at limit **
  26  norm          5.2287        4.2416       -.60591E-06   -.20067E-03
  27  Normalizat    1.4719        .19833        .18093E-07    .15025E-03
  28  Prefactor     .58898        .23227       -.32583E-06    .51626E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.7586
  Prefactor  = 0.0001
  Prefactor  = 23.2237
  Prefactor  = 6.64076
  norm       = 1.8187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.9997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.94026
  Prefactor  = 4.35421
  Prefactor  = 0.0001
  Prefactor  = 20.3892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.78138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.97372
  norm       = 0.0001
  Prefactor  = 3.58009
  Prefactor  = 0.0001
  norm       = 5.22871
  Normalizat = 1.47187
  Prefactor  = 0.588979
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.062     FROM HESSE     STATUS=OK           519 CALLS     3990 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.759        14.882        .10424E-03   -1.4939    
   2  Prefactor     .10000E-03    17.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.224        23.915        .83103E-04   -1.4744    
   4  Prefactor     6.6408        11.833        .15572E-03   -1.5193    
   5  norm          1.8187        20.416        .30930E-03   -1.5438    
   6  Prefactor     .10000E-03    3.8689        .18898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3414        .10825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.7293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          24.000        13.876        .81775E-04   -1.4728    
  11  Prefactor     .10000E-03    22.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    153.17        .42569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.9403        4.7121        .12471E-03   -1.5181    
  14  Prefactor     4.3542        5.5865        .18730E-03   -1.5291    
  15  Prefactor     .10000E-03    15.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.389        36.066        .88705E-04   -1.4805    
  17  Prefactor     .10000E-03    33.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.7814        .43684        .22478E-04   -1.5441    
  20  Prefactor     .10000E-03    1.2491        .79606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.9737        13.005        .23542E-03   -1.5363    
  23  norm          .10000E-03    31.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.5801        3.5704        .12746E-03   -1.5330    
  25  Prefactor     .10000E-03    85.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.2287        4.2352        .12522E-03   -1.5251    
  27  Normalizat    1.4719        .22888        .21802E-03   -.78572    
  28  Prefactor     .58898        .26316        .38203E-03   -1.0805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24528e-10
Minuit parameter uncertainties:
  1  14.8855
  2  1.10117e-05
  3  23.9248
  4  11.8368
  5  12.192
  6  1.7264e-06
  7  3.62962e-07
  8  3.47192e-06
  9  9.30952e-06
  10  13.8779
  11  1.26337e-07
  12  0.000284861
  13  4.71238
  14  5.58712
  15  1.04754e-05
  16  36.105
  17  3.28023e-06
  18  2.2769e-05
  19  0.436845
  20  2.83417e-07
  21  5.19995e-06
  22  12.4419
  23  2.81716e-05
  24  3.57062
  25  9.31362e-05
  26  4.23548
  27  0.229042
  28  0.263713
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  2.849e-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:  5.890e-01  2.637e-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.472e+00  2.290e-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: 7.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/965116/likelihoodResults_427248001_427507201_4FGL_J1032.6+3737_daily_bin725.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) = 5332.06225909
delta logL = -3.10139448629e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5332.06225909
delta logL = -3.10114919557e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96359E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0760       1.0000          .0000       10.000    
     3 'Normalizat'    1.4719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58898       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=   5332.052     FROM MIGRAD    STATUS=CONVERGED    145 CALLS      300 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6284        449.15        .90713E-02    .27635E-03
   2  Index         2.6043        2.9794        .25369        .27462E-04
   3  Normalizat    1.4685        .23080E-01    .49359E-01    .95177E-04
   4  Prefactor     .58980        .26914E-01    .86155E-01    .85727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.62845
  Index      = 2.6043
  Normalizat = 1.46845
  Prefactor  = 0.589797
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.052     FROM HESSE     STATUS=OK            31 CALLS      331 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6284        45.709        .36285E-03   -1.5453    
   2  Index         2.6043        2.5797        .11402E-01   -.49967    
   3  Normalizat    1.4685        .22524        .21820E-03   -.78669    
   4  Prefactor     .58980        .26058        .38169E-03   -1.0802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10966e-09
Minuit parameter uncertainties:
  1  17.2692
  2  2.75759
  3  0.225398
  4  0.261115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/965116': 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) = 5332.05239239
delta logL = 0.00983567956155

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.628e+00  1.727e+01  1.000e-04  1.000e+04 ( 1.000e-14)
317        Index:  2.604e+00  2.758e+00  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.898e-01  2.611e-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.468e+00  2.254e-01  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/965116/cmap_HighResolution_427248001_427507201_4FGL_J1032.6+3737_daily_bin725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2021-09-02 03:06:41.819049', job_id='965116', GAL2='0.59', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1630577201.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='9.84e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='725' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:06:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 965116: <4FGL_J1032.6+3737_daily_bin725> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin725> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 02:50:42 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 02:53:06 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:06 2021
Terminated at Thu Sep  2 03:06:42 2021
Results reported at Thu Sep  2 03:06:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin725 158.173 37.6234 427248001 427507201 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 :                                   799.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            960 sec.

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

