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


Performing analysis on: 4FGL_J2252.0+4031_daily_bin143
RA = 343.01, Dec = 40.5232
tmin = 276393601, tmax = 276652801
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='555649', job_status='RUN', time_executed='2021-09-29 00:50:37.220067', time_epoch_executed='1632901837.22' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555649/ft1_4FGL_J2252.0+4031_daily_bin143.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555649/ft2_4FGL_J2252.0+4031_daily_bin143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555649/ft1_4FGL_J2252.0+4031_daily_bin143.fits outfile=/scratch/kocevski/555649/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin143.fits ra=343.01 dec=40.5232 rad=12.0 tmin=276393601.0 tmax=276652801.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.50
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555649/ft2_4FGL_J2252.0+4031_daily_bin143.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/555649/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin143.fits evtable="EVENTS" outfile="/scratch/kocevski/555649/ft1_filtered_4FGL_J2252.0+4031_daily_bin143.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555649/ft1_filtered_4FGL_J2252.0+4031_daily_bin143.fits" evtable="EVENTS" scfile=/scratch/kocevski/555649/ft2_4FGL_J2252.0+4031_daily_bin143.fits sctable="SC_DATA" outfile=/scratch/kocevski/555649/ltcube_276393601_276652801_4FGL_J2252.0+4031_daily_bin143.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/555649/ft2_4FGL_J2252.0+4031_daily_bin143.fits
.....................!
real 11.90
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555649/ft1_filtered_4FGL_J2252.0+4031_daily_bin143.fits evtable="EVENTS" scfile=/scratch/kocevski/555649/ft2_4FGL_J2252.0+4031_daily_bin143.fits sctable="SC_DATA" expcube=/scratch/kocevski/555649/ltcube_276393601_276652801_4FGL_J2252.0+4031_daily_bin143.fits outfile=/scratch/kocevski/555649/expmap_276393601_276652801_4FGL_J2252.0+4031_daily_bin143.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/555649/ltcube_276393601_276652801_4FGL_J2252.0+4031_daily_bin143.fits
.....................!
real 191.32
user 186.03
sys 4.83

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/555649/ft1_filtered_4FGL_J2252.0+4031_daily_bin143.fits scfile=/scratch/kocevski/555649/ft2_4FGL_J2252.0+4031_daily_bin143.fits outfile=/scratch/kocevski/555649/cmap_276393601_276652801_4FGL_J2252.0+4031_daily_bin143.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555649/ft1_filtered_4FGL_J2252.0+4031_daily_bin143.fits scfile=/scratch/kocevski/555649/ft2_4FGL_J2252.0+4031_daily_bin143.fits outfile=/scratch/kocevski/555649/cmap_HighResolution_276393601_276652801_4FGL_J2252.0+4031_daily_bin143.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/555649/ft1_filtered_4FGL_J2252.0+4031_daily_bin143.fits evtable="EVENTS" scfile=/scratch/kocevski/555649/ft2_4FGL_J2252.0+4031_daily_bin143.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555649/Model_4FGL_J2252.0+4031_daily_bin143.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/555649/ft1_filtered_4FGL_J2252.0+4031_daily_bin143.fits....................!
real 148.48
user 147.01
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555649/ft1_filtered_4FGL_J2252.0+4031_daily_bin143.fits', '/scratch/kocevski/555649/ft2_4FGL_J2252.0+4031_daily_bin143.fits', expMap='/scratch/kocevski/555649/expmap_276393601_276652801_4FGL_J2252.0+4031_daily_bin143.fits', expCube='/scratch/kocevski/555649/ltcube_276393601_276652801_4FGL_J2252.0+4031_daily_bin143.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555649/Model_4FGL_J2252.0+4031_daily_bin143.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/555649/ft1_filtered_4FGL_J2252.0+4031_daily_bin143.fits
Spacecraft file(s): /scratch/kocevski/555649/ft2_4FGL_J2252.0+4031_daily_bin143.fits
Exposure map: /scratch/kocevski/555649/expmap_276393601_276652801_4FGL_J2252.0+4031_daily_bin143.fits
Exposure cube: /scratch/kocevski/555649/ltcube_276393601_276652801_4FGL_J2252.0+4031_daily_bin143.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555649/Model_4FGL_J2252.0+4031_daily_bin143.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) = 12244.1424684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7345       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11513E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.024       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12218E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21487E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.4727       1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.253       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6447       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32425E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2651       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.6445       1.0000         .10000E-03   10000.    
    14 'norm      '    .10593E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0804       1.0000         .10000E-03   10000.    
    16 'norm      '    5.6978       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12752E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0851       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91654       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12244.11     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1749 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7343        .93820       -.59412E-07   -.56850E-03
   2  Prefactor     .10000E-03    8.2934        .38913E-05** at limit **
   3  Prefactor     14.036        14.867        .89627E-06   -.20098E-03
   4  Prefactor     .10000E-03    39.248       -.92253E-06** at limit **
   5  Prefactor     .10005E-03    2.6049        .10252E-05** at limit **
   6  Prefactor     .10000E-03    4.2266       -.18377E-06** at limit **
   7  norm          6.4726        3.5872        .79589E-06   -.73497E-03
   8  Prefactor     41.245        23.460       -.42371E-05    .35288E-03
   9  Prefactor     1.6574        4.5665       -.57749E-05   -.92325E-03
  10  Prefactor     .10000E-03    8.5642        .15700E-05** at limit **
  11  norm          3.2654        1.6157       -.81570E-07   -.49669E-03
  12  Prefactor     .10000E-03    3.0923        .42696E-07** at limit **
  13  norm          3.6382        5.5312       -.97329E-07   -.69172E-03
  14  norm          .10000E-03    6.4609       -.78873E-06** at limit **
  15  Prefactor     3.0887        27.571        .79572E-05   -.16027E-03
  16  norm          5.6978        2.6277        .91300E-08    .17260E-04
  17  Prefactor     .10000E-03    7.5569       -.21480E-05** at limit **
  18  Prefactor     .10000E-03    13.361       -.54958E-05** at limit **
  19  Normalizat    1.0851        .21840       -.26081E-06   -.13832E-03
  20  Prefactor     .91652        .67344E-01    .21235E-06   -.36100E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.73429
  Prefactor  = 0.0001
  Prefactor  = 14.0361
  Prefactor  = 0.0001
  Prefactor  = 0.000100051
  Prefactor  = 0.0001
  norm       = 6.47263
  Prefactor  = 41.2447
  Prefactor  = 1.65736
  Prefactor  = 0.0001
  norm       = 3.26544
  Prefactor  = 0.0001
  norm       = 3.6382
  norm       = 0.0001
  Prefactor  = 3.08875
  norm       = 5.69778
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.08513
  Prefactor  = 0.916523
 **********
 **   18 **HESSE 
 **********

 FCN=   12244.11     FROM HESSE     STATUS=OK           289 CALLS     2038 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7343        .93801        .49076E-04   -1.5321    
   2  Prefactor     .10000E-03    8.2288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.036        14.829        .10696E-03   -1.4958    
   4  Prefactor     .10000E-03    39.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10005E-03    16.263        .32509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.4726        3.4503        .14228E-03   -1.5199    
   8  Prefactor     41.245        22.935        .62411E-04   -1.4423    
   9  Prefactor     1.6574        4.9807        .32936E-03   -1.5450    
  10  Prefactor     .10000E-03    8.5664        .21357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2654        1.6139        .93743E-04   -1.5347    
  12  Prefactor     .10000E-03    3.0975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.6382        5.4301        .21161E-03   -1.5326    
  14  norm          .10000E-03    6.5572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0887        26.326        .23110E-03   -1.5356    
  16  norm          5.6978        2.6277        .11822E-03   -1.5231    
  17  Prefactor     .10000E-03    7.5403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0851        .24305        .44386E-03   -.90231    
  20  Prefactor     .91652        .75792E-01    .14976E-03   -.95566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06784e-09
Minuit parameter uncertainties:
  1  0.938014
  2  0.000121863
  3  14.8331
  4  7.91395e-05
  5  0.00182469
  6  3.55868e-06
  7  3.4504
  8  22.9396
  9  4.98195
  10  3.42013e-05
  11  1.61394
  12  3.08654e-06
  13  5.43083
  14  2.20024e-05
  15  18.0452
  16  2.62779
  17  5.38697e-05
  18  0.000187571
  19  0.243298
  20  0.0758005
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.657e+00  4.982e+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.165e-01  7.580e-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.085e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 343.010 40.523
Photon Flux Upper Limit: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555649/likelihoodResults_276393601_276652801_4FGL_J2252.0+4031_daily_bin143.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12244.1052227
delta logL = 0.00808171178505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12244.1040875
delta logL = 0.00921695301076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4377       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2036       1.0000          .0000       10.000    
     3 'Normalizat'    1.0834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91674       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12244.10     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      248 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4373        5.2462        .35274E-03   -.24430E-03
   2  Index         2.2037        1.2707        .12355E-01    .31613E-03
   3  Normalizat    1.0835        .23702        .44415E-03   -.22090E-03
   4  Prefactor     .91670        .74704E-01    .14974E-03   -.67452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43728
  Index      = 2.20369
  Normalizat = 1.08352
  Prefactor  = 0.916703
 **********
 **   18 **HESSE 
 **********

 FCN=   12244.10     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4373        4.6956        .14110E-04   -1.5468    
   2  Index         2.2037        1.1425        .24710E-02   -.59350    
   3  Normalizat    1.0835        .23710        .17766E-04   -.90283    
   4  Prefactor     .91670        .74718E-01    .29948E-04   -.95560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52033e-10
Minuit parameter uncertainties:
  1  4.69678
  2  1.15746
  3  0.237337
  4  0.0747263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555649': 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) = 12244.1040873
delta logL = 0.0092171420747

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.437e+00  4.697e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.204e+00  1.157e+00  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.167e-01  7.473e-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.084e+00  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 343.010 40.523

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/555649/cmap_HighResolution_276393601_276652801_4FGL_J2252.0+4031_daily_bin143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-29 01:05:43.988590', job_id='555649', GAL2='0.92', fit_tolerance='1e-08', EG2='1.08', EG='1.09', time_epoch_completed='1632902743.99', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='9.22e-03', ts2='0.15', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='143' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 555649: <4FGL_J2252.0+4031_daily_bin143> in cluster <slac> Done

Job <4FGL_J2252.0+4031_daily_bin143> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 00:50:20 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:50:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:50:22 2021
Terminated at Wed Sep 29 01:05:44 2021
Results reported at Wed Sep 29 01:05:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin143 343.01 40.5232 276393601 276652801 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 :                                   904.16 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             388.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

