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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin68
RA = 338.152, Dec = 11.7306
tmin = 256953601, tmax = 257212801
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='342186', job_status='RUN', time_executed='2021-09-28 13:48:55.946004', time_epoch_executed='1632862135.95' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342186

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342186/ft1_4FGL_J2232.6+1143_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342186/ft2_4FGL_J2232.6+1143_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342186/ft1_4FGL_J2232.6+1143_daily_bin68.fits outfile=/scratch/kocevski/342186/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin68.fits ra=338.152 dec=11.7306 rad=12.0 tmin=256953601.0 tmax=257212801.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.43
user 1.27
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342186/ft1_filtered_4FGL_J2232.6+1143_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/342186/ft2_4FGL_J2232.6+1143_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/342186/ltcube_256953601_257212801_4FGL_J2232.6+1143_daily_bin68.fits outfile=/scratch/kocevski/342186/expmap_256953601_257212801_4FGL_J2232.6+1143_daily_bin68.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/342186/ltcube_256953601_257212801_4FGL_J2232.6+1143_daily_bin68.fits
.....................!
real 190.76
user 185.59
sys 4.82

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/342186/ft1_filtered_4FGL_J2232.6+1143_daily_bin68.fits scfile=/scratch/kocevski/342186/ft2_4FGL_J2232.6+1143_daily_bin68.fits outfile=/scratch/kocevski/342186/cmap_256953601_257212801_4FGL_J2232.6+1143_daily_bin68.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342186/ft1_filtered_4FGL_J2232.6+1143_daily_bin68.fits scfile=/scratch/kocevski/342186/ft2_4FGL_J2232.6+1143_daily_bin68.fits outfile=/scratch/kocevski/342186/cmap_HighResolution_256953601_257212801_4FGL_J2232.6+1143_daily_bin68.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.711       1.0000         .10000E-03   10000.    
     2 'norm      '    4.0545       1.0000         .10000E-03   10000.    
     3 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.8227       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0932       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1141       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7184       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.930       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14585E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0342       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85812       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0742       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=   7774.004     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     1920 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.040        279.39       -.15033E-04   -.14418E-04
   2  norm          4.0420        5.7173        .72164E-06   -.28399E-03
   3  norm          .10000E-03    15.948       -.13002E-05** at limit **
   4  norm          1.8226        1.0039        .69217E-09   -.21012E-04
   5  Prefactor     .10000E-03    9.1640       -.64089E-06** at limit **
   6  Prefactor     .10000E-03    7.6316        .11613E-06** at limit **
   7  norm          .10000E-03    1.4774       -.96293E-08** at limit **
   8  Prefactor     .10000E-03    3.4822       -.31768E-07** at limit **
   9  Prefactor     .10000E-03    10.275        .27226E-06** at limit **
  10  Prefactor     1.0932        .23168        .59919E-09   -.24000E-04
  11  Prefactor     6.1141        6.1816        .14904E-07   -.68093E-06
  12  norm          2.7189        1.6738       -.15714E-07    .31433E-04
  13  Prefactor     .10000E-03    12.768        .81606E-06** at limit **
  14  Prefactor     2.4104        14.175        .26332E-05   -.26349E-04
  15  Prefactor     27.941        20.034       -.58814E-06   -.30065E-04
  16  Prefactor     .14680E-01    .82036E-01   -.11304E-07    .29007E-03
  17  Prefactor     .10000E-03    33.501        .11962E-06** at limit **
  18  Prefactor     9.0372        7.7835       -.26919E-07   -.42102E-05
  19  Prefactor     .10000E-03    4.7700       -.17783E-07** at limit **
  20  Normalizat    .85850        .21223        .14180E-06   -.22068E-05
  21  Prefactor     1.0740        .11738       -.19239E-06    .92881E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.0403
  norm       = 4.04202
  norm       = 0.0001
  norm       = 1.82262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.09319
  Prefactor  = 6.11412
  norm       = 2.71887
  Prefactor  = 0.0001
  Prefactor  = 2.4104
  Prefactor  = 27.941
  Prefactor  = 0.01468
  Prefactor  = 0.0001
  Prefactor  = 9.03721
  Prefactor  = 0.0001
  Normalizat = 0.858502
  Prefactor  = 1.07404
 **********
 **   18 **HESSE 
 **********

 FCN=   7774.004     FROM HESSE     STATUS=OK           317 CALLS     2237 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.040        281.00        .70061E-04   -1.4558    
   2  norm          4.0420        5.7844        .12940E-03   -1.5306    
   3  norm          .10000E-03    16.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8226        1.0008        .63121E-04   -1.5438    
   5  Prefactor     .10000E-03    9.2163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.6379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4834        .10465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4893        .16068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0932        .23179        .18616E-04   -1.5499    
  11  Prefactor     6.1141        6.1854        .16237E-03   -1.5213    
  12  norm          2.7189        1.6780        .85174E-04   -1.5378    
  13  Prefactor     .10000E-03    12.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4104        14.422        .13175E-02   -1.5397    
  15  Prefactor     27.941        19.917        .75806E-04   -1.4650    
  16  Prefactor     .14680E-01    .21572        .44521E-03   -1.5684    
  17  Prefactor     .10000E-03    33.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.0372        7.7313        .13335E-03   -1.5107    
  19  Prefactor     .10000E-03    4.7796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .85850        .24290        .35692E-03   -.97934    
  21  Prefactor     1.0740        .13556        .18400E-03   -.90301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36846e-10
Minuit parameter uncertainties:
  1  193.953
  2  5.78522
  3  4.76549e-05
  4  1.0008
  5  1.52634e-05
  6  1.52891e-06
  7  2.30573e-07
  8  6.0296e-07
  9  2.5395e-06
  10  0.23179
  11  6.18606
  12  1.67801
  13  2.35135e-05
  14  11.796
  15  19.9221
  16  0.112165
  17  3.58171e-06
  18  7.7321
  19  6.79911e-08
  20  0.243207
  21  0.135605
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.093e+00  2.318e-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:  1.074e+00  1.356e-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.585e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 61.56
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.79e-07 +/- 5.91e-08
Energy Flux (Fixed Index): 1.03e-04 +/- 2.19e-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) = 7774.00327449
delta logL = 0.000347125263943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7774.0032342
delta logL = 0.000387414791476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0912       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0584       1.0000          .0000       10.000    
     3 'Normalizat'    .85722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0746       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=   7774.003     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      200 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0916        .37760        .42021E-02    .66007E-04
   2  Index1        2.0583        .33198        .97326E-01    .54777E-04
   3  Normalizat    .85740        .20820        .80665E-01    .28407E-04
   4  Prefactor     1.0744        .11787        .38645E-01   -.13546E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.09156
  Index1     = 2.05827
  Normalizat = 0.8574
  Prefactor  = 1.07443
 **********
 **   18 **HESSE 
 **********

 FCN=   7774.003     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0916        .23848        .18587E-04   -1.5499    
   2  Index1        2.0583        .21525        .41853E-02   -.62901    
   3  Normalizat    .85740        .23945        .35711E-03   -.97974    
   4  Prefactor     1.0744        .13571        .18397E-03   -.90288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60547e-13
Minuit parameter uncertainties:
  1  0.238485
  2  0.215357
  3  0.239742
  4  0.135755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342186': 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) = 7774.00323259
delta logL = 0.000389018110582

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.092e+00  2.385e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.058e+00  2.154e-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:  1.074e+00  1.358e-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.574e-01  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 61.44
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.06 +/- 0.22
Photon Flux (Free Index): 2.80e-07 +/- 6.82e-08
Energy Flux (Free Index): 1.03e-04 +/- 2.55e-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/342186/cmap_HighResolution_256953601_257212801_4FGL_J2232.6+1143_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.79e-07', energy_flux2='1.03e-04', photon_flux_error='5.91e-08', dlogl='3.89e-04', energy_flux='1.03e-04', photon_flux2='2.80e-07', job_status='DONE', time_completed='2021-09-28 13:58:21.539849', photon_index_error2='0.22', photon_index2='2.06', ts='61.56', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='0.86', time_epoch_completed='1632862701.54', return_code='0', job_id='342186', GAL2='1.07', EG2='0.86', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='6.82e-08', ts2='61.44', photon_index='2.05' WHERE bin_id='68' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:58:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 342186: <4FGL_J2232.6+1143_daily_bin68> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin68> 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) <bullet0208>, 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:22 2021
Results reported at Tue Sep 28 13:58:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin68 338.152 11.7306 256953601 257212801 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.30 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             285.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            787 sec.

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

