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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1050
RA = 159.053, Dec = 22.0401
tmin = 511488001, tmax = 511747201
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='998848', job_status='RUN', time_executed='2021-09-02 04:45:44.977443', time_epoch_executed='1630583144.98' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1050'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998848

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998848/ft1_4FGL_J1036.2+2202_daily_bin1050.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998848/ft2_4FGL_J1036.2+2202_daily_bin1050.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998848/ft1_4FGL_J1036.2+2202_daily_bin1050.fits outfile=/scratch/kocevski/998848/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1050.fits ra=159.053 dec=22.0401 rad=12.0 tmin=511488001.0 tmax=511747201.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.79
user 3.36
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/998848/ft2_4FGL_J1036.2+2202_daily_bin1050.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998848/ft2_4FGL_J1036.2+2202_daily_bin1050.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/998848/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1050.fits evtable="EVENTS" outfile="/scratch/kocevski/998848/ft1_filtered_4FGL_J1036.2+2202_daily_bin1050.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998848/ft1_filtered_4FGL_J1036.2+2202_daily_bin1050.fits" evtable="EVENTS" scfile=/scratch/kocevski/998848/ft2_4FGL_J1036.2+2202_daily_bin1050.fits sctable="SC_DATA" outfile=/scratch/kocevski/998848/ltcube_511488001_511747201_4FGL_J1036.2+2202_daily_bin1050.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/998848/ft2_4FGL_J1036.2+2202_daily_bin1050.fits
.....................!
real 18.08
user 14.83
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998848/ft1_filtered_4FGL_J1036.2+2202_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/998848/ft2_4FGL_J1036.2+2202_daily_bin1050.fits sctable="SC_DATA" expcube=/scratch/kocevski/998848/ltcube_511488001_511747201_4FGL_J1036.2+2202_daily_bin1050.fits outfile=/scratch/kocevski/998848/expmap_511488001_511747201_4FGL_J1036.2+2202_daily_bin1050.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/998848/ltcube_511488001_511747201_4FGL_J1036.2+2202_daily_bin1050.fits
.....................!
real 192.54
user 186.78
sys 5.15

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

Setting source of interest to:
4FGL J1036.2+2202 @ 159.053 22.0401

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/998848/ft1_filtered_4FGL_J1036.2+2202_daily_bin1050.fits scfile=/scratch/kocevski/998848/ft2_4FGL_J1036.2+2202_daily_bin1050.fits outfile=/scratch/kocevski/998848/cmap_511488001_511747201_4FGL_J1036.2+2202_daily_bin1050.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=159.053 yref=22.0401 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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998848/ft1_filtered_4FGL_J1036.2+2202_daily_bin1050.fits scfile=/scratch/kocevski/998848/ft2_4FGL_J1036.2+2202_daily_bin1050.fits outfile=/scratch/kocevski/998848/cmap_HighResolution_511488001_511747201_4FGL_J1036.2+2202_daily_bin1050.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=159.053 yref=22.0401 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998848/ft1_filtered_4FGL_J1036.2+2202_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/998848/ft2_4FGL_J1036.2+2202_daily_bin1050.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998848/Model_4FGL_J1036.2+2202_daily_bin1050.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/998848/ft1_filtered_4FGL_J1036.2+2202_daily_bin1050.fits.....................!
real 46.99
user 45.39
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/998848/ft1_filtered_4FGL_J1036.2+2202_daily_bin1050.fits', '/scratch/kocevski/998848/ft2_4FGL_J1036.2+2202_daily_bin1050.fits', expMap='/scratch/kocevski/998848/expmap_511488001_511747201_4FGL_J1036.2+2202_daily_bin1050.fits', expCube='/scratch/kocevski/998848/ltcube_511488001_511747201_4FGL_J1036.2+2202_daily_bin1050.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/998848/Model_4FGL_J1036.2+2202_daily_bin1050.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1036.2+2202'

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.459e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/998848/ft1_filtered_4FGL_J1036.2+2202_daily_bin1050.fits
Spacecraft file(s): /scratch/kocevski/998848/ft2_4FGL_J1036.2+2202_daily_bin1050.fits
Exposure map: /scratch/kocevski/998848/expmap_511488001_511747201_4FGL_J1036.2+2202_daily_bin1050.fits
Exposure cube: /scratch/kocevski/998848/ltcube_511488001_511747201_4FGL_J1036.2+2202_daily_bin1050.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/998848/Model_4FGL_J1036.2+2202_daily_bin1050.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) = 4868.69390037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21202E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.121       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .92864E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24067E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.408       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24598E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7394       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .84902E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34527E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13755E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7698       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.614       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8001       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8915       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6248       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74271       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2496       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4868.684     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2416 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.722       -.45737E-07** at limit **
   2  Prefactor     39.276        35.768       -.58550E-05   -.28695E-04
   3  Prefactor     .10000E-03    3.7901        .16769E-06** at limit **
   4  Prefactor     .10000E-03    1.7473       -.21942E-07** at limit **
   5  norm          20.402        10.384        .16538E-06    .34097E-04
   6  Prefactor     25.398        34.147        .29672E-05    .66799E-05
   7  Prefactor     .10000E-03    26.315       -.11608E-06** at limit **
   8  Prefactor     2.7568        5.7726        .48766E-05    .12665E-04
   9  Prefactor     .10000E-03    .98513        .17130E-07** at limit **
  10  Prefactor     .10000E-03    5.2678       -.21225E-06** at limit **
  11  Prefactor     .10832E-03    9.6862        .37012E-05** at limit **
  12  Prefactor     .10000E-03    12.563       -.31927E-06** at limit **
  13  Prefactor     .10000E-03    7.7283        .90403E-07** at limit **
  14  Prefactor     8.7802        9.7959       -.56883E-06   -.54039E-04
  15  Prefactor     13.790        15.474       -.99121E-06   -.58500E-03
  16  norm          .10000E-03    .78492       -.65356E-07** at limit **
  17  Prefactor     .10000E-03    1.3312        .14629E-06** at limit **
  18  Prefactor     4.8087        5.6922        .42300E-07   -.48584E-04
  19  norm          1.8743        17.847        .12420E-04    .92018E-04
  20  Prefactor     1.6116        22.115        .83929E-06   -.12766E-04
  21  Normalizat    .74272        .18180       -.24921E-05   -.24914E-03
  22  Prefactor     1.2494        .19171        .89832E-06   -.22461E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 39.2762
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 20.402
  Prefactor  = 25.3983
  Prefactor  = 0.0001
  Prefactor  = 2.75684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000108316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.78016
  Prefactor  = 13.7905
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.8087
  norm       = 1.87426
  Prefactor  = 1.61156
  Normalizat = 0.742717
  Prefactor  = 1.24939
 **********
 **   18 **HESSE 
 **********

 FCN=   4868.684     FROM HESSE     STATUS=OK           352 CALLS     2768 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.276        35.711        .32042E-03   -1.4454    
   3  Prefactor     .10000E-03    32.062        .25787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7578        .17799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.402        10.349        .88662E-04   -1.4804    
   6  Prefactor     25.398        34.144        .79390E-04   -1.4700    
   7  Prefactor     .10000E-03    26.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7568        5.7836        .11557E-02   -1.5376    
   9  Prefactor     .10000E-03    1.0005        .67540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3656        .15632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10832E-03    11.255        .51989E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.637        .21329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.7802        9.7802        .13535E-03   -1.5115    
  15  Prefactor     13.790        15.580        .10856E-03   -1.4965    
  16  norm          .10000E-03    .79629        .60350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.3497        .78489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8087        5.6712        .17382E-03   -1.5269    
  19  norm          1.8743        17.843        .15127E-02   -1.5434    
  20  Prefactor     1.6116        22.089        .33191E-03   -1.5454    
  21  Normalizat    .74272        .20962        .25342E-03   -1.0223    
  22  Prefactor     1.2494        .22483        .22325E-03   -.84825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81946e-09
Minuit parameter uncertainties:
  1  2.19582e-05
  2  35.7307
  3  0.000377037
  4  3.62789e-05
  5  10.3503
  6  34.1707
  7  1.58437e-05
  8  5.78473
  9  4.3926e-06
  10  1.78707e-05
  11  0.0193526
  12  6.8108e-06
  13  2.46044e-05
  14  9.78193
  15  15.5842
  16  1.79814e-06
  17  7.128e-06
  18  5.67181
  19  11.5701
  20  11.9378
  21  0.209845
  22  0.225006
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.757e+00  5.785e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.249e+00  2.250e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  7.427e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 9.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998848/likelihoodResults_511488001_511747201_4FGL_J1036.2+2202_daily_bin1050.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) = 4868.6840726
delta logL = 0.000141633022395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4868.68404199
delta logL = 0.000172238300365

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4868.684     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      275 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7195        6.3419        .11457E-02   -.68597E-04
   2  Index         2.6391        1.3566        .11745E-01   -.18783E-04
   3  Normalizat    .74242        .20186        .25346E-03   -.23324E-04
   4  Prefactor     1.2496        .22397        .22323E-03   -.22103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.71947
  Index      = 2.63914
  Normalizat = 0.74242
  Prefactor  = 1.24962
 **********
 **   18 **HESSE 
 **********

 FCN=   4868.684     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7195        6.0630        .45828E-04   -1.5378    
   2  Index         2.6391        1.2993        .46981E-03   -.49175    
   3  Normalizat    .74242        .20211        .10139E-04   -1.0224    
   4  Prefactor     1.2496        .22417        .89293E-05   -.84818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7299e-11
Minuit parameter uncertainties:
  1  6.06441
  2  1.31892
  3  0.202309
  4  0.224338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998848': 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) = 4868.68404143
delta logL = 0.000172796206243

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.719e+00  6.064e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.639e+00  1.319e+00  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.250e+00  2.243e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  7.424e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
Ra Dec: 159.053 22.040

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/998848/cmap_HighResolution_511488001_511747201_4FGL_J1036.2+2202_daily_bin1050.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.46e-03', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-09-02 04:55:35.243633', job_id='998848', GAL2='1.25', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630583735.24', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.73e-04', ts2='0.27', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1050' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:55:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 998848: <4FGL_J1036.2+2202_daily_bin1050> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1050> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:41:20 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:45:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 04:45:31 2021
Terminated at Thu Sep  2 04:55:36 2021
Results reported at Thu Sep  2 04:55:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1050 159.053 22.0401 511488001 511747201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1036.2+2202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            856 sec.

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

