aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 78 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 = 7485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1702
RA = 338.152, Dec = 11.7306
tmin = 680486401, tmax = 680745601
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='258973', job_status='RUN', time_executed='2022-07-29 01:37:09.678211', time_epoch_executed='1659083829.68' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258973/ft1_4FGL_J2232.6+1143_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258973/ft2_4FGL_J2232.6+1143_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258973/ft1_4FGL_J2232.6+1143_daily_bin1702.fits outfile=/scratch/kocevski/258973/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1702.fits ra=338.152 dec=11.7306 rad=12.0 tmin=680486401.0 tmax=680745601.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.02
user 2.74
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/258973/ft2_4FGL_J2232.6+1143_daily_bin1702.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258973/ft2_4FGL_J2232.6+1143_daily_bin1702.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/258973/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1702.fits evtable="EVENTS" outfile="/scratch/kocevski/258973/ft1_filtered_4FGL_J2232.6+1143_daily_bin1702.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 485

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258973/ft1_filtered_4FGL_J2232.6+1143_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/258973/ft2_4FGL_J2232.6+1143_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/258973/ltcube_680486401_680745601_4FGL_J2232.6+1143_daily_bin1702.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/258973/ft2_4FGL_J2232.6+1143_daily_bin1702.fits
.....................!
real 16.48
user 15.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258973/ft1_filtered_4FGL_J2232.6+1143_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/258973/ft2_4FGL_J2232.6+1143_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/258973/ltcube_680486401_680745601_4FGL_J2232.6+1143_daily_bin1702.fits outfile=/scratch/kocevski/258973/expmap_680486401_680745601_4FGL_J2232.6+1143_daily_bin1702.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/258973/ltcube_680486401_680745601_4FGL_J2232.6+1143_daily_bin1702.fits
.....................!
real 195.34
user 187.77
sys 5.05

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

Setting source of interest to:
4FGL J2232.6+1143 @ 338.152 11.7306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/258973/ft1_filtered_4FGL_J2232.6+1143_daily_bin1702.fits scfile=/scratch/kocevski/258973/ft2_4FGL_J2232.6+1143_daily_bin1702.fits outfile=/scratch/kocevski/258973/cmap_680486401_680745601_4FGL_J2232.6+1143_daily_bin1702.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=338.152 yref=11.7306 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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258973/ft1_filtered_4FGL_J2232.6+1143_daily_bin1702.fits scfile=/scratch/kocevski/258973/ft2_4FGL_J2232.6+1143_daily_bin1702.fits outfile=/scratch/kocevski/258973/cmap_HighResolution_680486401_680745601_4FGL_J2232.6+1143_daily_bin1702.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=338.152 yref=11.7306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258973/ft1_filtered_4FGL_J2232.6+1143_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/258973/ft2_4FGL_J2232.6+1143_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258973/Model_4FGL_J2232.6+1143_daily_bin1702.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/258973/ft1_filtered_4FGL_J2232.6+1143_daily_bin1702.fits.....................!
real 64.49
user 62.37
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/258973/ft1_filtered_4FGL_J2232.6+1143_daily_bin1702.fits', '/scratch/kocevski/258973/ft2_4FGL_J2232.6+1143_daily_bin1702.fits', expMap='/scratch/kocevski/258973/expmap_680486401_680745601_4FGL_J2232.6+1143_daily_bin1702.fits', expCube='/scratch/kocevski/258973/ltcube_680486401_680745601_4FGL_J2232.6+1143_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/258973/Model_4FGL_J2232.6+1143_daily_bin1702.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2232.6+1143'

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.234e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/258973/ft1_filtered_4FGL_J2232.6+1143_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/258973/ft2_4FGL_J2232.6+1143_daily_bin1702.fits
Exposure map: /scratch/kocevski/258973/expmap_680486401_680745601_4FGL_J2232.6+1143_daily_bin1702.fits
Exposure cube: /scratch/kocevski/258973/ltcube_680486401_680745601_4FGL_J2232.6+1143_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/258973/Model_4FGL_J2232.6+1143_daily_bin1702.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) = 5583.81601623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    35.878       1.0000         .10000E-03   10000.    
     4 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48994       1.0000         .10000E-03   10000.    
     7 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25397       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .91256       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4294       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8619       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3273       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3711       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3173       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.226       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .35458       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.628       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97253       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+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=   5583.806     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     2900 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.562        .18142E-02** at limit **
   2  norm          .10000E-03    2.1563        .10668E-02** at limit **
   3  norm          35.883        46.761        .66907E-04    .19473E-04
   4  norm          .10000E-03    .36206        .43497E-03** at limit **
   5  Prefactor     .10000E-03    58.684        .18142E-02** at limit **
   6  Prefactor     .35588        68.847        .16495        .74057E-04
   7  norm          .10000E-03    4.3356        .15039E-02** at limit **
   8  Prefactor     8.7881        14.996        .13519E-03    .31451E-04
   9  Prefactor     .14049        20.202        .63318E-01    .41846E-03
  10  Prefactor     .91252        .31932        .22921E-04    .28534E-02
  11  Prefactor     8.4302        11.623        .13807E-03    .23054E-05
  12  norm          1.8620        1.3231        .69350E-04   -.26786E-03
  13  Prefactor     2.3327        67.219        .26884E-03    .10974E-03
  14  Prefactor     6.3685        12.640        .15902E-03    .13040E-03
  15  Prefactor     .10000E-03    9.8630        .18142E-02** at limit **
  16  Prefactor     1.3171        .25502        .14900E-04   -.98426E-04
  17  Prefactor     32.175        50.940        .70585E-04   -.12776E-03
  18  Prefactor     .35321        26.549        .35654E-02    .81639E-04
  19  Prefactor     12.625        14.496        .11272E-03   -.22592E-04
  20  Normalizat    .97273        .34327        .37766E-03    .44680E-03
  21  Prefactor     .90041        .16779        .20346E-03    .27079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 35.8832
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.35588
  norm       = 0.0001
  Prefactor  = 8.78806
  Prefactor  = 0.140491
  Prefactor  = 0.912521
  Prefactor  = 8.43017
  norm       = 1.86198
  Prefactor  = 2.33267
  Prefactor  = 6.36849
  Prefactor  = 0.0001
  Prefactor  = 1.31711
  Prefactor  = 32.1746
  Prefactor  = 0.35321
  Prefactor  = 12.6254
  Normalizat = 0.972728
  Prefactor  = 0.900407
 **********
 **   18 **HESSE 
 **********

 FCN=   5583.806     FROM HESSE     STATUS=OK           317 CALLS     3217 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.1566        .21337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          35.883        46.760        .13381E-04   -1.4509    
   4  norm          .10000E-03    .36208        .86995E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    58.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .35588        69.248        .16422       -1.5589    
   7  norm          .10000E-03    4.3379        .30078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7881        14.995        .54077E-05   -1.5115    
   9  Prefactor     .14049        15.100        .75195E-01   -1.5633    
  10  Prefactor     .91252        .31922        .91685E-06   -1.5517    
  11  Prefactor     8.4302        11.622        .55230E-05   -1.5127    
  12  norm          1.8620        1.3231        .27740E-05   -1.5435    
  13  Prefactor     2.3327        67.186        .10754E-04   -1.5402    
  14  Prefactor     6.3685        12.638        .63607E-05   -1.5203    
  15  Prefactor     .10000E-03    9.8635        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3171        .25447        .59601E-06   -1.5478    
  17  Prefactor     32.175        50.920        .14117E-04   -1.4573    
  18  Prefactor     .35321        26.583        .14261E-03   -1.5589    
  19  Prefactor     12.625        14.492        .45089E-05   -1.4997    
  20  Normalizat    .97273        .34221        .75533E-04   -.93950    
  21  Prefactor     .90041        .16760        .40691E-04   -.96127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22329e-09
Minuit parameter uncertainties:
  1  4.91596e-05
  2  1.62959e-06
  3  46.8077
  4  3.46286e-06
  5  0.000269953
  6  9.93878
  7  2.82509e-05
  8  15.0015
  9  2.9127
  10  0.319223
  11  11.6254
  12  1.32313
  13  25.0683
  14  12.643
  15  0.000111566
  16  0.254467
  17  50.9889
  18  6.1304
  19  14.4957
  20  0.342982
  21  0.167692
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  9.125e-01  3.192e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.004e-01  1.677e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  9.727e-01  3.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.91
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.33e-07 +/- 8.13e-08
Energy Flux (Fixed Index): 8.62e-05 +/- 3.02e-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) = 5582.52032601
delta logL = 1.28531624396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5582.50586228
delta logL = 1.2997799652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81081       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.6509       1.0000          .0000       10.000    
     3 'Normalizat'    .83491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94673       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5582.506     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81082        3.0686        .42121E-02    .31551E-03
   2  Index1        2.6509        3.2782        .10880        .83530E-04
   3  Normalizat    .83494        .18335        .90900E-01    .22692E-04
   4  Prefactor     .94672        .85417E-01    .45598E-01    .20921E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.810817
  Index1     = 2.65092
  Normalizat = 0.834939
  Prefactor  = 0.946716
 **********
 **   18 **HESSE 
 **********

 FCN=   5582.506     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81082        .30509        .18675E-04   -1.5528    
   2  Index1        2.6509        .39503        .45593E-02   -.48908    
   3  Normalizat    .83494        .32395        .40266E-03   -.98785    
   4  Prefactor     .94672        .16620        .19867E-03   -.94527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94263e-10
Minuit parameter uncertainties:
  1  0.305086
  2  0.395555
  3  0.324705
  4  0.166289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258973': 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) = 5582.50586228
delta logL = 1.29977997121

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  8.108e-01  3.051e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.651e+00  3.956e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.467e-01  1.663e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  8.349e-01  3.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.85
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.65 +/- 0.40
Photon Flux (Free Index): 3.73e-07 +/- 1.33e-07
Energy Flux (Free Index): 8.31e-05 +/- 2.46e-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/258973/cmap_HighResolution_680486401_680745601_4FGL_J2232.6+1143_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.33e-07', energy_flux2='8.31e-05', photon_flux_error='8.13e-08', dlogl='1.30e+00', energy_flux='8.62e-05', photon_flux2='3.73e-07', job_status='DONE', time_completed='2022-07-29 01:46:39.093803', photon_index_error2='0.40', photon_index2='2.65', ts='21.91', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.46e-05', EG='0.97', time_epoch_completed='1659084399.09', return_code='0', job_id='258973', GAL2='0.95', EG2='0.83', return_code2='0', energy_flux_error='3.02e-05', photon_flux_error2='1.33e-07', ts2='24.85', photon_index='2.05' WHERE bin_id='1702' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:46:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 258973: <4FGL_J2232.6+1143_daily_bin1702> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1702> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jul 29 01:35:21 2022
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:35:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:35:42 2022
Terminated at Fri Jul 29 01:46:39 2022
Results reported at Fri Jul 29 01:46:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1702 338.152 11.7306 680486401 680745601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2232.6+1143 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   566.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            678 sec.

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

