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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1410
RA = 159.053, Dec = 22.0401
tmin = 604800001, tmax = 605059201
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='1343', job_status='RUN', time_executed='2021-09-02 04:51:58.229565', time_epoch_executed='1630583518.23' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1343

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1343/ft1_4FGL_J1036.2+2202_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1343/ft2_4FGL_J1036.2+2202_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1343/ft1_4FGL_J1036.2+2202_daily_bin1410.fits outfile=/scratch/kocevski/1343/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1410.fits ra=159.053 dec=22.0401 rad=12.0 tmin=604800001.0 tmax=605059201.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.14
user 4.85
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1343/ft2_4FGL_J1036.2+2202_daily_bin1410.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/1343/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1410.fits evtable="EVENTS" outfile="/scratch/kocevski/1343/ft1_filtered_4FGL_J1036.2+2202_daily_bin1410.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.54
user 0.36
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1343/ft1_filtered_4FGL_J1036.2+2202_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/1343/ft2_4FGL_J1036.2+2202_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/1343/ltcube_604800001_605059201_4FGL_J1036.2+2202_daily_bin1410.fits outfile=/scratch/kocevski/1343/expmap_604800001_605059201_4FGL_J1036.2+2202_daily_bin1410.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/1343/ltcube_604800001_605059201_4FGL_J1036.2+2202_daily_bin1410.fits
.....................!
real 192.62
user 187.59
sys 4.48

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/1343/ft1_filtered_4FGL_J1036.2+2202_daily_bin1410.fits scfile=/scratch/kocevski/1343/ft2_4FGL_J1036.2+2202_daily_bin1410.fits outfile=/scratch/kocevski/1343/cmap_604800001_605059201_4FGL_J1036.2+2202_daily_bin1410.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1343/ft1_filtered_4FGL_J1036.2+2202_daily_bin1410.fits scfile=/scratch/kocevski/1343/ft2_4FGL_J1036.2+2202_daily_bin1410.fits outfile=/scratch/kocevski/1343/cmap_HighResolution_604800001_605059201_4FGL_J1036.2+2202_daily_bin1410.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.58
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.160       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10713E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5059       1.0000         .10000E-03   10000.    
     5 'norm      '    9.1090       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.829       1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.074       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.829       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2949       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .40063E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10666E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1250       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10669E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3833       1.0000         .10000E-03   10000.    
    19 'norm      '    3.1952       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2067       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92005       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=   5132.475     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2385 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.153        92.028       -.34251E-05   -.50492E-04
   2  Prefactor     .10000E-03    51.307        .28479E-05** at limit **
   3  Prefactor     .10005E-03    12.453       -.50487E-05** at limit **
   4  Prefactor     1.4989        4.0738       -.51543E-06   -.30119E-03
   5  norm          9.1053        11.888       -.32305E-06   -.21078E-03
   6  Prefactor     14.853        44.353        .51028E-05   -.60546E-05
   7  Prefactor     58.087        68.797        .17550E-05   -.14743E-04
   8  Prefactor     30.833        12.028       -.16085E-06   -.13012E-03
   9  Prefactor     5.2935        3.7266       -.10956E-06   -.12052E-03
  10  Prefactor     .10000E-03    1.7033        .31158E-07** at limit **
  11  Prefactor     .10002E-03    67.444       -.22472E-04** at limit **
  12  Prefactor     .10000E-03    10.285        .13645E-05** at limit **
  13  Prefactor     .10000E-03    6.2470        .14136E-06** at limit **
  14  Prefactor     .10000E-03    8.5497       -.45544E-06** at limit **
  15  Prefactor     .10000E-03    5.2946       -.20599E-07** at limit **
  16  norm          2.1249        1.9674       -.11526E-08   -.17931E-04
  17  Prefactor     .10000E-03    3.2192        .16315E-06** at limit **
  18  Prefactor     7.3810        6.6312        .34979E-06    .62174E-04
  19  norm          3.1957        18.679       -.58469E-05   -.94888E-05
  20  Prefactor     .10000E-03    11.817       -.67707E-06** at limit **
  21  Normalizat    1.2065        .21290       -.11989E-05   -.32433E-03
  22  Prefactor     .92050        .21048        .74422E-06   -.24714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.1527
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 1.4989
  norm       = 9.10526
  Prefactor  = 14.8531
  Prefactor  = 58.0875
  Prefactor  = 30.8331
  Prefactor  = 5.29353
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12495
  Prefactor  = 0.0001
  Prefactor  = 7.38105
  norm       = 3.19567
  Prefactor  = 0.0001
  Normalizat = 1.20654
  Prefactor  = 0.920496
 **********
 **   18 **HESSE 
 **********

 FCN=   5132.475     FROM HESSE     STATUS=OK           342 CALLS     2727 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.153        91.353        .79861E-04   -1.4704    
   2  Prefactor     .10000E-03    51.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    34.846        .39430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4989        4.0193        .21916E-03   -1.5463    
   5  norm          9.1053        11.822        .13280E-03   -1.5104    
   6  Prefactor     14.853        44.376        .10401E-03   -1.4937    
   7  Prefactor     58.087        68.816        .52644E-04   -1.4182    
   8  Prefactor     30.833        11.954        .72162E-04   -1.4597    
   9  Prefactor     5.2935        3.7004        .10654E-03   -1.5248    
  10  Prefactor     .10000E-03    1.7049        .91307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    73.443        .38605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2599        .17481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2980        .16098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1249        1.9575        .93274E-04   -1.5416    
  17  Prefactor     .10000E-03    3.3210        .25083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.3810        6.6351        .73803E-03   -1.5165    
  19  norm          3.1957        18.657        .11334E-02   -1.5350    
  20  Prefactor     .10000E-03    11.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2065        .24845        .24673E-03   -.86401    
  22  Prefactor     .92050        .24761        .28002E-03   -.95429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87794e-09
Minuit parameter uncertainties:
  1  91.8667
  2  2.44475e-05
  3  0.00258748
  4  4.01997
  5  11.8254
  6  44.4749
  7  68.91
  8  11.9546
  9  3.70054
  10  2.04099e-06
  11  0.00258745
  12  5.03112e-06
  13  1.01991e-05
  14  3.37399e-05
  15  5.9389e-06
  16  1.95759
  17  2.93521e-05
  18  6.63579
  19  15.4501
  20  2.70426e-05
  21  0.248694
  22  0.247914
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  3.083e+01  1.195e+01  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:  9.205e-01  2.479e-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.207e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.55
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.72e-07 +/- 6.68e-08
Energy Flux (Fixed Index): 4.46e-05 +/- 1.73e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5132.39617128
delta logL = 0.0790201582122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5132.3956249
delta logL = 0.0795665370133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.281       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4543       1.0000          .0000       10.000    
     3 'Normalizat'    1.2252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90567       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=   5132.396     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      294 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.281        13.669        .69460E-04   -.62529E-03
   2  Index         2.4543        .39426        .53200E-02   -.20185E-03
   3  Normalizat    1.2253        .24683        .24521E-03    .35745E-04
   4  Prefactor     .90561        .24530        .28196E-03    .38586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.2813
  Index      = 2.45432
  Normalizat = 1.22525
  Prefactor  = 0.905606
 **********
 **   18 **HESSE 
 **********

 FCN=   5132.396     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.281        13.542        .13892E-04   -1.4554    
   2  Index         2.4543        .39041        .21280E-03   -.53418    
   3  Normalizat    1.2253        .24706        .98086E-05   -.85826    
   4  Prefactor     .90561        .24550        .11278E-04   -.95945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90157e-10
Minuit parameter uncertainties:
  1  13.5433
  2  0.39095
  3  0.247291
  4  0.245797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1343': 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) = 5132.39562485
delta logL = 0.0795665854466

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  3.328e+01  1.354e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.454e+00  3.910e-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:  9.056e-01  2.458e-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.225e+00  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.77
Ra Dec: 159.053 22.040
Photon Index (Free Index): 2.45 +/- 0.39
Photon Flux (Free Index): 1.57e-07 +/- 7.26e-08
Energy Flux (Free Index): 4.80e-05 +/- 2.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/1343/cmap_HighResolution_604800001_605059201_4FGL_J1036.2+2202_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.72e-07', energy_flux2='4.80e-05', photon_flux_error='6.68e-08', dlogl='7.96e-02', energy_flux='4.46e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-02 05:01:13.779452', photon_index_error2='0.39', photon_index2='2.45', ts='13.55', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='1.21', time_epoch_completed='1630584073.78', return_code='0', job_id='1343', GAL2='0.91', EG2='1.23', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='7.26e-08', ts2='13.77', photon_index='2.61' WHERE bin_id='1410' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:01:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 1343: <4FGL_J1036.2+2202_daily_bin1410> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1410 159.053 22.0401 604800001 605059201 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 :                                   544.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            653 sec.

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

