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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1437
RA = 159.053, Dec = 22.0401
tmin = 611798401, tmax = 612057601
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='1390', job_status='RUN', time_executed='2021-09-02 04:53:32.146701', time_epoch_executed='1630583612.15' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1390

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1390/ft1_4FGL_J1036.2+2202_daily_bin1437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1390/ft2_4FGL_J1036.2+2202_daily_bin1437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1390/ft1_4FGL_J1036.2+2202_daily_bin1437.fits outfile=/scratch/kocevski/1390/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1437.fits ra=159.053 dec=22.0401 rad=12.0 tmin=611798401.0 tmax=612057601.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.51
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1390/ft2_4FGL_J1036.2+2202_daily_bin1437.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/1390/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1437.fits evtable="EVENTS" outfile="/scratch/kocevski/1390/ft1_filtered_4FGL_J1036.2+2202_daily_bin1437.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/1390/ft1_filtered_4FGL_J1036.2+2202_daily_bin1437.fits" evtable="EVENTS" scfile=/scratch/kocevski/1390/ft2_4FGL_J1036.2+2202_daily_bin1437.fits sctable="SC_DATA" outfile=/scratch/kocevski/1390/ltcube_611798401_612057601_4FGL_J1036.2+2202_daily_bin1437.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/1390/ft2_4FGL_J1036.2+2202_daily_bin1437.fits
.....................!
real 15.81
user 15.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1390/ft1_filtered_4FGL_J1036.2+2202_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/1390/ft2_4FGL_J1036.2+2202_daily_bin1437.fits sctable="SC_DATA" expcube=/scratch/kocevski/1390/ltcube_611798401_612057601_4FGL_J1036.2+2202_daily_bin1437.fits outfile=/scratch/kocevski/1390/expmap_611798401_612057601_4FGL_J1036.2+2202_daily_bin1437.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/1390/ltcube_611798401_612057601_4FGL_J1036.2+2202_daily_bin1437.fits
.....................!
real 193.88
user 187.99
sys 4.34

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/1390/ft1_filtered_4FGL_J1036.2+2202_daily_bin1437.fits scfile=/scratch/kocevski/1390/ft2_4FGL_J1036.2+2202_daily_bin1437.fits outfile=/scratch/kocevski/1390/cmap_611798401_612057601_4FGL_J1036.2+2202_daily_bin1437.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1390/ft1_filtered_4FGL_J1036.2+2202_daily_bin1437.fits scfile=/scratch/kocevski/1390/ft2_4FGL_J1036.2+2202_daily_bin1437.fits outfile=/scratch/kocevski/1390/cmap_HighResolution_611798401_612057601_4FGL_J1036.2+2202_daily_bin1437.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.506       1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.684       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1886       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    29.540       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.268       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.196       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2114       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.404       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9531       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4128       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3950       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.751       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70400       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1676       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.

 FCN=   5460.533     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2324 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.506        86.518        .13226E-02    .21602E-03
   2  Prefactor     61.684        52.002        .12772E-02    .32913E-03
   3  Prefactor     3.1894        6.6601        .56732E-02    .55553E-03
   4  Prefactor     .10000E-03    .74759        .90712E-02** at limit **
   5  norm          29.540        10.116        .18429E-02    .13636E-03
   6  Prefactor     27.269        39.701        .19180E-02   -.38887E-03
   7  Prefactor     .10000E-03    21.454        .90712E-02** at limit **
   8  Prefactor     20.198        8.6500        .22281E-02    .43659E-03
   9  Prefactor     .10000E-03    1.3681        .90712E-02** at limit **
  10  Prefactor     .10000E-03    2.2814        .90712E-02** at limit **
  11  Prefactor     3.2084        9.1396        .56519E-02    .58793E-03
  12  Prefactor     .10000E-03    7.2587        .90712E-02** at limit **
  13  Prefactor     11.405        11.406        .29658E-02   -.60364E-03
  14  Prefactor     4.9531        9.2542        .45177E-02   -.15517E-03
  15  Prefactor     .10000E-03    10.634        .90712E-02** at limit **
  16  norm          3.4129        1.9346        .54745E-02   -.15787E-04
  17  Prefactor     4.3953        3.2105        .48027E-02   -.23596E-02
  18  Prefactor     .10000E-03    1.9837        .90712E-02** at limit **
  19  norm          .10000E-03    4.4355        .90712E-02** at limit **
  20  Prefactor     16.751        11.628        .24465E-02   -.28672E-04
  21  Normalizat    .70390        .17803        .42344E-01    .52862E-04
  22  Prefactor     1.1677        .18386        .52491E-01    .21474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.506
  Prefactor  = 61.6838
  Prefactor  = 3.18936
  Prefactor  = 0.0001
  norm       = 29.5403
  Prefactor  = 27.2687
  Prefactor  = 0.0001
  Prefactor  = 20.1978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2084
  Prefactor  = 0.0001
  Prefactor  = 11.4055
  Prefactor  = 4.95309
  Prefactor  = 0.0001
  norm       = 3.4129
  Prefactor  = 4.39534
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.7508
  Normalizat = 0.703899
  Prefactor  = 1.16769
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.533     FROM HESSE     STATUS=OK           342 CALLS     2666 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.506        86.440        .52902E-04   -1.4190    
   2  Prefactor     61.684        52.008        .51090E-04   -1.4136    
   3  Prefactor     3.1894        6.6326        .22693E-03   -1.5351    
   4  Prefactor     .10000E-03    .75760        .62362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          29.540        10.112        .73715E-04   -1.4620    
   6  Prefactor     27.269        39.708        .76718E-04   -1.4663    
   7  Prefactor     .10000E-03    21.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.198        8.6419        .89125E-04   -1.4809    
   9  Prefactor     .10000E-03    1.4290        .16836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2904        .10898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2084        9.0127        .22607E-03   -1.5350    
  12  Prefactor     .10000E-03    7.2635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.405        11.286        .11863E-03   -1.5032    
  14  Prefactor     4.9531        9.2210        .18071E-03   -1.5263    
  15  Prefactor     .10000E-03    10.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4129        1.9363        .74866E-04   -1.5338    
  17  Prefactor     4.3953        3.2065        .10356E-03   -1.5289    
  18  Prefactor     .10000E-03    1.9866        .10164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.4397        .15199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.751        11.632        .97859E-04   -1.4889    
  21  Normalizat    .70390        .20573        .26597E-03   -1.0374    
  22  Prefactor     1.1677        .21366        .23207E-03   -.87331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23005e-09
Minuit parameter uncertainties:
  1  86.6291
  2  52.0465
  3  6.63417
  4  1.12949e-06
  5  10.1126
  6  39.7462
  7  2.5457e-06
  8  8.64242
  9  4.58249e-06
  10  2.95177e-06
  11  9.01655
  12  1.17064e-05
  13  11.2879
  14  9.22368
  15  6.07543e-06
  16  1.93633
  17  3.20665
  18  5.34594e-06
  19  1.90929e-07
  20  11.6333
  21  0.205953
  22  0.213816
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.020e+01  8.642e+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.168e+00  2.138e-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.039e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.35
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 4.83e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 1.25e-05

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) = 5460.42388872
delta logL = 0.109353835398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5460.42128529
delta logL = 0.111957274679

Fit tolerance = 1e-08

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

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

 FCN=   5460.421     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      293 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.680        10.582        .84110E-04   -.22106E-02
   2  Index         2.4105        .41820        .56683E-02   -.57695E-03
   3  Normalizat    .72154        .19738        .26301E-03    .13850E-03
   4  Prefactor     1.1530        .21358        .23326E-03    .21005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6798
  Index      = 2.41054
  Normalizat = 0.721541
  Prefactor  = 1.15303
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.421     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.680        10.462        .16822E-04   -1.4755    
   2  Index         2.4105        .41317        .22673E-03   -.54438    
   3  Normalizat    .72154        .19748        .10520E-04   -1.0305    
   4  Prefactor     1.1530        .21368        .46652E-04   -.87789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64312e-09
Minuit parameter uncertainties:
  1  10.4633
  2  0.41382
  3  0.197678
  4  0.213837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1390': 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) = 5460.42128506
delta logL = 0.111957494936

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.268e+01  1.046e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.411e+00  4.138e-01  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.153e+00  2.138e-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.215e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.48
Ra Dec: 159.053 22.040
Photon Index (Free Index): 2.41 +/- 0.41
Photon Flux (Free Index): 1.02e-07 +/- 5.03e-08
Energy Flux (Free Index): 3.30e-05 +/- 1.71e-05

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/1390/cmap_HighResolution_611798401_612057601_4FGL_J1036.2+2202_daily_bin1437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='3.30e-05', photon_flux_error='4.83e-08', dlogl='1.12e-01', energy_flux='2.92e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-02 05:03:24.722979', photon_index_error2='0.41', photon_index2='2.41', ts='10.35', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.70', time_epoch_completed='1630584204.72', return_code='0', job_id='1390', GAL2='1.15', EG2='0.72', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.03e-08', ts2='10.48', photon_index='2.61' WHERE bin_id='1437' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:03:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 1390: <4FGL_J1036.2+2202_daily_bin1437> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1437> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:50:25 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:51:25 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:51:25 2021
Terminated at Thu Sep  2 05:03:25 2021
Results reported at Thu Sep  2 05:03:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1437 159.053 22.0401 611798401 612057601 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 :                                   559.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            780 sec.

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

