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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1129
RA = 338.152, Dec = 11.7306
tmin = 531964801, tmax = 532224001
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='346944', job_status='RUN', time_executed='2021-09-28 14:03:32.382803', time_epoch_executed='1632863012.38' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346944

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346944/ft1_4FGL_J2232.6+1143_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346944/ft2_4FGL_J2232.6+1143_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346944/ft1_4FGL_J2232.6+1143_daily_bin1129.fits outfile=/scratch/kocevski/346944/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1129.fits ra=338.152 dec=11.7306 rad=12.0 tmin=531964801.0 tmax=532224001.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.52
user 3.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346944/ft2_4FGL_J2232.6+1143_daily_bin1129.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/346944/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1129.fits evtable="EVENTS" outfile="/scratch/kocevski/346944/ft1_filtered_4FGL_J2232.6+1143_daily_bin1129.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/346944/ft1_filtered_4FGL_J2232.6+1143_daily_bin1129.fits" evtable="EVENTS" scfile=/scratch/kocevski/346944/ft2_4FGL_J2232.6+1143_daily_bin1129.fits sctable="SC_DATA" outfile=/scratch/kocevski/346944/ltcube_531964801_532224001_4FGL_J2232.6+1143_daily_bin1129.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/346944/ft2_4FGL_J2232.6+1143_daily_bin1129.fits
.....................!
real 11.77
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346944/ft1_filtered_4FGL_J2232.6+1143_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/346944/ft2_4FGL_J2232.6+1143_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/346944/ltcube_531964801_532224001_4FGL_J2232.6+1143_daily_bin1129.fits outfile=/scratch/kocevski/346944/expmap_531964801_532224001_4FGL_J2232.6+1143_daily_bin1129.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/346944/ltcube_531964801_532224001_4FGL_J2232.6+1143_daily_bin1129.fits
.....................!
real 190.78
user 185.23
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 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/346944/ft1_filtered_4FGL_J2232.6+1143_daily_bin1129.fits scfile=/scratch/kocevski/346944/ft2_4FGL_J2232.6+1143_daily_bin1129.fits outfile=/scratch/kocevski/346944/cmap_531964801_532224001_4FGL_J2232.6+1143_daily_bin1129.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346944/ft1_filtered_4FGL_J2232.6+1143_daily_bin1129.fits scfile=/scratch/kocevski/346944/ft2_4FGL_J2232.6+1143_daily_bin1129.fits outfile=/scratch/kocevski/346944/cmap_HighResolution_531964801_532224001_4FGL_J2232.6+1143_daily_bin1129.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3841       1.0000         .10000E-03   10000.    
     3 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .12073E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .55624       1.0000         .10000E-03   10000.    
     7 'norm      '    .15406E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.831       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8780       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2723       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0757       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8194       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2205       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8414       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1159       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.436       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4087       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .73215       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=   8650.537     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2271 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.953        .44861E-05** at limit **
   2  norm          2.3835        2.3542       -.14179E-06   -.61642E-03
   3  norm          .10000E-03    7.5243       -.89328E-07** at limit **
   4  norm          .10000E-03    .39285       -.44938E-07** at limit **
   5  Prefactor     .10000E-03    30.474        .30721E-05** at limit **
   6  Prefactor     .45702        24.625       -.26991E-05    .71546E-04
   7  norm          .10000E-03    3.9667       -.24546E-06** at limit **
   8  Prefactor     12.820        15.465        .88408E-05    .26635E-05
   9  Prefactor     4.8756        9.4512        .16783E-05   -.11873E-03
  10  Prefactor     4.2724        .41884       -.93202E-07    .20947E-02
  11  Prefactor     .10000E-03    2.6782        .16193E-07** at limit **
  12  norm          3.0757        1.7506       -.34064E-08   -.10676E-04
  13  Prefactor     5.8168        16.635        .37160E-05   -.32291E-04
  14  Prefactor     6.2186        9.6811       -.17128E-06   -.93279E-04
  15  Prefactor     .10000E-03    7.6752        .42910E-07** at limit **
  16  Prefactor     1.8413        .24033        .12876E-07    .48821E-03
  17  Prefactor     .10000E-03    29.025       -.88245E-05** at limit **
  18  Prefactor     2.1117        8.0456       -.30443E-05   -.40885E-03
  19  Prefactor     10.434        10.162       -.94307E-07    .16533E-04
  20  Normalizat    1.4090        .23490       -.65360E-06    .23917E-03
  21  Prefactor     .73218        .11861        .14215E-06    .20932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.38352
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.457018
  norm       = 0.000100001
  Prefactor  = 12.8203
  Prefactor  = 4.8756
  Prefactor  = 4.27236
  Prefactor  = 0.0001
  norm       = 3.0757
  Prefactor  = 5.81685
  Prefactor  = 6.2186
  Prefactor  = 0.0001
  Prefactor  = 1.84132
  Prefactor  = 0.0001
  Prefactor  = 2.11171
  Prefactor  = 10.4338
  Normalizat = 1.40896
  Prefactor  = 0.73218
 **********
 **   18 **HESSE 
 **********

 FCN=   8650.537     FROM HESSE     STATUS=OK           329 CALLS     2600 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3835        2.3509        .13710E-03   -1.5399    
   3  norm          .10000E-03    7.5265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.8412        .11077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .45702        29.761        .12578       -1.5573    
   7  norm          .10000E-03    26.655        .35025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.820        15.233        .11183E-03   -1.4992    
   9  Prefactor     4.8756        9.3941        .18212E-03   -1.5266    
  10  Prefactor     4.2724        .42040        .17520E-04   -1.5295    
  11  Prefactor     .10000E-03    2.6830        .14865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0757        1.7490        .89192E-04   -1.5357    
  13  Prefactor     5.8168        16.569        .16648E-03   -1.5226    
  14  Prefactor     6.2186        9.6789        .16095E-03   -1.5209    
  15  Prefactor     .10000E-03    7.6847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8413        .24066        .15507E-04   -1.5437    
  17  Prefactor     .10000E-03    28.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1117        8.2353        .28357E-03   -1.5417    
  19  Prefactor     10.434        10.160        .12403E-03   -1.5062    
  20  Normalizat    1.4090        .27326        .33751E-03   -.80370    
  21  Prefactor     .73218        .13910        .24085E-03   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49936e-09
Minuit parameter uncertainties:
  1  3.73175e-06
  2  2.35104
  3  1.94407e-06
  4  4.96414e-06
  5  3.88198e-05
  6  7.37905
  7  0.000348466
  8  15.2377
  9  9.39691
  10  0.420397
  11  5.48955e-07
  12  1.74904
  13  16.5825
  14  9.68136
  15  2.80804e-06
  16  0.240662
  17  2.60333e-05
  18  8.23973
  19  10.1613
  20  0.273539
  21  0.139167
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.272e+00  4.204e-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:  7.322e-01  1.392e-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.409e+00  2.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 430.27
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.09e-06 +/- 1.07e-07
Energy Flux (Fixed Index): 4.04e-04 +/- 3.97e-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) = 8650.24892494
delta logL = 0.288295142034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8650.23705178
delta logL = 0.300168305108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1380       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1329       1.0000          .0000       10.000    
     3 'Normalizat'    1.3696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74646       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=   8650.237     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1380        .52671        .38690E-02    .15481E-02
   2  Index1        2.1329        .12558        .45558E-01    .92310E-04
   3  Normalizat    1.3696        .22506        .77043E-01   -.81401E-04
   4  Prefactor     .74647        .11893        .43016E-01    .49370E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.138
  Index1     = 2.13289
  Normalizat = 1.36961
  Prefactor  = 0.746466
 **********
 **   18 **HESSE 
 **********

 FCN=   8650.237     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1380        .43760        .17096E-04   -1.5301    
   2  Index1        2.1329        .10510        .20048E-03   -.61068    
   3  Normalizat    1.3696        .26518        .34097E-03   -.81512    
   4  Prefactor     .74647        .13987        .23873E-03   -1.0173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2363e-11
Minuit parameter uncertainties:
  1  0.4376
  2  0.105112
  3  0.265446
  4  0.139933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346944': 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) = 8650.23705178
delta logL = 0.300168307433

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.138e+00  4.376e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.133e+00  1.051e-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:  7.465e-01  1.399e-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.370e+00  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 426.34
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.13 +/- 0.11
Photon Flux (Free Index): 1.13e-06 +/- 1.20e-07
Energy Flux (Free Index): 3.83e-04 +/- 4.45e-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/346944/cmap_HighResolution_531964801_532224001_4FGL_J2232.6+1143_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-06', energy_flux2='3.83e-04', photon_flux_error='1.07e-07', dlogl='3.00e-01', energy_flux='4.04e-04', photon_flux2='1.13e-06', job_status='DONE', time_completed='2021-09-28 14:14:38.045751', photon_index_error2='0.11', photon_index2='2.13', ts='430.27', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='4.45e-05', EG='1.41', time_epoch_completed='1632863678.05', return_code='0', job_id='346944', GAL2='0.75', EG2='1.37', return_code2='0', energy_flux_error='3.97e-05', photon_flux_error2='1.20e-07', ts2='426.34', photon_index='2.05' WHERE bin_id='1129' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:14:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 346944: <4FGL_J2232.6+1143_daily_bin1129> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1129> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:01:05 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:01:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:01:07 2021
Terminated at Tue Sep 28 14:14:38 2021
Results reported at Tue Sep 28 14:14:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1129 338.152 11.7306 531964801 532224001 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 :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

