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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin449
RA = 159.053, Dec = 22.0401
tmin = 355708801, tmax = 355968001
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='995604', job_status='RUN', time_executed='2021-09-02 04:35:28.374051', time_epoch_executed='1630582528.37' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995604

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995604/ft1_4FGL_J1036.2+2202_daily_bin449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995604/ft2_4FGL_J1036.2+2202_daily_bin449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995604/ft1_4FGL_J1036.2+2202_daily_bin449.fits outfile=/scratch/kocevski/995604/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin449.fits ra=159.053 dec=22.0401 rad=12.0 tmin=355708801.0 tmax=355968001.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.00
user 4.68
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/995604/ft2_4FGL_J1036.2+2202_daily_bin449.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/995604/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin449.fits evtable="EVENTS" outfile="/scratch/kocevski/995604/ft1_filtered_4FGL_J1036.2+2202_daily_bin449.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995604/ft1_filtered_4FGL_J1036.2+2202_daily_bin449.fits" evtable="EVENTS" scfile=/scratch/kocevski/995604/ft2_4FGL_J1036.2+2202_daily_bin449.fits sctable="SC_DATA" outfile=/scratch/kocevski/995604/ltcube_355708801_355968001_4FGL_J1036.2+2202_daily_bin449.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/995604/ft2_4FGL_J1036.2+2202_daily_bin449.fits
.....................!
real 15.07
user 14.64
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995604/ft1_filtered_4FGL_J1036.2+2202_daily_bin449.fits evtable="EVENTS" scfile=/scratch/kocevski/995604/ft2_4FGL_J1036.2+2202_daily_bin449.fits sctable="SC_DATA" expcube=/scratch/kocevski/995604/ltcube_355708801_355968001_4FGL_J1036.2+2202_daily_bin449.fits outfile=/scratch/kocevski/995604/expmap_355708801_355968001_4FGL_J1036.2+2202_daily_bin449.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/995604/ltcube_355708801_355968001_4FGL_J1036.2+2202_daily_bin449.fits
.....................!
real 191.33
user 185.90
sys 4.93

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/995604/ft1_filtered_4FGL_J1036.2+2202_daily_bin449.fits scfile=/scratch/kocevski/995604/ft2_4FGL_J1036.2+2202_daily_bin449.fits outfile=/scratch/kocevski/995604/cmap_355708801_355968001_4FGL_J1036.2+2202_daily_bin449.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/995604/ft1_filtered_4FGL_J1036.2+2202_daily_bin449.fits scfile=/scratch/kocevski/995604/ft2_4FGL_J1036.2+2202_daily_bin449.fits outfile=/scratch/kocevski/995604/cmap_HighResolution_355708801_355968001_4FGL_J1036.2+2202_daily_bin449.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.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.338       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0858       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9160       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4209       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.311       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3610       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.199       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4726       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .48376       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=   5707.237     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2353 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.394       -.15519E-08** at limit **
   2  Prefactor     44.338        46.844       -.10580E-07    .10035E-03
   3  Prefactor     .10000E-03    11.038       -.57448E-09** at limit **
   4  Prefactor     6.0857        2.6466       -.52541E-09   -.56279E-05
   5  norm          .10000E-03    2.2186       -.19039E-10** at limit **
   6  Prefactor     2.9168        2.9144       -.32274E-06   -.36555E-04
   7  Prefactor     .10000E-03    18.571       -.25532E-07** at limit **
   8  Prefactor     .10000E-03    3.2343        .65517E-10** at limit **
   9  Prefactor     1.4210        1.6811       -.24233E-08   -.64822E-05
  10  Prefactor     15.312        7.6346       -.73469E-09   -.10278E-03
  11  Prefactor     5.3636        6.8654        .31764E-08   -.46620E-03
  12  Prefactor     .10000E-03    30.191        .17272E-08** at limit **
  13  Prefactor     .10000E-03    4.9859        .32743E-09** at limit **
  14  Prefactor     .10000E-03    6.2979        .14398E-09** at limit **
  15  Prefactor     .10000E-03    5.3901       -.10244E-08** at limit **
  16  norm          .10000E-03    .46277       -.61689E-10** at limit **
  17  Prefactor     .10000E-03    1.4621       -.99914E-09** at limit **
  18  Prefactor     13.198        7.3093       -.28483E-08    .24101E-03
  19  norm          .10000E-03    4.6560       -.28120E-09** at limit **
  20  Prefactor     .10000E-03    17.990        .23587E-07** at limit **
  21  Normalizat    1.4725        .17213       -.73193E-09    .38082E-05
  22  Prefactor     .48370        .17147        .20554E-07    .15477E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 44.3378
  Prefactor  = 0.0001
  Prefactor  = 6.08572
  norm       = 0.0001
  Prefactor  = 2.91684
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 1.42099
  Prefactor  = 15.3119
  Prefactor  = 5.36357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1976
  norm       = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.47253
  Prefactor  = 0.483695
 **********
 **   18 **HESSE 
 **********

 FCN=   5707.237     FROM HESSE     STATUS=OK           340 CALLS     2693 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     44.338        46.861        .60210E-04   -1.4375    
   3  Prefactor     .10000E-03    11.473        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0857        2.6493        .78240E-04   -1.5215    
   5  norm          .10000E-03    2.2239        .10989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9168        34.775        .11896E-02   -1.5366    
   7  Prefactor     .10000E-03    18.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2836        .13262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4210        1.6568        .10233E-03   -1.5470    
  10  Prefactor     15.312        7.6416        .10236E-03   -1.4925    
  11  Prefactor     5.3636        6.8711        .17357E-03   -1.5245    
  12  Prefactor     .10000E-03    30.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0064        .16449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.3279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4062        .17123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .46526        .50179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3865        .17624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.198        7.3109        .11025E-03   -1.4981    
  19  norm          .10000E-03    4.6649        .15920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4725        .19543        .19606E-03   -.78553    
  22  Prefactor     .48370        .19440        .33015E-03   -1.1273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88702e-10
Minuit parameter uncertainties:
  1  5.51198e-05
  2  46.9004
  3  4.59504e-06
  4  2.64932
  5  1.20821e-07
  6  20.1572
  7  0.00060291
  8  8.40309e-08
  9  1.6569
  10  7.64205
  11  6.87213
  12  6.8712e-05
  13  8.52267e-06
  14  5.67227e-06
  15  9.98663e-06
  16  4.59235e-08
  17  3.44425e-07
  18  7.31141
  19  2.33285e-06
  20  0.000566563
  21  0.195532
  22  0.194665
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  8.403e-08  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:  4.837e-01  1.947e-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.473e+00  1.955e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995604/likelihoodResults_355708801_355968001_4FGL_J1036.2+2202_daily_bin449.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) = 5707.23829054
delta logL = -0.00144753406676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5707.23684455
delta logL = -1.5388814063e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6010       1.0000          .0000       10.000    
     3 'Normalizat'    1.4726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48364       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=   5707.237     FROM MIGRAD    STATUS=FAILED       103 CALLS      258 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.029        .13370E-01** at limit **
   2  Index         2.1873        6.0727        .50000       -.25063E-05
   3  Normalizat    1.4725        .10323E-01    .19606E-03   -.33528E-03
   4  Prefactor     .48369        .10535E-01    .33015E-03   -.20991E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5707.237     FROM SIMPLEX   STATUS=UNCHANGED    157 CALLS      415 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.029        .33549E-03** at limit **
   2  Index         2.1873        6.0727        .15710E-04   -.25063E-05
   3  Normalizat    1.4725        .10323E-01    .43356E-07   -.33528E-03
   4  Prefactor     .48369        .10535E-01    .60396E-07   -.20991E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5707.237     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      493 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0630        .56616E-04** at limit **
   2  Index         2.1874        6.9139        .50000       -.24918E-05
   3  Normalizat    1.4725        .18908        .78423E-05   -.33371E-03
   4  Prefactor     .48369        .19278        .26412E-05   -.20919E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18743
  Normalizat = 1.47253
  Prefactor  = 0.483694
 **********
 **   18 **HESSE 
 **********

 FCN=   5707.237     FROM HESSE     STATUS=OK            27 CALLS      520 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7859        .11323E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1874        8.5735        .50000       -.59742    
   3  Normalizat    1.4725        .18884        .15685E-05   -.78553    
   4  Prefactor     .48369        .19262        .52824E-06   -1.1273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53262e-09
Minuit parameter uncertainties:
  1  1.68764e-05
  2  97.0912
  3  0.188928
  4  0.192876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995604': 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) = 5707.23684103
delta logL = 1.97674671654e-06

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.688e-05  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.187e+00  9.709e+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:  4.837e-01  1.929e-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.473e+00  1.889e-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/995604/cmap_HighResolution_355708801_355968001_4FGL_J1036.2+2202_daily_bin449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-09-02 04:46:13.373193', job_id='995604', GAL2='0.48', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1630583173.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='1.98e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='449' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:46:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 995604: <4FGL_J1036.2+2202_daily_bin449> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin449> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 04:30:42 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:31:38 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:31:38 2021
Terminated at Thu Sep  2 04:46:14 2021
Results reported at Thu Sep  2 04:46:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin449 159.053 22.0401 355708801 355968001 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 :                                   643.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            932 sec.

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

