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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin66
RA = 338.152, Dec = 11.7306
tmin = 256435201, tmax = 256694401
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='342183', job_status='RUN', time_executed='2021-09-28 13:48:33.094310', time_epoch_executed='1632862113.09' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342183

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342183/ft1_4FGL_J2232.6+1143_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342183/ft2_4FGL_J2232.6+1143_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342183/ft1_4FGL_J2232.6+1143_daily_bin66.fits outfile=/scratch/kocevski/342183/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin66.fits ra=338.152 dec=11.7306 rad=12.0 tmin=256435201.0 tmax=256694401.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 1.46
user 1.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342183/ft2_4FGL_J2232.6+1143_daily_bin66.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/342183/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/342183/ft1_filtered_4FGL_J2232.6+1143_daily_bin66.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.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342183/ft1_filtered_4FGL_J2232.6+1143_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/342183/ft2_4FGL_J2232.6+1143_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/342183/ltcube_256435201_256694401_4FGL_J2232.6+1143_daily_bin66.fits outfile=/scratch/kocevski/342183/expmap_256435201_256694401_4FGL_J2232.6+1143_daily_bin66.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/342183/ltcube_256435201_256694401_4FGL_J2232.6+1143_daily_bin66.fits
.....................!
real 191.41
user 185.14
sys 5.91

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/342183/ft1_filtered_4FGL_J2232.6+1143_daily_bin66.fits scfile=/scratch/kocevski/342183/ft2_4FGL_J2232.6+1143_daily_bin66.fits outfile=/scratch/kocevski/342183/cmap_256435201_256694401_4FGL_J2232.6+1143_daily_bin66.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342183/ft1_filtered_4FGL_J2232.6+1143_daily_bin66.fits scfile=/scratch/kocevski/342183/ft2_4FGL_J2232.6+1143_daily_bin66.fits outfile=/scratch/kocevski/342183/cmap_HighResolution_256435201_256694401_4FGL_J2232.6+1143_daily_bin66.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/342183/ft1_filtered_4FGL_J2232.6+1143_daily_bin66.fits', '/scratch/kocevski/342183/ft2_4FGL_J2232.6+1143_daily_bin66.fits', expMap='/scratch/kocevski/342183/expmap_256435201_256694401_4FGL_J2232.6+1143_daily_bin66.fits', expCube='/scratch/kocevski/342183/ltcube_256435201_256694401_4FGL_J2232.6+1143_daily_bin66.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/342183/Model_4FGL_J2232.6+1143_daily_bin66.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/342183/ft1_filtered_4FGL_J2232.6+1143_daily_bin66.fits
Spacecraft file(s): /scratch/kocevski/342183/ft2_4FGL_J2232.6+1143_daily_bin66.fits
Exposure map: /scratch/kocevski/342183/expmap_256435201_256694401_4FGL_J2232.6+1143_daily_bin66.fits
Exposure cube: /scratch/kocevski/342183/ltcube_256435201_256694401_4FGL_J2232.6+1143_daily_bin66.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/342183/Model_4FGL_J2232.6+1143_daily_bin66.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) = 7401.23693582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.796       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4144       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.895       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .77230E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30165       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6852       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7244       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .61585       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4954       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98266       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.

 FCN=   7401.227     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2167 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.296       -.27928E-04** at limit **
   2  norm          .10000E-03    1.4908        .29947E-07** at limit **
   3  norm          14.795        21.774       -.43287E-06   -.21897E-04
   4  norm          1.4144        .85213       -.61478E-08   -.19035E-03
   5  Prefactor     44.896        28.439        .16127E-06   -.13062E-03
   6  Prefactor     .10000E-03    31.840        .33189E-04** at limit **
   7  norm          .10000E-03    2.1028       -.27217E-07** at limit **
   8  Prefactor     .10000E-03    4.7149       -.42625E-06** at limit **
   9  Prefactor     .10001E-03    5.5976        .35151E-06** at limit **
  10  Prefactor     .30164        .17761       -.35648E-08   -.11683E-02
  11  Prefactor     3.6850        4.8865       -.92668E-06   -.14410E-02
  12  norm          1.7243        1.2548        .20905E-07    .24093E-03
  13  Prefactor     .10000E-03    10.224       -.34456E-05** at limit **
  14  Prefactor     .10000E-03    3.7460       -.11374E-08** at limit **
  15  Prefactor     .10000E-03    7.4428       -.59304E-05** at limit **
  16  Prefactor     .61589        .17335       -.13583E-08   -.13317E-02
  17  Prefactor     .10000E-03    22.590       -.10897E-04** at limit **
  18  Prefactor     .10000E-03    8.3849        .85196E-05** at limit **
  19  Prefactor     .10000E-03    5.4758        .11829E-05** at limit **
  20  Normalizat    1.4952        .23458       -.29178E-06   -.22596E-03
  21  Prefactor     .98272        .12687        .57560E-07   -.30782E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.7954
  norm       = 1.41443
  Prefactor  = 44.8956
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.301637
  Prefactor  = 3.68503
  norm       = 1.72434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.61589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.49524
  Prefactor  = 0.982716
 **********
 **   18 **HESSE 
 **********

 FCN=   7401.227     FROM HESSE     STATUS=OK           309 CALLS     2476 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5178        .10248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.795        21.762        .10413E-03   -1.4938    
   4  norm          1.4144        .84648        .59794E-04   -1.5470    
   5  Prefactor     44.896        28.460        .59836E-04   -1.4367    
   6  Prefactor     .10000E-03    31.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1197        .12181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    32.350        .39262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .30164        .17344        .26596E-04   -1.5598    
  11  Prefactor     3.6850        4.9329        .10520E-02   -1.5324    
  12  norm          1.7243        1.2626        .80211E-04   -1.5445    
  13  Prefactor     .10000E-03    10.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7551        .16261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.4429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .61589        .17309        .18181E-04   -1.5551    
  17  Prefactor     .10000E-03    22.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.5184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4952        .27686        .31653E-03   -.77912    
  21  Prefactor     .98272        .15076        .20960E-03   -.93308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60672e-09
Minuit parameter uncertainties:
  1  5.52835e-06
  2  1.69492e-06
  3  21.7732
  4  0.846484
  5  28.4689
  6  7.64691e-05
  7  1.74362e-07
  8  8.95923e-07
  9  0.000858947
  10  0.173442
  11  4.93341
  12  1.26262
  13  1.1337e-06
  14  2.47538e-08
  15  4.5787e-07
  16  0.173092
  17  1.21752e-05
  18  4.9399e-05
  19  8.58547e-07
  20  0.277138
  21  0.150826
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.016e-01  1.734e-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.827e-01  1.508e-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:  1.495e+00  2.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.64
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 7.69e-08 +/- 4.42e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 1.64e-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) = 7401.10979805
delta logL = 0.117057459152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7401.10352209
delta logL = 0.12333342661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28770       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3048       1.0000          .0000       10.000    
     3 'Normalizat'    1.4760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98919       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=   7401.104     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28788        2.9510        .55279E-02    .83510E-03
   2  Index1        2.3046        6.1337        .21649        .43950E-04
   3  Normalizat    1.4765        .91449E-01    .71905E-01    .70310E-05
   4  Prefactor     .98898        .49537E-01    .46132E-01    .24874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.287884
  Index1     = 2.30465
  Normalizat = 1.47651
  Prefactor  = 0.988978
 **********
 **   18 **HESSE 
 **********

 FCN=   7401.104     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28788        .17133        .24899E-04   -1.5601    
   2  Index1        2.3046        .52650        .81365E-02   -.56933    
   3  Normalizat    1.4765        .27522        .31815E-03   -.78441    
   4  Prefactor     .98898        .15120        .20900E-03   -.93098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63422e-10
Minuit parameter uncertainties:
  1  0.171333
  2  0.527885
  3  0.275499
  4  0.151264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342183': 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) = 7401.10351961
delta logL = 0.123335906071

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.879e-01  1.713e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.305e+00  5.279e-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.890e-01  1.513e-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:  1.477e+00  2.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.88
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.30 +/- 0.53
Photon Flux (Free Index): 9.23e-08 +/- 5.77e-08
Energy Flux (Free Index): 2.64e-05 +/- 1.53e-05

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/342183/cmap_HighResolution_256435201_256694401_4FGL_J2232.6+1143_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.69e-08', energy_flux2='2.64e-05', photon_flux_error='4.42e-08', dlogl='1.23e-01', energy_flux='2.85e-05', photon_flux2='9.23e-08', job_status='DONE', time_completed='2021-09-28 13:58:16.891572', photon_index_error2='0.53', photon_index2='2.30', ts='5.64', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='1.50', time_epoch_completed='1632862696.89', return_code='0', job_id='342183', GAL2='0.99', EG2='1.48', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='5.77e-08', ts2='5.88', photon_index='2.05' WHERE bin_id='66' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:58:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 342183: <4FGL_J2232.6+1143_daily_bin66> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin66> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 13:45:15 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:45:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 13:45:16 2021
Terminated at Tue Sep 28 13:58:17 2021
Results reported at Tue Sep 28 13:58:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin66 338.152 11.7306 256435201 256694401 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 :                                   585.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             318.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            782 sec.

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

