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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1407
RA = 343.308, Dec = -12.5416
tmin = 604022401, tmax = 604281601
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='571367', job_status='RUN', time_executed='2021-09-29 01:41:38.546142', time_epoch_executed='1632904898.55' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571367

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571367/ft1_4FGL_J2253.2-1232_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571367/ft2_4FGL_J2253.2-1232_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571367/ft1_4FGL_J2253.2-1232_daily_bin1407.fits outfile=/scratch/kocevski/571367/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1407.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=604022401.0 tmax=604281601.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.18
user 3.94
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/571367/ft2_4FGL_J2253.2-1232_daily_bin1407.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571367/ft2_4FGL_J2253.2-1232_daily_bin1407.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/571367/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1407.fits evtable="EVENTS" outfile="/scratch/kocevski/571367/ft1_filtered_4FGL_J2253.2-1232_daily_bin1407.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571367/ft1_filtered_4FGL_J2253.2-1232_daily_bin1407.fits" evtable="EVENTS" scfile=/scratch/kocevski/571367/ft2_4FGL_J2253.2-1232_daily_bin1407.fits sctable="SC_DATA" outfile=/scratch/kocevski/571367/ltcube_604022401_604281601_4FGL_J2253.2-1232_daily_bin1407.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/571367/ft2_4FGL_J2253.2-1232_daily_bin1407.fits
.....................!
real 11.91
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571367/ft1_filtered_4FGL_J2253.2-1232_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/571367/ft2_4FGL_J2253.2-1232_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/571367/ltcube_604022401_604281601_4FGL_J2253.2-1232_daily_bin1407.fits outfile=/scratch/kocevski/571367/expmap_604022401_604281601_4FGL_J2253.2-1232_daily_bin1407.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/571367/ltcube_604022401_604281601_4FGL_J2253.2-1232_daily_bin1407.fits
.....................!
real 190.59
user 185.18
sys 5.04

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2253.2-1232 @ 343.308 -12.5416

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/571367/ft1_filtered_4FGL_J2253.2-1232_daily_bin1407.fits scfile=/scratch/kocevski/571367/ft2_4FGL_J2253.2-1232_daily_bin1407.fits outfile=/scratch/kocevski/571367/cmap_604022401_604281601_4FGL_J2253.2-1232_daily_bin1407.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.308 yref=-12.5416 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.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571367/ft1_filtered_4FGL_J2253.2-1232_daily_bin1407.fits scfile=/scratch/kocevski/571367/ft2_4FGL_J2253.2-1232_daily_bin1407.fits outfile=/scratch/kocevski/571367/cmap_HighResolution_604022401_604281601_4FGL_J2253.2-1232_daily_bin1407.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.308 yref=-12.5416 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571367/ft1_filtered_4FGL_J2253.2-1232_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/571367/ft2_4FGL_J2253.2-1232_daily_bin1407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571367/Model_4FGL_J2253.2-1232_daily_bin1407.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/571367/ft1_filtered_4FGL_J2253.2-1232_daily_bin1407.fits.....................!
real 71.44
user 70.15
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/571367/ft1_filtered_4FGL_J2253.2-1232_daily_bin1407.fits', '/scratch/kocevski/571367/ft2_4FGL_J2253.2-1232_daily_bin1407.fits', expMap='/scratch/kocevski/571367/expmap_604022401_604281601_4FGL_J2253.2-1232_daily_bin1407.fits', expCube='/scratch/kocevski/571367/ltcube_604022401_604281601_4FGL_J2253.2-1232_daily_bin1407.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/571367/Model_4FGL_J2253.2-1232_daily_bin1407.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2253.2-1232'

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  7.270e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.646e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/571367/ft1_filtered_4FGL_J2253.2-1232_daily_bin1407.fits
Spacecraft file(s): /scratch/kocevski/571367/ft2_4FGL_J2253.2-1232_daily_bin1407.fits
Exposure map: /scratch/kocevski/571367/expmap_604022401_604281601_4FGL_J2253.2-1232_daily_bin1407.fits
Exposure cube: /scratch/kocevski/571367/ltcube_604022401_604281601_4FGL_J2253.2-1232_daily_bin1407.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/571367/Model_4FGL_J2253.2-1232_daily_bin1407.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) = 7858.66406862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.168       1.0000         .10000E-03   10000.    
     2 'Prefactor '    741.52       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    21.550       1.0000         .10000E-03   10000.    
     6 'Prefactor '    132.80       1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.902       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15095E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    18.272       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .92154       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.358       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .86161E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.437       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.505       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.973       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .55909       1.0000         .10000E-03   10000.    
    19 'norm      '    6.6878       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1673       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6023       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82603       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+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=   7858.611     FROM MIGRAD    STATUS=CONVERGED   1005 CALLS     3261 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.160        18.800        .74184E-04   -.35554E-04
   2  Prefactor     741.76        189.40        .76331E-04    .85760E-04
   3  Prefactor     .10000E-03    3.0701        .15082E-02** at limit **
   4  Prefactor     .10000E-03    29.022        .18142E-02** at limit **
   5  norm          21.550        7.9038        .43141E-03   -.24073E-03
   6  Prefactor     132.70        97.121        .17472E-03   -.46629E-04
   7  Prefactor     53.901        19.091        .54633E-04   -.32463E-04
   8  norm          1.6079        1.1961        .79630E-04   -.60562E-03
   9  Prefactor     .10419E-03    123.09        .10522    ** at limit **
  10  norm          18.280        5.5023        .52057E-04   -.32892E-02
  11  Prefactor     .57966        155.96        .14732       -.41484E-04
  12  Prefactor     39.380        20.016        .63890E-04   -.17146E-03
  13  Prefactor     .10015E-03    44.878        .50013E-02** at limit **
  14  norm          18.445        17.340        .93278E-04    .42536E-04
  15  Prefactor     35.512        70.672        .67256E-04    .21400E-04
  16  Prefactor     19.094        33.455        .91951E-04   -.90256E-05
  17  Prefactor     .10000E-03    6.0072        .18142E-02** at limit **
  18  norm          .55858        1.3293        .15167E-03   -.69688E-03
  19  norm          6.6878        6.9313        .77582E-03   -.81973E-04
  20  Prefactor     .10000E-03    32.017        .18142E-02** at limit **
  21  Prefactor     7.1536        19.930        .14983E-03   -.13506E-04
  22  Prefactor     .10000E-03    36.978        .18142E-02** at limit **
  23  Normalizat    1.6025        .31843        .33195E-03   -.20228E-03
  24  Prefactor     .82585        .21816        .32764E-03   -.17710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.1604
  Prefactor  = 741.765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.5499
  Prefactor  = 132.698
  Prefactor  = 53.9006
  norm       = 1.6079
  Prefactor  = 0.000104194
  norm       = 18.2798
  Prefactor  = 0.579662
  Prefactor  = 39.3798
  Prefactor  = 0.000100154
  norm       = 18.4446
  Prefactor  = 35.5122
  Prefactor  = 19.0941
  Prefactor  = 0.0001
  norm       = 0.558582
  norm       = 6.68781
  Prefactor  = 0.0001
  Prefactor  = 7.15362
  Prefactor  = 0.0001
  Normalizat = 1.60249
  Prefactor  = 0.825852
 **********
 **   18 **HESSE 
 **********

 FCN=   7858.611     FROM HESSE     STATUS=OK           395 CALLS     3656 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.160        18.798        .29673E-05   -1.4627    
   2  Prefactor     741.76        189.38        .15266E-04   -1.0191    
   3  Prefactor     .10000E-03    3.0709        .30164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.550        7.9031        .17257E-04   -1.4779    
   6  Prefactor     132.70        97.120        .34943E-04   -1.3399    
   7  Prefactor     53.901        19.091        .10927E-04   -1.4238    
   8  norm          1.6079        1.1961        .31852E-05   -1.5454    
   9  Prefactor     .10419E-03    110.25        .11101       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.280        5.4581        .10411E-04   -1.4853    
  11  Prefactor     .57966        149.82        .14962       -1.5556    
  12  Prefactor     39.380        20.000        .12778E-04   -1.4452    
  13  Prefactor     .10015E-03    45.560        .10003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.445        17.340        .37311E-05   -1.4849    
  15  Prefactor     35.512        70.663        .13451E-04   -1.4515    
  16  Prefactor     19.094        33.458        .36780E-05   -1.4834    
  17  Prefactor     .10000E-03    6.0074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .55858        1.3290        .60668E-05   -1.5558    
  19  norm          6.6878        6.9291        .31033E-04   -1.5191    
  20  Prefactor     .10000E-03    32.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.1536        19.929        .59933E-05   -1.5173    
  22  Prefactor     .10000E-03    36.978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6025        .31853        .66390E-04   -.74938    
  24  Prefactor     .82585        .21831        .13106E-04   -.98782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33334e-09
Minuit parameter uncertainties:
  1  18.8021
  2  189.548
  3  7.62812e-06
  4  1.30982e-05
  5  7.9035
  6  97.2365
  7  19.0935
  8  1.1961
  9  0.043087
  10  5.45825
  11  18.6837
  12  20.0036
  13  0.00529382
  14  17.3447
  15  70.8298
  16  33.4912
  17  1.33736e-05
  18  1.32912
  19  6.9299
  20  5.7994e-06
  21  19.9479
  22  3.06189e-06
  23  0.318932
  24  0.218542
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  5.797e-01  1.868e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.646e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  8.259e-01  2.185e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.602e+00  3.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 343.308 -12.542
Photon Flux Upper Limit: 2.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/571367/likelihoodResults_604022401_604281601_4FGL_J2253.2-1232_daily_bin1407.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) = 7858.61106542
delta logL = 1.80695678864e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7858.61106524
delta logL = 3.5969333112e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57966       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6467       1.0000          .0000       10.000    
     3 'Normalizat'    1.6025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82585       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+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=   7858.611     FROM MIGRAD    STATUS=FAILED       104 CALLS      288 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60477        1227.5        .14745       -.11515E-02
   2  Index         2.6868        5.9193        .41485E-01   -.39749E-03
   3  Normalizat    1.6024        .35183E-01    .33195E-03    .33714E-02
   4  Prefactor     .82588        .25487E-01    .32764E-03    .27157E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7858.611     FROM SIMPLEX   STATUS=PROGRESS      80 CALLS      368 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62413        1227.5        .32058E-02   -.11515E-02
   2  Index         2.6868        5.9193        .23846E-02   -.39749E-03
   3  Normalizat    1.6024        .35183E-01    .35832E-04    .33714E-02
   4  Prefactor     .82588        .25487E-01    .19014E-04    .27157E-02
                               ERR DEF=  .500    

 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=   7858.611     FROM MIGRAD    STATUS=FAILED        99 CALLS      467 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64236        6791.3        .14516        .10682E-03
   2  Index         2.6909        6.3447        .66376E-04    .21067E-04
   3  Normalizat    1.6023        .75798E-01    .13278E-04   -.73239E-03
   4  Prefactor     .82592        .51760E-01    .13106E-04    .82028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.642363
  Index      = 2.69087
  Normalizat = 1.60233
  Prefactor  = 0.825916
 **********
 **   18 **HESSE 
 **********

 FCN=   7858.611     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      500 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64236        6829.1        .14441       -7.8700    
   2  Index         2.6909        6.3454        .13275E-04   -.48005    
   3  Normalizat    1.6023        .77213E-01    .26556E-05   -.74942    
   4  Prefactor     .82592        .52339E-01    .26211E-05   -.98780    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.30582e-08
Minuit parameter uncertainties:
  1  102.836
  2  60.5957
  3  0.0772185
  4  0.0523426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571367': 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): 1
logL (Free Index) = 7858.61104482
delta logL = 2.07770544876e-05

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  6.424e-01  1.028e+02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.691e+00  6.060e+01  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  8.259e-01  5.234e-02  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.602e+00  7.722e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 343.308 -12.542

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/571367/cmap_HighResolution_604022401_604281601_4FGL_J2253.2-1232_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', job_status='DONE', photon_flux_upper_limit='2.28e-07', time_completed='2021-09-29 01:55:20.132377', job_id='571367', GAL2='0.83', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1632905720.13', return_code2='1', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.08e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1407' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:55:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 571367: <4FGL_J2253.2-1232_daily_bin1407> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1407> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 01:40:43 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:40:45 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:40:45 2021
Terminated at Wed Sep 29 01:55:21 2021
Results reported at Wed Sep 29 01:55:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1407 343.308 -12.5416 604022401 604281601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2253.2-1232 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   798.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            878 sec.

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

