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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1600
RA = 338.152, Dec = 11.7306
tmin = 654048001, tmax = 654307201
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='349622', job_status='RUN', time_executed='2021-09-28 14:12:30.198975', time_epoch_executed='1632863550.2' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349622

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349622/ft1_4FGL_J2232.6+1143_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349622/ft2_4FGL_J2232.6+1143_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349622/ft1_4FGL_J2232.6+1143_daily_bin1600.fits outfile=/scratch/kocevski/349622/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1600.fits ra=338.152 dec=11.7306 rad=12.0 tmin=654048001.0 tmax=654307201.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.74
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349622/ft2_4FGL_J2232.6+1143_daily_bin1600.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/349622/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1600.fits evtable="EVENTS" outfile="/scratch/kocevski/349622/ft1_filtered_4FGL_J2232.6+1143_daily_bin1600.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/349622/ft1_filtered_4FGL_J2232.6+1143_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/349622/ft2_4FGL_J2232.6+1143_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/349622/ltcube_654048001_654307201_4FGL_J2232.6+1143_daily_bin1600.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/349622/ft2_4FGL_J2232.6+1143_daily_bin1600.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349622/ft1_filtered_4FGL_J2232.6+1143_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/349622/ft2_4FGL_J2232.6+1143_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/349622/ltcube_654048001_654307201_4FGL_J2232.6+1143_daily_bin1600.fits outfile=/scratch/kocevski/349622/expmap_654048001_654307201_4FGL_J2232.6+1143_daily_bin1600.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/349622/ltcube_654048001_654307201_4FGL_J2232.6+1143_daily_bin1600.fits
.....................!
real 191.18
user 185.63
sys 5.20

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/349622/ft1_filtered_4FGL_J2232.6+1143_daily_bin1600.fits scfile=/scratch/kocevski/349622/ft2_4FGL_J2232.6+1143_daily_bin1600.fits outfile=/scratch/kocevski/349622/cmap_654048001_654307201_4FGL_J2232.6+1143_daily_bin1600.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349622/ft1_filtered_4FGL_J2232.6+1143_daily_bin1600.fits scfile=/scratch/kocevski/349622/ft2_4FGL_J2232.6+1143_daily_bin1600.fits outfile=/scratch/kocevski/349622/cmap_HighResolution_654048001_654307201_4FGL_J2232.6+1143_daily_bin1600.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.813       1.0000         .10000E-03   10000.    
     2 'norm      '    .11730E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .67781       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6949       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.698       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.783       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.919       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33491       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0636       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2207       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.110       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .63622       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11980E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4695       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4113       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72236       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=   7643.270     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2241 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.883        44.223        .17747E-05   -.15760E-03
   2  norm          .10000E-03    2.7849        .37082E-05** at limit **
   3  norm          .10000E-03    17.791        .15622E-05** at limit **
   4  norm          .67770        1.0005        .37456E-06    .54851E-03
   5  Prefactor     5.6975        24.910        .57916E-07   -.11394E-03
   6  Prefactor     35.687        35.265       -.82601E-06   -.29572E-03
   7  norm          .10000E-03    4.1430        .77823E-07** at limit **
   8  Prefactor     16.788        15.649       -.11233E-05   -.53572E-03
   9  Prefactor     11.925        10.694        .50877E-06    .73597E-04
  10  Prefactor     .33488        .18308        .48398E-07   -.71754E-03
  11  Prefactor     2.0646        6.6241       -.48056E-06   -.22354E-03
  12  norm          1.2206        1.0111       -.67720E-08   -.78051E-04
  13  Prefactor     .10000E-03    27.301        .33656E-06** at limit **
  14  Prefactor     13.110        9.0677        .11179E-06   -.23154E-04
  15  Prefactor     .10000E-03    8.6292        .61925E-07** at limit **
  16  Prefactor     .63621        .17736        .27910E-07   -.44540E-03
  17  Prefactor     .10005E-03    202.05        .10661E-04** at limit **
  18  Prefactor     8.4694        7.0219        .10390E-06   -.68270E-04
  19  Prefactor     .10000E-03    17.841       -.17259E-05** at limit **
  20  Normalizat    1.4112        .21855       -.20718E-05   -.10008E-02
  21  Prefactor     .72239        .11267       -.18219E-06   -.12944E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8832
  norm       = 0.000100004
  norm       = 0.000100001
  norm       = 0.677696
  Prefactor  = 5.69747
  Prefactor  = 35.6868
  norm       = 0.0001
  Prefactor  = 16.7875
  Prefactor  = 11.9246
  Prefactor  = 0.334879
  Prefactor  = 2.06461
  norm       = 1.22061
  Prefactor  = 0.0001
  Prefactor  = 13.1103
  Prefactor  = 0.0001
  Prefactor  = 0.636214
  Prefactor  = 0.000100054
  Prefactor  = 8.4694
  Prefactor  = 0.000100001
  Normalizat = 1.41122
  Prefactor  = 0.722385
 **********
 **   18 **HESSE 
 **********

 FCN=   7643.270     FROM HESSE     STATUS=OK           315 CALLS     2556 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.883        44.282        .83863E-04   -1.4751    
   2  norm          .10000E-03    3.0853        .20980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    17.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .67770        .98192        .10181E-03   -1.5543    
   5  Prefactor     5.6975        24.844        .16832E-03   -1.5231    
   6  Prefactor     35.687        35.288        .67075E-04   -1.4512    
   7  norm          .10000E-03    4.2163        .17369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.788        15.721        .97765E-04   -1.4888    
   9  Prefactor     11.925        10.745        .11603E-03   -1.5017    
  10  Prefactor     .33488        .18130        .25406E-04   -1.5592    
  11  Prefactor     2.0646        6.6488        .28764E-03   -1.5421    
  12  norm          1.2206        1.0205        .77872E-04   -1.5487    
  13  Prefactor     .10000E-03    27.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.110        9.0663        .11063E-03   -1.4984    
  15  Prefactor     .10000E-03    8.6392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63621        .17711        .18377E-04   -1.5548    
  17  Prefactor     .10005E-03    211.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4694        7.0224        .13775E-03   -1.5126    
  19  Prefactor     .10000E-03    18.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4112        .26279        .29916E-03   -.80305    
  21  Prefactor     .72239        .13398        .21099E-03   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71399e-09
Minuit parameter uncertainties:
  1  44.3456
  2  0.00023541
  3  0.000246276
  4  0.981947
  5  23.8113
  6  35.3091
  7  1.12255e-05
  8  15.7245
  9  10.7466
  10  0.1813
  11  6.65114
  12  1.02046
  13  8.43279e-05
  14  9.06721
  15  1.05884e-05
  16  0.177109
  17  0.00677046
  18  7.02313
  19  0.000260711
  20  0.263045
  21  0.13404
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.349e-01  1.813e-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.224e-01  1.340e-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.411e+00  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.58
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 8.54e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 3.16e-05 +/- 1.71e-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) = 7643.24820746
delta logL = 0.0214600004019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7643.24629307
delta logL = 0.0233743933122

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34281        3.0048        .55916E-02    .75479E-03
   2  Index1        2.1778        6.0086        .24857        .15980E-04
   3  Normalizat    1.3973        .10300        .67888E-01    .11367E-04
   4  Prefactor     .72660        .45594E-01    .42756E-01    .22630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.342814
  Index1     = 2.1778
  Normalizat = 1.39728
  Prefactor  = 0.726596
 **********
 **   18 **HESSE 
 **********

 FCN=   7643.246     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34281        .17397        .24863E-04   -1.5591    
   2  Index1        2.1778        .57308        .87559E-02   -.59975    
   3  Normalizat    1.3973        .26066        .30033E-03   -.80707    
   4  Prefactor     .72660        .13361        .21041E-03   -1.0249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06865e-11
Minuit parameter uncertainties:
  1  0.173972
  2  0.574939
  3  0.260904
  4  0.133667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349622': 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) = 7643.24629192
delta logL = 0.0233755405607

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.428e-01  1.740e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.178e+00  5.749e-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.266e-01  1.337e-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.397e+00  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.63
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.18 +/- 0.57
Photon Flux (Free Index): 9.75e-08 +/- 7.34e-08
Energy Flux (Free Index): 3.15e-05 +/- 1.60e-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/349622/cmap_HighResolution_654048001_654307201_4FGL_J2232.6+1143_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.54e-08', energy_flux2='3.15e-05', photon_flux_error='4.62e-08', dlogl='2.34e-02', energy_flux='3.16e-05', photon_flux2='9.75e-08', job_status='DONE', time_completed='2021-09-28 14:22:23.464500', photon_index_error2='0.57', photon_index2='2.18', ts='9.58', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.41', time_epoch_completed='1632864143.46', return_code='0', job_id='349622', GAL2='0.73', EG2='1.40', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='7.34e-08', ts2='9.63', photon_index='2.05' WHERE bin_id='1600' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:22:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 349622: <4FGL_J2232.6+1143_daily_bin1600> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1600> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:10:14 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:10: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 14:10:16 2021
Terminated at Tue Sep 28 14:22:24 2021
Results reported at Tue Sep 28 14:22:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1600 338.152 11.7306 654048001 654307201 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 :                                   588.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             334.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            730 sec.

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

