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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin81
RA = 338.152, Dec = 11.7306
tmin = 260323201, tmax = 260582401
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='342204', job_status='RUN', time_executed='2021-09-28 13:48:12.246013', time_epoch_executed='1632862092.25' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342204/ft1_4FGL_J2232.6+1143_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342204/ft2_4FGL_J2232.6+1143_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342204/ft1_4FGL_J2232.6+1143_daily_bin81.fits outfile=/scratch/kocevski/342204/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin81.fits ra=338.152 dec=11.7306 rad=12.0 tmin=260323201.0 tmax=260582401.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.53
user 1.33
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342204/ft2_4FGL_J2232.6+1143_daily_bin81.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/342204/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin81.fits evtable="EVENTS" outfile="/scratch/kocevski/342204/ft1_filtered_4FGL_J2232.6+1143_daily_bin81.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/342204/ft1_filtered_4FGL_J2232.6+1143_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/342204/ft2_4FGL_J2232.6+1143_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/342204/ltcube_260323201_260582401_4FGL_J2232.6+1143_daily_bin81.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/342204/ft2_4FGL_J2232.6+1143_daily_bin81.fits
.....................!
real 12.88
user 12.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342204/ft1_filtered_4FGL_J2232.6+1143_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/342204/ft2_4FGL_J2232.6+1143_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/342204/ltcube_260323201_260582401_4FGL_J2232.6+1143_daily_bin81.fits outfile=/scratch/kocevski/342204/expmap_260323201_260582401_4FGL_J2232.6+1143_daily_bin81.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/342204/ltcube_260323201_260582401_4FGL_J2232.6+1143_daily_bin81.fits
.....................!
real 190.21
user 184.93
sys 4.72

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/342204/ft1_filtered_4FGL_J2232.6+1143_daily_bin81.fits scfile=/scratch/kocevski/342204/ft2_4FGL_J2232.6+1143_daily_bin81.fits outfile=/scratch/kocevski/342204/cmap_260323201_260582401_4FGL_J2232.6+1143_daily_bin81.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342204/ft1_filtered_4FGL_J2232.6+1143_daily_bin81.fits scfile=/scratch/kocevski/342204/ft2_4FGL_J2232.6+1143_daily_bin81.fits outfile=/scratch/kocevski/342204/cmap_HighResolution_260323201_260582401_4FGL_J2232.6+1143_daily_bin81.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5964       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0395       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0642       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29194E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3497       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0956       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .63944E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44480       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21328E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1441       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.804       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .39099       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9516       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6022       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.784       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95648       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97232       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=   8521.311     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     2314 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.956        .18142E-02** at limit **
   2  norm          5.5958        2.9059        .10397E-03   -.77919E-03
   3  norm          .98467        120.76        .72464E-02   -.13769E-03
   4  norm          3.0640        1.0931        .55362E-04   -.33472E-03
   5  Prefactor     .10000E-03    57.833        .61733E-02** at limit **
   6  Prefactor     4.3834        39.662        .19313E-03   -.66988E-04
   7  norm          .10000E-03    1.5509        .11197E-02** at limit **
   8  Prefactor     1.0934        8.6085        .45545E-03   -.29904E-04
   9  Prefactor     .10000E-03    19.943        .37974E-02** at limit **
  10  Prefactor     .44476        .18418        .24202E-04   -.35888E-03
  11  Prefactor     .13781E-01    3.5091        .60575E-01    .21877E-03
  12  norm          2.1438        1.4901        .91358E-04   -.13788E-03
  13  Prefactor     12.805        18.142        .55971E-03   -.18727E-04
  14  Prefactor     .10000E-03    4.0959        .18142E-02** at limit **
  15  Prefactor     .10000E-03    7.7733        .18142E-02** at limit **
  16  Prefactor     .39102        .15218        .21129E-04   -.55420E-03
  17  Prefactor     8.9282        29.511        .13396E-03    .42602E-04
  18  Prefactor     7.5992        5.0817        .14545E-03   -.67690E-04
  19  Prefactor     13.785        11.523        .10788E-03   -.46999E-04
  20  Normalizat    .95651        .23813        .33916E-03   -.47773E-03
  21  Prefactor     .97230        .13094        .18809E-03   -.28736E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.59579
  norm       = 0.98467
  norm       = 3.064
  Prefactor  = 0.000100002
  Prefactor  = 4.38338
  norm       = 0.0001
  Prefactor  = 1.09343
  Prefactor  = 0.0001
  Prefactor  = 0.444759
  Prefactor  = 0.013781
  norm       = 2.14379
  Prefactor  = 12.805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.391023
  Prefactor  = 8.92818
  Prefactor  = 7.59921
  Prefactor  = 13.7853
  Normalizat = 0.95651
  Prefactor  = 0.972297
 **********
 **   18 **HESSE 
 **********

 FCN=   8521.311     FROM HESSE     STATUS=OK           307 CALLS     2621 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5958        2.8719        .41588E-05   -1.5235    
   3  norm          .98467        119.94        .28986E-03   -1.5510    
   4  norm          3.0640        1.0930        .22145E-05   -1.5358    
   5  Prefactor     .10000E-03    59.179        .12347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3834        39.581        .77253E-05   -1.5289    
   7  norm          .10000E-03    1.5510        .22393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0934        8.6037        .18218E-04   -1.5499    
   9  Prefactor     .10000E-03    20.070        .75947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44476        .18414        .96807E-06   -1.5575    
  11  Prefactor     .13781E-01    3.4909        .60913E-01   -1.5685    
  12  norm          2.1438        1.4900        .36543E-05   -1.5415    
  13  Prefactor     12.805        18.141        .22388E-04   -1.4992    
  14  Prefactor     .10000E-03    4.0964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.7736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .39102        .15214        .84516E-06   -1.5583    
  17  Prefactor     8.9282        29.491        .53585E-05   -1.5110    
  18  Prefactor     7.5992        5.0815        .58178E-05   -1.5157    
  19  Prefactor     13.785        11.522        .43153E-05   -1.4965    
  20  Normalizat    .95651        .23815        .13566E-04   -.94502    
  21  Prefactor     .97230        .13104        .37619E-04   -.93659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28115e-09
Minuit parameter uncertainties:
  1  0.000210633
  2  2.87202
  3  21.7789
  4  1.09299
  5  0.000658002
  6  26.3665
  7  5.31764e-06
  8  6.13528
  9  0.000128693
  10  0.184143
  11  0.4371
  12  1.49007
  13  18.1485
  14  9.31835e-06
  15  1.19121e-05
  16  0.152144
  17  29.5392
  18  5.0818
  19  11.5243
  20  0.238412
  21  0.13108
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.448e-01  1.841e-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.723e-01  1.311e-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.565e-01  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.01
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 4.69e-08
Energy Flux (Fixed Index): 4.20e-05 +/- 1.74e-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) = 8521.3022841
delta logL = 0.00864481408826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8521.30164484
delta logL = 0.00928407299398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44879       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0013       1.0000          .0000       10.000    
     3 'Normalizat'    .96225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97000       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=   8521.302     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      204 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44879        3.3825        .54545E-02    .62548E-03
   2  Index1        2.0013        5.9685        .18381        .28369E-04
   3  Normalizat    .96225        .11672        .76436E-01    .13409E-04
   4  Prefactor     .97000        .81908E-01    .45891E-01    .39595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.448788
  Index1     = 2.0013
  Normalizat = 0.962246
  Prefactor  = 0.97
 **********
 **   18 **HESSE 
 **********

 FCN=   8521.302     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44879        .18564        .24423E-04   -1.5574    
   2  Index1        2.0013        .37297        .72428E-02   -.64318    
   3  Normalizat    .96225        .23502        .33827E-03   -.94306    
   4  Prefactor     .97000        .13089        .18829E-03   -.93736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50582e-12
Minuit parameter uncertainties:
  1  0.185639
  2  0.373508
  3  0.235269
  4  0.130937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342204': 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) = 8521.30164484
delta logL = 0.00928407303218

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.488e-01  1.856e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.001e+00  3.735e-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.700e-01  1.309e-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.622e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.96
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.00 +/- 0.37
Photon Flux (Free Index): 1.10e-07 +/- 5.21e-08
Energy Flux (Free Index): 4.33e-05 +/- 2.03e-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/342204/cmap_HighResolution_260323201_260582401_4FGL_J2232.6+1143_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='4.33e-05', photon_flux_error='4.69e-08', dlogl='9.28e-03', energy_flux='4.20e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-28 13:58:31.413832', photon_index_error2='0.37', photon_index2='2.00', ts='10.01', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='0.96', time_epoch_completed='1632862711.41', return_code='0', job_id='342204', GAL2='0.97', EG2='0.96', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='5.21e-08', ts2='9.96', photon_index='2.05' WHERE bin_id='81' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:58:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 342204: <4FGL_J2232.6+1143_daily_bin81> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin81> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 13:45:16 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:45:19 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:19 2021
Terminated at Tue Sep 28 13:58:32 2021
Results reported at Tue Sep 28 13:58:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin81 338.152 11.7306 260323201 260582401 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 :                                   619.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             314.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            796 sec.

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

