/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 159 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1036.2+2202_daily_bin2
RA = 159.053, Dec = 22.0401
tmin = 239846401, tmax = 240105601
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='992983', job_status='RUN', time_executed='2021-09-02 04:24:14.122326', time_epoch_executed='1630581854.12' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992983

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992983/ft1_4FGL_J1036.2+2202_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992983/ft2_4FGL_J1036.2+2202_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992983/ft1_4FGL_J1036.2+2202_daily_bin2.fits outfile=/scratch/kocevski/992983/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin2.fits ra=159.053 dec=22.0401 rad=12.0 tmin=239846401.0 tmax=240105601.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 1.47
user 1.29
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992983/ft1_filtered_4FGL_J1036.2+2202_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/992983/ft2_4FGL_J1036.2+2202_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/992983/ltcube_239846401_240105601_4FGL_J1036.2+2202_daily_bin2.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/992983/ft2_4FGL_J1036.2+2202_daily_bin2.fits
.....................!
real 18.05
user 17.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992983/ft1_filtered_4FGL_J1036.2+2202_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/992983/ft2_4FGL_J1036.2+2202_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/992983/ltcube_239846401_240105601_4FGL_J1036.2+2202_daily_bin2.fits outfile=/scratch/kocevski/992983/expmap_239846401_240105601_4FGL_J1036.2+2202_daily_bin2.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/992983/ltcube_239846401_240105601_4FGL_J1036.2+2202_daily_bin2.fits
.....................!
real 191.34
user 186.40
sys 4.10

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/992983/ft1_filtered_4FGL_J1036.2+2202_daily_bin2.fits scfile=/scratch/kocevski/992983/ft2_4FGL_J1036.2+2202_daily_bin2.fits outfile=/scratch/kocevski/992983/cmap_239846401_240105601_4FGL_J1036.2+2202_daily_bin2.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.89
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992983/ft1_filtered_4FGL_J1036.2+2202_daily_bin2.fits scfile=/scratch/kocevski/992983/ft2_4FGL_J1036.2+2202_daily_bin2.fits outfile=/scratch/kocevski/992983/cmap_HighResolution_239846401_240105601_4FGL_J1036.2+2202_daily_bin2.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 1.22
user 0.41
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/992983/ft1_filtered_4FGL_J1036.2+2202_daily_bin2.fits', '/scratch/kocevski/992983/ft2_4FGL_J1036.2+2202_daily_bin2.fits', expMap='/scratch/kocevski/992983/expmap_239846401_240105601_4FGL_J1036.2+2202_daily_bin2.fits', expCube='/scratch/kocevski/992983/ltcube_239846401_240105601_4FGL_J1036.2+2202_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/992983/Model_4FGL_J1036.2+2202_daily_bin2.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/992983/ft1_filtered_4FGL_J1036.2+2202_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/992983/ft2_4FGL_J1036.2+2202_daily_bin2.fits
Exposure map: /scratch/kocevski/992983/expmap_239846401_240105601_4FGL_J1036.2+2202_daily_bin2.fits
Exposure cube: /scratch/kocevski/992983/ltcube_239846401_240105601_4FGL_J1036.2+2202_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/992983/Model_4FGL_J1036.2+2202_daily_bin2.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) = 5498.19141926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.077       1.0000         .10000E-03   10000.    
     2 'Prefactor '    68.983       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49294       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31407E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    25.402       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.160       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8521       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.764       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.348       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5153       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67590       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .87410       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2330       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78298       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=   5498.186     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2397 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.055        75.639        .23704E-05   -.11477E-04
   2  Prefactor     68.972        47.771        .83760E-06   -.29359E-04
   3  Prefactor     .49144        3.4173       -.99555E-06   -.29704E-04
   4  Prefactor     .11432E-01    1.1226       -.91937E-07    .15527E-03
   5  norm          25.402        9.5894        .62509E-07   -.77822E-04
   6  Prefactor     51.133        47.578        .19647E-05   -.50802E-04
   7  Prefactor     .10000E-03    19.213        .16600E-06** at limit **
   8  Prefactor     .10000E-03    2.0730        .23083E-08** at limit **
   9  Prefactor     .10000E-03    .73024        .15729E-06** at limit **
  10  Prefactor     .10000E-03    2.2214        .21939E-06** at limit **
  11  Prefactor     1.8541        10.184        .12425E-04   -.13738E-03
  12  Prefactor     13.758        25.982        .76053E-06   -.33091E-04
  13  Prefactor     28.342        14.765       -.28982E-05   -.26620E-03
  14  Prefactor     6.5142        8.4925       -.23891E-06   -.17681E-03
  15  Prefactor     .10000E-03    5.8403        .51085E-06** at limit **
  16  norm          .10000E-03    .67492        .17906E-06** at limit **
  17  Prefactor     .67563        1.8479        .62915E-06    .81770E-03
  18  Prefactor     .10000E-03    3.0800        .23599E-06** at limit **
  19  norm          .85524        10.632        .11394E-05   -.74102E-04
  20  Prefactor     .10000E-03    5.8644       -.30844E-08** at limit **
  21  Normalizat    1.2332        .17450       -.16134E-05   -.24983E-03
  22  Prefactor     .78292        .17646        .25586E-07   -.27902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.0555
  Prefactor  = 68.9721
  Prefactor  = 0.491438
  Prefactor  = 0.0114315
  norm       = 25.4018
  Prefactor  = 51.1328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.85414
  Prefactor  = 13.7576
  Prefactor  = 28.3419
  Prefactor  = 6.51421
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.675632
  Prefactor  = 0.0001
  norm       = 0.855236
  Prefactor  = 0.0001
  Normalizat = 1.2332
  Prefactor  = 0.782917
 **********
 **   18 **HESSE 
 **********

 FCN=   5498.186     FROM HESSE     STATUS=OK           352 CALLS     2749 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.055        75.594        .63317E-04   -1.4441    
   2  Prefactor     68.972        47.803        .48329E-04   -1.4045    
   3  Prefactor     .49144        14.281        .25702E-02   -1.5568    
   4  Prefactor     .11432E-01    3.5629        .26524E-01   -1.5687    
   5  norm          25.402        9.5794        .79482E-04   -1.4700    
   6  Prefactor     51.133        47.616        .56070E-04   -1.4277    
   7  Prefactor     .10000E-03    19.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0803        .10425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .74261        .61895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2312        .10796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8541        10.377        .15316E-02   -1.5436    
  12  Prefactor     13.758        25.990        .10796E-03   -1.4966    
  13  Prefactor     28.342        14.884        .75246E-04   -1.4643    
  14  Prefactor     6.5142        8.3946        .15723E-03   -1.5197    
  15  Prefactor     .10000E-03    5.8576        .17510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .68423        .59529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .67563        1.6577        .15846E-02   -1.5544    
  18  Prefactor     .10000E-03    3.0940        .12713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .85524        38.049        .46381E-02   -1.5523    
  20  Prefactor     .10000E-03    5.8766        .17534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2332        .20426        .21864E-03   -.85583    
  22  Prefactor     .78292        .20637        .27839E-03   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63191e-08
Minuit parameter uncertainties:
  1  75.7758
  2  47.8298
  3  5.29931
  4  0.401884
  5  9.58
  6  47.6517
  7  4.69544e-05
  8  5.54106e-07
  9  9.23502e-06
  10  2.29513e-05
  11  8.77494
  12  26.0113
  13  14.886
  14  8.39611
  15  4.3145e-05
  16  1.02166e-05
  17  1.65779
  18  2.86221e-05
  19  11.416
  20  3.78699e-05
  21  0.204388
  22  0.206573
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  5.541e-07  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:  7.829e-01  2.066e-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:  1.233e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/992983/likelihoodResults_239846401_240105601_4FGL_J1036.2+2202_daily_bin2.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) = 5498.18849268
delta logL = -0.00225535525533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5498.18623731
delta logL = 1.21854100144e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5498.186     FROM MIGRAD    STATUS=FAILED        97 CALLS      252 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    257.34        .10440E-02** at limit **
   2  Index         2.3157        7.3227        .50000       -.42660E-06
   3  Normalizat    1.2332        .57646E-01    .21864E-03    .23711E-04
   4  Prefactor     .78292        .60150E-01    .27839E-03    .28219E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5498.186     FROM SIMPLEX   STATUS=UNCHANGED    192 CALLS      444 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    257.34        .24429E-03** at limit **
   2  Index         2.3157        7.3227        .22752E-05   -.42660E-06
   3  Normalizat    1.2332        .57646E-01    .42282E-07    .23711E-04
   4  Prefactor     .78292        .60150E-01    .61526E-07    .28219E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5498.186     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      478 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6071        .20881E-03** at limit **
   2  Index         2.3188        8.8375        .50000       -.12710E-06
   3  Normalizat    1.2332        .19524        .87454E-05    .23659E-04
   4  Prefactor     .78292        .20365        .11136E-04    .27974E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31879
  Normalizat = 1.2332
  Prefactor  = 0.782919
 **********
 **   18 **HESSE 
 **********

 FCN=   5498.186     FROM HESSE     STATUS=OK            29 CALLS      507 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1973        .41762E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3188        6.3613        .50000       -.56598    
   3  Normalizat    1.2332        .19506        .17491E-05   -.85583    
   4  Prefactor     .78292        .20345        .22271E-05   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53086e-11
Minuit parameter uncertainties:
  1  7.73911e-06
  2  116.973
  3  0.195172
  4  0.203641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992983': 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) = 5498.18623642
delta logL = 9.10427843337e-07

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  7.739e-06  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.319e+00  1.170e+02  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:  7.829e-01  2.036e-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:  1.233e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/992983/cmap_HighResolution_239846401_240105601_4FGL_J1036.2+2202_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2021-09-02 04:34:30.018544', job_id='992983', GAL2='0.78', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630582470.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='2' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:34:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 992983: <4FGL_J1036.2+2202_daily_bin2> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin2> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 04:21:03 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:21:23 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:21:23 2021
Terminated at Thu Sep  2 04:34:30 2021
Results reported at Thu Sep  2 04:34:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin2 159.053 22.0401 239846401 240105601 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 :                                   610.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            807 sec.

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

