/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 155 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 = 7256
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1036.2+2202_daily_bin369
RA = 159.053, Dec = 22.0401
tmin = 334972801, tmax = 335232001
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='994456', job_status='RUN', time_executed='2021-09-02 04:28:59.217472', time_epoch_executed='1630582139.22' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994456

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994456/ft1_4FGL_J1036.2+2202_daily_bin369.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994456/ft2_4FGL_J1036.2+2202_daily_bin369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994456/ft1_4FGL_J1036.2+2202_daily_bin369.fits outfile=/scratch/kocevski/994456/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin369.fits ra=159.053 dec=22.0401 rad=12.0 tmin=334972801.0 tmax=335232001.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.44
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994456/ft2_4FGL_J1036.2+2202_daily_bin369.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/994456/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin369.fits evtable="EVENTS" outfile="/scratch/kocevski/994456/ft1_filtered_4FGL_J1036.2+2202_daily_bin369.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/994456/ft1_filtered_4FGL_J1036.2+2202_daily_bin369.fits" evtable="EVENTS" scfile=/scratch/kocevski/994456/ft2_4FGL_J1036.2+2202_daily_bin369.fits sctable="SC_DATA" outfile=/scratch/kocevski/994456/ltcube_334972801_335232001_4FGL_J1036.2+2202_daily_bin369.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/994456/ft2_4FGL_J1036.2+2202_daily_bin369.fits
.....................!
real 16.45
user 15.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994456/ft1_filtered_4FGL_J1036.2+2202_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/994456/ft2_4FGL_J1036.2+2202_daily_bin369.fits sctable="SC_DATA" expcube=/scratch/kocevski/994456/ltcube_334972801_335232001_4FGL_J1036.2+2202_daily_bin369.fits outfile=/scratch/kocevski/994456/expmap_334972801_335232001_4FGL_J1036.2+2202_daily_bin369.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/994456/ltcube_334972801_335232001_4FGL_J1036.2+2202_daily_bin369.fits
.....................!
real 193.03
user 186.41
sys 4.61

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/994456/ft1_filtered_4FGL_J1036.2+2202_daily_bin369.fits scfile=/scratch/kocevski/994456/ft2_4FGL_J1036.2+2202_daily_bin369.fits outfile=/scratch/kocevski/994456/cmap_334972801_335232001_4FGL_J1036.2+2202_daily_bin369.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/994456/ft1_filtered_4FGL_J1036.2+2202_daily_bin369.fits scfile=/scratch/kocevski/994456/ft2_4FGL_J1036.2+2202_daily_bin369.fits outfile=/scratch/kocevski/994456/cmap_HighResolution_334972801_335232001_4FGL_J1036.2+2202_daily_bin369.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.080       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7779       1.0000         .10000E-03   10000.    
     5 'norm      '    .12651E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12436E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4226       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.307       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24744       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1817       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10622       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9246       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .30094       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3381       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95914       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2065       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=   5929.554     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2579 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.701       -.66504E-06** at limit **
   2  Prefactor     25.392        68.301        .56892E-06   -.36537E-05
   3  Prefactor     .10000E-03    3.3182        .21112E-07** at limit **
   4  Prefactor     2.7786        2.3684        .55804E-07   -.47119E-04
   5  norm          .10000E-03    4.9397        .22624E-06** at limit **
   6  Prefactor     .10000E-03    50.613        .56181E-06** at limit **
   7  Prefactor     .10000E-03    25.040       -.26240E-08** at limit **
   8  Prefactor     3.4244        1.9324        .95140E-07   -.12729E-02
   9  Prefactor     .10000E-03    .61867       -.15029E-08** at limit **
  10  Prefactor     26.323        10.351        .14297E-06   -.24065E-04
  11  Prefactor     .22377        6.7173        .14261E-06   -.46448E-04
  12  Prefactor     5.1648        45.373        .92773E-05    .72503E-05
  13  Prefactor     .10000E-03    5.1366        .45879E-08** at limit **
  14  Prefactor     .28558        13.630       -.10592E-06   -.99438E-05
  15  Prefactor     .10000E-03    8.5498        .57278E-08** at limit **
  16  norm          1.9247        1.8755        .23382E-07   -.72646E-04
  17  Prefactor     .26376        2.4588        .27828E-07   -.44195E-04
  18  Prefactor     .10000E-03    4.9073       -.12220E-06** at limit **
  19  norm          .10000E-03    4.8657       -.42750E-08** at limit **
  20  Prefactor     5.3448        18.044        .57759E-05    .10887E-04
  21  Normalizat    .95871        .19389       -.10026E-05   -.48764E-04
  22  Prefactor     1.2067        .18662       -.15822E-06   -.82407E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.3915
  Prefactor  = 0.0001
  Prefactor  = 2.77862
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42437
  Prefactor  = 0.0001
  Prefactor  = 26.3228
  Prefactor  = 0.223773
  Prefactor  = 5.16476
  Prefactor  = 0.0001
  Prefactor  = 0.285581
  Prefactor  = 0.0001
  norm       = 1.92472
  Prefactor  = 0.263762
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.34481
  Normalizat = 0.958706
  Prefactor  = 1.2067
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.554     FROM HESSE     STATUS=OK           358 CALLS     2937 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.392        68.648        .79989E-04   -1.4700    
   3  Prefactor     .10000E-03    3.3413        .13695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7786        2.3676        .10543E-03   -1.5375    
   5  norm          .10000E-03    11.186        .52827E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    50.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4244        5.4966        .10924E-02   -1.5338    
   9  Prefactor     .10000E-03    .62317        .59126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.323        10.361        .78104E-04   -1.4681    
  11  Prefactor     .22377        52.444        .37407E-02   -1.5613    
  12  Prefactor     5.1648        45.415        .17660E-03   -1.5253    
  13  Prefactor     .10000E-03    5.1470        .17034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .28558        304.60        .45684E-02   -1.5601    
  15  Prefactor     .10000E-03    8.5982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9247        1.8599        .99845E-04   -1.5430    
  17  Prefactor     .26376        29.469        .19171E-02   -1.5605    
  18  Prefactor     .10000E-03    4.9564        .16662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.8675        .16589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3448        18.089        .17395E-03   -1.5246    
  21  Normalizat    .95871        .23293        .26099E-03   -.94427    
  22  Prefactor     1.2067        .22360        .24485E-03   -.86125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8529e-08
Minuit parameter uncertainties:
  1  1.19396e-05
  2  68.8631
  3  3.70988e-06
  4  2.36766
  5  0.00012458
  6  5.23875e-05
  7  4.03923e-06
  8  5.49739
  9  5.94606e-07
  10  10.362
  11  6.85595
  12  30.6614
  13  2.04696e-06
  14  18.7464
  15  1.18787e-06
  16  1.85992
  17  5.57773
  18  3.22641e-05
  19  1.20713e-06
  20  18.1078
  21  0.233176
  22  0.223778
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  3.424e+00  5.497e+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.207e+00  2.238e-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.587e-01  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994456/likelihoodResults_334972801_335232001_4FGL_J1036.2+2202_daily_bin369.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) = 5929.55271142
delta logL = 0.00121837145616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5929.55263138
delta logL = 0.00129841792568

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3860       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6867       1.0000          .0000       10.000    
     3 'Normalizat'    .95699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2077       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=   5929.553     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      237 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3784        264.66        .54971E-02    .36489E-03
   2  Index         2.6832        5.5677        .25837        .26722E-04
   3  Normalizat    .95716        .70805E-01    .45626E-01    .58101E-05
   4  Prefactor     1.2077        .67567E-01    .55356E-01    .15049E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.37843
  Index      = 2.68317
  Normalizat = 0.957158
  Prefactor  = 1.20771
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.553     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3784        5.5817        .21472E-03   -1.5340    
   2  Index         2.6832        1.3480        .15875E-01   -.48179    
   3  Normalizat    .95716        .21495        .26118E-03   -.94480    
   4  Prefactor     1.2077        .22146        .24477E-03   -.86094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27856e-09
Minuit parameter uncertainties:
  1  5.58259
  2  1.36971
  3  0.215139
  4  0.221634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994456': 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) = 5929.55262559
delta logL = 0.00130420494224

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  3.378e+00  5.583e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.683e+00  1.370e+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.208e+00  2.216e-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.572e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.57
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/994456/cmap_HighResolution_334972801_335232001_4FGL_J1036.2+2202_daily_bin369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.90e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-02 04:39:32.773922', job_id='994456', GAL2='1.21', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630582772.77', return_code2='0', ts='0.57', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.30e-03', ts2='0.58', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='369' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:39:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 994456: <4FGL_J1036.2+2202_daily_bin369> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin369> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 04:25:35 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:26:11 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:26:11 2021
Terminated at Thu Sep  2 04:39:33 2021
Results reported at Thu Sep  2 04:39:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin369 159.053 22.0401 334972801 335232001 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 :                                   628.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            838 sec.

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

