/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 14 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 = 7457
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2252.0+4031_daily_bin782
RA = 343.01, Dec = 40.5232
tmin = 442022401, tmax = 442281601
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='559048', job_status='RUN', time_executed='2021-09-29 01:01:03.290208', time_epoch_executed='1632902463.29' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/559048

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/559048/ft1_4FGL_J2252.0+4031_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/559048/ft2_4FGL_J2252.0+4031_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/559048/ft1_4FGL_J2252.0+4031_daily_bin782.fits outfile=/scratch/kocevski/559048/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin782.fits ra=343.01 dec=40.5232 rad=12.0 tmin=442022401.0 tmax=442281601.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.80
user 3.54
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/559048/ft2_4FGL_J2252.0+4031_daily_bin782.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/559048/ft2_4FGL_J2252.0+4031_daily_bin782.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/559048/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin782.fits evtable="EVENTS" outfile="/scratch/kocevski/559048/ft1_filtered_4FGL_J2252.0+4031_daily_bin782.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/559048/ft1_filtered_4FGL_J2252.0+4031_daily_bin782.fits" evtable="EVENTS" scfile=/scratch/kocevski/559048/ft2_4FGL_J2252.0+4031_daily_bin782.fits sctable="SC_DATA" outfile=/scratch/kocevski/559048/ltcube_442022401_442281601_4FGL_J2252.0+4031_daily_bin782.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/559048/ft2_4FGL_J2252.0+4031_daily_bin782.fits
.....................!
real 12.61
user 12.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/559048/ft1_filtered_4FGL_J2252.0+4031_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/559048/ft2_4FGL_J2252.0+4031_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/559048/ltcube_442022401_442281601_4FGL_J2252.0+4031_daily_bin782.fits outfile=/scratch/kocevski/559048/expmap_442022401_442281601_4FGL_J2252.0+4031_daily_bin782.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/559048/ltcube_442022401_442281601_4FGL_J2252.0+4031_daily_bin782.fits
.....................!
real 192.86
user 187.72
sys 4.70

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 173 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2252.0+4031 @ 343.01 40.5232

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/559048/ft1_filtered_4FGL_J2252.0+4031_daily_bin782.fits scfile=/scratch/kocevski/559048/ft2_4FGL_J2252.0+4031_daily_bin782.fits outfile=/scratch/kocevski/559048/cmap_442022401_442281601_4FGL_J2252.0+4031_daily_bin782.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=343.01 yref=40.5232 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/559048/ft1_filtered_4FGL_J2252.0+4031_daily_bin782.fits scfile=/scratch/kocevski/559048/ft2_4FGL_J2252.0+4031_daily_bin782.fits outfile=/scratch/kocevski/559048/cmap_HighResolution_442022401_442281601_4FGL_J2252.0+4031_daily_bin782.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=343.01 yref=40.5232 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/559048/ft1_filtered_4FGL_J2252.0+4031_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/559048/ft2_4FGL_J2252.0+4031_daily_bin782.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/559048/Model_4FGL_J2252.0+4031_daily_bin782.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/559048/ft1_filtered_4FGL_J2252.0+4031_daily_bin782.fits.....................!
real 156.83
user 154.50
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/559048/ft1_filtered_4FGL_J2252.0+4031_daily_bin782.fits', '/scratch/kocevski/559048/ft2_4FGL_J2252.0+4031_daily_bin782.fits', expMap='/scratch/kocevski/559048/expmap_442022401_442281601_4FGL_J2252.0+4031_daily_bin782.fits', expCube='/scratch/kocevski/559048/ltcube_442022401_442281601_4FGL_J2252.0+4031_daily_bin782.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/559048/Model_4FGL_J2252.0+4031_daily_bin782.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2252.0+4031'

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  2.093e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/559048/ft1_filtered_4FGL_J2252.0+4031_daily_bin782.fits
Spacecraft file(s): /scratch/kocevski/559048/ft2_4FGL_J2252.0+4031_daily_bin782.fits
Exposure map: /scratch/kocevski/559048/expmap_442022401_442281601_4FGL_J2252.0+4031_daily_bin782.fits
Exposure cube: /scratch/kocevski/559048/ltcube_442022401_442281601_4FGL_J2252.0+4031_daily_bin782.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/559048/Model_4FGL_J2252.0+4031_daily_bin782.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) = 12646.7480483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6831       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11422E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.089       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22215E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14710E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.2200       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14940E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30204E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9501       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20190       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1666       1.0000         .10000E-03   10000.    
    14 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29722E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12651E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .84233E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4357       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12646.68     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     1779 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6829        .90893        .52614E-02    .17434E-03
   2  Prefactor     .10000E-03    11.275        .90712E-02** at limit **
   3  Prefactor     12.057        12.714        .28803E-02    .11179E-02
   4  Prefactor     .10000E-03    74.050        .90712E-02** at limit **
   5  Prefactor     .10000E-03    2.6428        .90712E-02** at limit **
   6  Prefactor     .10000E-03    7.6816        .90712E-02** at limit **
   7  norm          8.2245        3.9204        .34959E-02    .21979E-02
   8  Prefactor     .10000E-03    4.5597        .90712E-02** at limit **
   9  Prefactor     10.367        6.9403        .31102E-02    .42809E-03
  10  Prefactor     .10000E-03    8.3238        .10693E-01** at limit **
  11  norm          1.9499        1.2298        .74294E-02    .48214E-03
  12  Prefactor     .11734        5.4279        .99863E-01    .25722E-03
  13  norm          1.1658        3.2645        .10639E-01    .17331E-02
  14  norm          .10000E-03    3.3111        .90712E-02** at limit **
  15  Prefactor     .10000E-03    12.990        .10697E-01** at limit **
  16  norm          .10000E-03    1.2070        .38364E-01** at limit **
  17  Prefactor     .10000E-03    5.4756        .90712E-02** at limit **
  18  Prefactor     .10002E-03    42.019        .10436E-01** at limit **
  19  Normalizat    1.4363        .21438        .94064E-01    .84657E-05
  20  Prefactor     .91578        .65485E-01    .45206E-01   -.23118E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.68286
  Prefactor  = 0.0001
  Prefactor  = 12.0573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.2245
  Prefactor  = 0.0001
  Prefactor  = 10.3673
  Prefactor  = 0.0001
  norm       = 1.94992
  Prefactor  = 0.117335
  norm       = 1.16578
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Normalizat = 1.43632
  Prefactor  = 0.915777
 **********
 **   18 **HESSE 
 **********

 FCN=   12646.68     FROM HESSE     STATUS=OK           299 CALLS     2078 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6829        .90876        .49699E-04   -1.5324    
   2  Prefactor     .10000E-03    11.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.057        12.702        .11521E-03   -1.5013    
   4  Prefactor     .10000E-03    74.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6558        .17834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.6892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.2245        3.9149        .69917E-03   -1.5134    
   8  Prefactor     .10000E-03    4.5612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.367        6.9370        .12441E-03   -1.5064    
  10  Prefactor     .10000E-03    8.3352        .21387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9499        1.2251        .95494E-04   -1.5429    
  12  Prefactor     .11734        7.6887        .78151E-01   -1.5639    
  13  norm          1.1658        3.2020        .32978E-03   -1.5492    
  14  norm          .10000E-03    3.3144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.092        .21394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.8871        .23928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    42.103        .20871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4363        .24568        .41662E-03   -.79584    
  20  Prefactor     .91578        .75287E-01    .15753E-03   -.95592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47478e-09
Minuit parameter uncertainties:
  1  0.908759
  2  8.41373e-06
  3  12.7044
  4  0.0002504
  5  2.48945e-06
  6  2.65682e-06
  7  3.91499
  8  2.74938e-07
  9  6.93754
  10  3.93292e-05
  11  1.22511
  12  1.89908
  13  3.20247
  14  6.13954e-08
  15  0.000110923
  16  2.98627e-06
  17  4.02879e-07
  18  0.00166554
  19  0.245885
  20  0.0752953
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.037e+01  6.938e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  9.158e-01  7.530e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.436e+00  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.08
Ra Dec: 343.010 40.523
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 5.50e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 2.25e-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) = 12646.5230093
delta logL = 0.161405014291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12646.4348586
delta logL = 0.249555694832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0507       1.0000         .10000E-03   10000.    
     2 'Index     '    .93408       1.0000          .0000       10.000    
     3 'Normalizat'    1.4690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91683       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12646.43     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      245 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0711        3.5143        .58070E-02   -.56542E-03
   2  Index         .93624        .53843        .38377       -.10512E-03
   3  Normalizat    1.4684        .20797        .93276E-01    .54069E-04
   4  Prefactor     .91691        .64874E-01    .45219E-01   -.17102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.07115
  Index      = 0.936239
  Normalizat = 1.46839
  Prefactor  = 0.916909
 **********
 **   18 **HESSE 
 **********

 FCN=   12646.43     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0711        6.4481        .19078E-03   -1.5357    
   2  Index         .93624        .93347        .17649E-01   -.94886    
   3  Normalizat    1.4684        .23785        .41311E-03   -.78671    
   4  Prefactor     .91691        .74444E-01    .15757E-03   -.95553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94547e-08
Minuit parameter uncertainties:
  1  6.4496
  2  0.950237
  3  0.238035
  4  0.0744524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/559048': 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) = 12646.43485
delta logL = 0.249564364833

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  3.071e+00  6.450e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  9.362e-01  9.502e-01  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  9.169e-01  7.445e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.468e+00  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.54
Ra Dec: 343.010 40.523
Photon Index (Free Index): 0.94 +/- 0.95
Photon Flux (Free Index): 4.78e-09 +/- 7.65e-09
Energy Flux (Free Index): 8.04e-05 +/- 1.08e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/559048/cmap_HighResolution_442022401_442281601_4FGL_J2252.0+4031_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.50e-08', energy_flux2='8.04e-05', photon_flux_error='3.68e-08', dlogl='2.50e-01', energy_flux='3.36e-05', photon_flux2='4.78e-09', job_status='DONE', time_completed='2021-09-29 01:16:07.312061', photon_index_error2='0.95', photon_index2='0.94', ts='12.08', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.08e-04', EG='1.44', time_epoch_completed='1632903367.31', return_code='0', job_id='559048', GAL2='0.92', EG2='1.47', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='7.65e-09', ts2='12.54', photon_index='2.05' WHERE bin_id='782' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:16:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 559048: <4FGL_J2252.0+4031_daily_bin782> in cluster <slac> Done

Job <4FGL_J2252.0+4031_daily_bin782> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 01:00:33 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:00:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:00:35 2021
Terminated at Wed Sep 29 01:16:08 2021
Results reported at Wed Sep 29 01:16:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin782 343.01 40.5232 442022401 442281601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2252.0+4031 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   848.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

