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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin728
RA = 159.053, Dec = 22.0401
tmin = 428025601, tmax = 428284801
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='998328', job_status='RUN', time_executed='2021-09-02 04:44:06.272396', time_epoch_executed='1630583046.27' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998328

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998328/ft1_4FGL_J1036.2+2202_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998328/ft2_4FGL_J1036.2+2202_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998328/ft1_4FGL_J1036.2+2202_daily_bin728.fits outfile=/scratch/kocevski/998328/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin728.fits ra=159.053 dec=22.0401 rad=12.0 tmin=428025601.0 tmax=428284801.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.62
user 5.32
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998328/ft1_filtered_4FGL_J1036.2+2202_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/998328/ft2_4FGL_J1036.2+2202_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/998328/ltcube_428025601_428284801_4FGL_J1036.2+2202_daily_bin728.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/998328/ft2_4FGL_J1036.2+2202_daily_bin728.fits
.....................!
real 15.88
user 15.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998328/ft1_filtered_4FGL_J1036.2+2202_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/998328/ft2_4FGL_J1036.2+2202_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/998328/ltcube_428025601_428284801_4FGL_J1036.2+2202_daily_bin728.fits outfile=/scratch/kocevski/998328/expmap_428025601_428284801_4FGL_J1036.2+2202_daily_bin728.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/998328/ltcube_428025601_428284801_4FGL_J1036.2+2202_daily_bin728.fits
.....................!
real 191.41
user 186.48
sys 4.09

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/998328/ft1_filtered_4FGL_J1036.2+2202_daily_bin728.fits scfile=/scratch/kocevski/998328/ft2_4FGL_J1036.2+2202_daily_bin728.fits outfile=/scratch/kocevski/998328/cmap_428025601_428284801_4FGL_J1036.2+2202_daily_bin728.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998328/ft1_filtered_4FGL_J1036.2+2202_daily_bin728.fits scfile=/scratch/kocevski/998328/ft2_4FGL_J1036.2+2202_daily_bin728.fits outfile=/scratch/kocevski/998328/cmap_HighResolution_428025601_428284801_4FGL_J1036.2+2202_daily_bin728.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.514       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7258       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2456       1.0000         .10000E-03   10000.    
     6 'Prefactor '    88.259       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.895       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4319       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.028       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0106       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0864       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99920       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2445       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=   4429.622     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2349 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.495        118.24        .52076E-05    .17735E-04
   2  Prefactor     .10000E-03    35.593        .39237E-05** at limit **
   3  Prefactor     .10000E-03    5.5861        .17977E-06** at limit **
   4  Prefactor     2.7261        3.4575       -.13537E-06   -.45244E-04
   5  norm          2.2462        14.954        .80474E-05   -.10215E-03
   6  Prefactor     88.255        56.976        .74272E-06    .81921E-04
   7  Prefactor     29.890        71.746        .13126E-05    .18383E-04
   8  Prefactor     .10000E-03    27.418       -.26486E-05** at limit **
   9  Prefactor     3.4308        2.7967        .39002E-06    .97219E-03
  10  Prefactor     .10000E-03    2.7465        .17459E-07** at limit **
  11  Prefactor     .10000E-03    9.1014       -.10126E-05** at limit **
  12  Prefactor     .10000E-03    9.9671        .11008E-05** at limit **
  13  Prefactor     .10000E-03    9.4850        .11196E-06** at limit **
  14  Prefactor     .10000E-03    19.582       -.90046E-06** at limit **
  15  Prefactor     17.027        15.300        .55760E-06    .16099E-03
  16  norm          2.0105        2.5363        .77136E-07    .21175E-04
  17  Prefactor     .10000E-03    2.0531        .22738E-06** at limit **
  18  Prefactor     6.0866        6.6070        .58393E-07    .14591E-04
  19  norm          .10000E-03    17.629        .14959E-05** at limit **
  20  Prefactor     .10000E-03    4.9749       -.20606E-06** at limit **
  21  Normalizat    .99935        .21968        .85044E-08    .34757E-03
  22  Prefactor     1.2443        .22559       -.65340E-06    .31833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4953
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.72611
  norm       = 2.24615
  Prefactor  = 88.2551
  Prefactor  = 29.8895
  Prefactor  = 0.0001
  Prefactor  = 3.4308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0271
  norm       = 2.01046
  Prefactor  = 0.0001
  Prefactor  = 6.0866
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.999347
  Prefactor  = 1.24427
 **********
 **   18 **HESSE 
 **********

 FCN=   4429.622     FROM HESSE     STATUS=OK           338 CALLS     2687 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.495        117.58        .93084E-04   -1.4848    
   2  Prefactor     .10000E-03    35.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6227        .15346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7261        3.4514        .13235E-03   -1.5378    
   5  norm          2.2462        15.266        .13712E-02   -1.5408    
   6  Prefactor     88.255        57.019        .42767E-04   -1.3826    
   7  Prefactor     29.890        71.886        .73278E-04   -1.4614    
   8  Prefactor     .10000E-03    28.062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4308        2.8188        .96215E-04   -1.5337    
  10  Prefactor     .10000E-03    2.7528        .10770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.1888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.9818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.5961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.027        15.311        .48530E-03   -1.4882    
  16  norm          2.0105        2.5222        .11421E-03   -1.5424    
  17  Prefactor     .10000E-03    3.4633        .18378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0866        6.6050        .16274E-03   -1.5214    
  19  norm          .10000E-03    17.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9776        .14499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99935        .26086        .25736E-03   -.93052    
  22  Prefactor     1.2443        .26822        .24964E-03   -.84980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.362e-10
Minuit parameter uncertainties:
  1  93.5384
  2  0.0003819
  3  9.90803e-06
  4  3.45167
  5  11.7154
  6  57.0545
  7  72.0955
  8  9.17005e-05
  9  2.81891
  10  7.36145e-07
  11  4.4011e-05
  12  6.31355e-05
  13  1.44819e-05
  14  6.30203e-05
  15  15.3145
  16  2.52231
  17  3.02037e-06
  18  6.60583
  19  8.2626e-05
  20  8.60839e-06
  21  0.261191
  22  0.268511
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  9.170e-05  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.244e+00  2.685e-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:  9.993e-01  2.612e-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: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998328/likelihoodResults_428025601_428284801_4FGL_J1036.2+2202_daily_bin728.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) = 4429.62240152
delta logL = -0.000170030434674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4429.62223453
delta logL = -3.04568766296e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32677E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6969       1.0000          .0000       10.000    
     3 'Normalizat'    .99943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2444       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=   4429.622     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      245 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    50.511        .40208E-02** at limit **
   2  Index         2.7012        6.3505        .91596E-02   -.32157E-04
   3  Normalizat    .99935        .24583        .25736E-03    .73108E-04
   4  Prefactor     1.2443        .26363        .24964E-03    .42807E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100217
  Index      = 2.70118
  Normalizat = 0.999346
  Prefactor  = 1.24427
 **********
 **   18 **HESSE 
 **********

 FCN=   4429.622     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    42.583        .80417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7012        6.3405        .18319E-02   -.47773    
   3  Normalizat    .99935        .24595        .10294E-04   -.93052    
   4  Prefactor     1.2443        .26390        .99857E-05   -.84980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40003e-09
Minuit parameter uncertainties:
  1  0.0060774
  2  4.45525
  3  0.246234
  4  0.264184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998328': 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) = 4429.62223087
delta logL = 6.17692421656e-07

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.002e-04  6.077e-03  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.701e+00  4.455e+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.244e+00  2.642e-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:  9.993e-01  2.462e-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/998328/cmap_HighResolution_428025601_428284801_4FGL_J1036.2+2202_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-02 04:53:25.209589', job_id='998328', GAL2='1.24', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630583605.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='6.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='728' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:53:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 998328: <4FGL_J1036.2+2202_daily_bin728> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin728> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 04:40:28 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:40:33 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:40:33 2021
Terminated at Thu Sep  2 04:53:25 2021
Results reported at Thu Sep  2 04:53:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin728 159.053 22.0401 428025601 428284801 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 :                                   556.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            777 sec.

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

