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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin622
RA = 159.053, Dec = 22.0401
tmin = 400550401, tmax = 400809601
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='996923', job_status='RUN', time_executed='2021-09-02 04:38:31.133434', time_epoch_executed='1630582711.13' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996923

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996923/ft1_4FGL_J1036.2+2202_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996923/ft2_4FGL_J1036.2+2202_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996923/ft1_4FGL_J1036.2+2202_daily_bin622.fits outfile=/scratch/kocevski/996923/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin622.fits ra=159.053 dec=22.0401 rad=12.0 tmin=400550401.0 tmax=400809601.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 4.51
user 4.17
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996923/ft1_filtered_4FGL_J1036.2+2202_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/996923/ft2_4FGL_J1036.2+2202_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/996923/ltcube_400550401_400809601_4FGL_J1036.2+2202_daily_bin622.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/996923/ft2_4FGL_J1036.2+2202_daily_bin622.fits
.....................!
real 14.69
user 14.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996923/ft1_filtered_4FGL_J1036.2+2202_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/996923/ft2_4FGL_J1036.2+2202_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/996923/ltcube_400550401_400809601_4FGL_J1036.2+2202_daily_bin622.fits outfile=/scratch/kocevski/996923/expmap_400550401_400809601_4FGL_J1036.2+2202_daily_bin622.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/996923/ltcube_400550401_400809601_4FGL_J1036.2+2202_daily_bin622.fits
.....................!
real 193.42
user 186.67
sys 5.11

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/996923/ft1_filtered_4FGL_J1036.2+2202_daily_bin622.fits scfile=/scratch/kocevski/996923/ft2_4FGL_J1036.2+2202_daily_bin622.fits outfile=/scratch/kocevski/996923/cmap_400550401_400809601_4FGL_J1036.2+2202_daily_bin622.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.55
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12534E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.478       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9122       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0867       1.0000         .10000E-03   10000.    
     5 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0356       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6141       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58763       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .51661       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.280       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .37719E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12290E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.7297       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .44498       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3841       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70083       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=   5497.869     FROM MIGRAD    STATUS=FAILED       872 CALLS     2822 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.977        .18142E-02** at limit **
   2  Prefactor     30.441        56.242        .72575E-04   -.21147E-04
   3  Prefactor     2.9066        7.6737        .11904E-02   -.22592E-03
   4  Prefactor     2.0865        2.2277        .10994E-03    .82727E-06
   5  norm          .10000E-03    2.8004        .12094E-02** at limit **
   6  Prefactor     5.0254        54.195        .17919E-03   -.42507E-05
   7  Prefactor     .10000E-03    10.952        .18142E-02** at limit **
   8  Prefactor     .10000E-03    2.3183        .10998E-02** at limit **
   9  Prefactor     1.6145        2.1683        .12115E-03   -.53772E-04
  10  Prefactor     .59221        22.135        .28190E-02    .11621E-02
  11  Prefactor     .52949        41.173        .31462E-02    .12625E-03
  12  Prefactor     .10000E-03    7.9821        .18142E-02** at limit **
  13  Prefactor     15.271        12.133        .10246E-03   -.97307E-04
  14  Prefactor     .10100E-03    172.07        .40532E-02** at limit **
  15  Prefactor     .10000E-03    8.4409        .18142E-02** at limit **
  16  norm          .10000E-03    1.8698        .15500E-02** at limit **
  17  Prefactor     .10003E-03    9.0218        .18435E-02** at limit **
  18  Prefactor     .10000E-03    2.8755        .12265E-02** at limit **
  19  norm          7.6994        17.103        .14423E-03    .10010E-04
  20  Prefactor     .47685        142.40        .50575E-02   -.78199E-04
  21  Normalizat    1.3838        .22065        .21024E-03   -.18235E-03
  22  Prefactor     .70129        .20902        .29044E-03   -.11281E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5497.869     FROM SIMPLEX   STATUS=UNCHANGED   1202 CALLS     4024 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.977        .99231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.441        56.242        .95698E-06   -1.4604    
   3  Prefactor     2.9066        7.6737        .10094E-05   -1.5367    
   4  Prefactor     2.0865        2.2277        .10139E-05   -1.5419    
   5  norm          .10000E-03    2.8004        .22710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0254        54.195        .10076E-05   -1.5260    
   7  Prefactor     .10000E-03    10.952        .51408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3183        .15924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6145        2.1683        .10155E-05   -1.5454    
  10  Prefactor     .59221        22.135        .10336E-05   -1.5554    
  11  Prefactor     .52949        41.173        .10574E-05   -1.5562    
  12  Prefactor     .10000E-03    7.9821        .31213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.271        12.133        .98105E-06   -1.4926    
  14  Prefactor     .10100E-03    172.07        .44183E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4409        .29989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8698        .70138E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    9.0218        .99692E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8755        .13180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.6994        17.103        .99530E-06   -1.5153    
  20  Prefactor     .47685        142.40        .10083E-05   -1.5570    
  21  Normalizat    1.3838        .22065        .53295E-06   -.81100    
  22  Prefactor     .70129        .20902        .67998E-06   -1.0348    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5497.869     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     4355 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.984        .36285E-03** at limit **
   2  Prefactor     30.441        56.225        .29030E-05    .78324E-06
   3  Prefactor     2.9067        7.6552        .47616E-04    .71627E-06
   4  Prefactor     2.0865        2.2263        .43976E-05    .15511E-05
   5  norm          .10000E-03    2.8006        .24187E-03** at limit **
   6  Prefactor     5.0254        54.165        .71677E-05    .31722E-06
   7  Prefactor     .10000E-03    10.952        .36285E-03** at limit **
   8  Prefactor     .10000E-03    2.3184        .21996E-03** at limit **
   9  Prefactor     1.6145        2.1666        .48458E-05    .62875E-04
  10  Prefactor     .59225        21.974        .56380E-03    .48859E-04
  11  Prefactor     .52936        39.452        .12585E-03    .54202E-06
  12  Prefactor     .10000E-03    7.9822        .36285E-03** at limit **
  13  Prefactor     15.271        11.916        .40985E-05    .41608E-04
  14  Prefactor     .10000E-03    179.15        .16213E-03** at limit **
  15  Prefactor     .10000E-03    8.4415        .36285E-03** at limit **
  16  norm          .10000E-03    1.8730        .31000E-03** at limit **
  17  Prefactor     .10000E-03    9.0671        .36870E-03** at limit **
  18  Prefactor     .10000E-03    2.8756        .24531E-03** at limit **
  19  norm          7.6994        17.096        .57693E-05    .20100E-04
  20  Prefactor     .47723        143.84        .20230E-03   -.20231E-05
  21  Normalizat    1.3838        .21804        .42048E-04    .16114E-03
  22  Prefactor     .70129        .20886        .11618E-04    .88855E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.4414
  Prefactor  = 2.90669
  Prefactor  = 2.08646
  norm       = 0.0001
  Prefactor  = 5.02535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.61452
  Prefactor  = 0.592246
  Prefactor  = 0.529362
  Prefactor  = 0.0001
  Prefactor  = 15.2711
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.6994
  Prefactor  = 0.477232
  Normalizat = 1.38376
  Prefactor  = 0.701293
 **********
 **   18 **HESSE 
 **********

 FCN=   5497.869     FROM HESSE     STATUS=OK           322 CALLS     4677 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.984        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.441        55.741        .58060E-06   -1.4604    
   3  Prefactor     2.9067        7.6507        .19047E-05   -1.5367    
   4  Prefactor     2.0865        2.2261        .87952E-06   -1.5419    
   5  norm          .10000E-03    2.8006        .48374E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0254        55.327        .14335E-05   -1.5260    
   7  Prefactor     .10000E-03    10.952        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3184        .43992E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6145        2.1665        .96916E-06   -1.5454    
  10  Prefactor     .59225        21.925        .11276E-03   -1.5554    
  11  Prefactor     .52936        39.404        .50339E-05   -1.5562    
  12  Prefactor     .10000E-03    7.9822        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.271        11.924        .81970E-06   -1.4926    
  14  Prefactor     .10000E-03    179.17        .32426E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4416        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8732        .62000E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.0690        .73739E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8756        .49061E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.6994        17.126        .11539E-05   -1.5153    
  20  Prefactor     .47723        143.87        .80920E-05   -1.5570    
  21  Normalizat    1.3838        .21788        .84096E-05   -.81100    
  22  Prefactor     .70129        .20885        .23235E-05   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72384e-11
Minuit parameter uncertainties:
  1  1.49496e-06
  2  55.8367
  3  7.65324
  4  2.22623
  5  1.40008e-07
  6  33.3879
  7  2.12125e-08
  8  3.80374e-08
  9  2.16661
  10  7.2092
  11  9.1397
  12  9.37393e-08
  13  11.926
  14  0.00128604
  15  5.22823e-07
  16  3.81389e-07
  17  1.69926e-05
  18  5.47516e-07
  19  17.1366
  20  16.6106
  21  0.218025
  22  0.209088
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  3.804e-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:  7.013e-01  2.091e-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.384e+00  2.180e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996923/likelihoodResults_400550401_400809601_4FGL_J1036.2+2202_daily_bin622.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) = 5497.87104296
delta logL = -0.00203167896143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5497.86901121
delta logL = 6.39574864181e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6051       1.0000          .0000       10.000    
     3 'Normalizat'    1.3838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70131       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=   5497.869     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      257 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.981        .11041E-01** at limit **
   2  Index         2.2568        5.2522        .50000       -.17443E-05
   3  Normalizat    1.3838        .13678E-01    .21024E-03    .71162E-04
   4  Prefactor     .70129        .14005E-01    .29044E-03    .58598E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25681
  Normalizat = 1.38376
  Prefactor  = 0.701293
 **********
 **   18 **HESSE 
 **********

 FCN=   5497.869     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      284 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    246.43        .11435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2568        5.0990        .50000       -.58073    
   3  Normalizat    1.3838        .50801E-01    .42048E-04   -.81100    
   4  Prefactor     .70129        .52013E-01    .11617E-04   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90512e-07
Minuit parameter uncertainties:
  1  2.73658e-05
  2  1059.1
  3  0.0508029
  4  0.0520167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996923': 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): 102
logL (Free Index) = 5497.86900967
delta logL = 1.60518447956e-06

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  2.737e-05  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.257e+00  1.059e+03  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.013e-01  5.202e-02  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.384e+00  5.080e-02  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/996923/cmap_HighResolution_400550401_400809601_4FGL_J1036.2+2202_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', job_status='DONE', photon_flux_upper_limit='5.93e-08', time_completed='2021-09-02 04:50:48.121702', job_id='996923', GAL2='0.70', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630583448.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='622' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:50:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 996923: <4FGL_J1036.2+2202_daily_bin622> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin622> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 04:35:32 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:36:13 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:36:13 2021
Terminated at Thu Sep  2 04:50:48 2021
Results reported at Thu Sep  2 04:50:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin622 159.053 22.0401 400550401 400809601 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            916 sec.

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

