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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin91
RA = 338.152, Dec = 11.7306
tmin = 262915201, tmax = 263174401
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='342221', job_status='RUN', time_executed='2021-09-28 13:48:51.210113', time_epoch_executed='1632862131.21' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342221

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342221/ft1_4FGL_J2232.6+1143_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342221/ft2_4FGL_J2232.6+1143_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342221/ft1_4FGL_J2232.6+1143_daily_bin91.fits outfile=/scratch/kocevski/342221/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin91.fits ra=338.152 dec=11.7306 rad=12.0 tmin=262915201.0 tmax=263174401.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.30
user 1.08
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342221/ft1_filtered_4FGL_J2232.6+1143_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/342221/ft2_4FGL_J2232.6+1143_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/342221/ltcube_262915201_263174401_4FGL_J2232.6+1143_daily_bin91.fits outfile=/scratch/kocevski/342221/expmap_262915201_263174401_4FGL_J2232.6+1143_daily_bin91.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/342221/ltcube_262915201_263174401_4FGL_J2232.6+1143_daily_bin91.fits
.....................!
real 191.02
user 185.36
sys 5.35

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/342221/ft1_filtered_4FGL_J2232.6+1143_daily_bin91.fits scfile=/scratch/kocevski/342221/ft2_4FGL_J2232.6+1143_daily_bin91.fits outfile=/scratch/kocevski/342221/cmap_262915201_263174401_4FGL_J2232.6+1143_daily_bin91.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.55
user 0.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    11.976       1.0000         .10000E-03   10000.    
     3 'norm      '    12.584       1.0000         .10000E-03   10000.    
     4 'norm      '    3.5538       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      '    3.1012       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20498E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .89527       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8880       1.0000         .10000E-03   10000.    
    12 'norm      '    .46812       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.475       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1197       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5018       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .59451       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1799       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=   12155.92     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     1915 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.104        .39748E-09** at limit **
   2  norm          11.977        3.3605       -.13447E-08   -.15973E-03
   3  norm          12.583        25.411       -.24920E-07    .66312E-03
   4  norm          3.5539        1.0798        .78118E-09   -.33029E-03
   5  Prefactor     .10000E-03    4.7984        .17296E-09** at limit **
   6  Prefactor     .10000E-03    7.7556       -.41727E-09** at limit **
   7  norm          3.1009        2.9277       -.70657E-07   -.27247E-03
   8  Prefactor     .10000E-03    8.1272        .29005E-09** at limit **
   9  Prefactor     .10000E-03    5.5163        .12368E-07** at limit **
  10  Prefactor     .89528        .20819       -.86891E-10    .76719E-03
  11  Prefactor     4.8883        5.3324       -.18314E-07   -.45193E-04
  12  norm          .46762        1.0319        .30247E-08   -.21385E-03
  13  Prefactor     14.478        15.527        .48029E-08   -.53545E-03
  14  Prefactor     2.8411        4.9305       -.78567E-07   -.97635E-04
  15  Prefactor     .10000E-03    4.5410        .16760E-09** at limit **
  16  Prefactor     3.1198        .25412       -.29161E-10   -.45126E-03
  17  Prefactor     .10000E-03    8.2900       -.58670E-09** at limit **
  18  Prefactor     6.5019        4.7630       -.64366E-08   -.23091E-04
  19  Prefactor     .10000E-03    3.5190       -.20007E-09** at limit **
  20  Normalizat    .59440        .21712        .30024E-07   -.13659E-03
  21  Prefactor     1.1799        .11659        .49495E-08   -.30515E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.9765
  norm       = 12.5829
  norm       = 3.55385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.10088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.895279
  Prefactor  = 4.88826
  norm       = 0.467615
  Prefactor  = 14.4783
  Prefactor  = 2.84113
  Prefactor  = 0.0001
  Prefactor  = 3.11984
  Prefactor  = 0.0001
  Prefactor  = 6.50194
  Prefactor  = 0.0001
  Normalizat = 0.594397
  Prefactor  = 1.17989
 **********
 **   18 **HESSE 
 **********

 FCN=   12155.92     FROM HESSE     STATUS=OK           319 CALLS     2234 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.977        3.3612        .49799E-03   -1.5016    
   3  norm          12.583        25.366        .11292E-03   -1.4998    
   4  norm          3.5539        1.0788        .60458E-04   -1.5331    
   5  Prefactor     .10000E-03    4.8033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1009        4.5371        .11514E-02   -1.5356    
   8  Prefactor     .10000E-03    8.2591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.201        .49198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .89528        .20678        .22756E-04   -1.5519    
  11  Prefactor     4.8883        5.4533        .90967E-03   -1.5266    
  12  norm          .46762        .98930        .15840E-02   -1.5571    
  13  Prefactor     14.478        15.535        .10527E-03   -1.4947    
  14  Prefactor     2.8411        6.0973        .12064E-02   -1.5371    
  15  Prefactor     .10000E-03    4.5423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1198        .25409        .14956E-04   -1.5355    
  17  Prefactor     .10000E-03    8.2969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5019        4.7835        .78696E-03   -1.5198    
  19  Prefactor     .10000E-03    3.5331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .59440        .22729        .48818E-03   -1.0822    
  21  Prefactor     1.1799        .12519        .20009E-03   -.86952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65924e-08
Minuit parameter uncertainties:
  1  3.12036e-05
  2  3.36126
  3  25.3879
  4  1.07883
  5  1.49858e-05
  6  2.61303e-06
  7  4.53759
  8  3.35176e-05
  9  8.0026e-05
  10  0.206785
  11  5.45381
  12  0.989339
  13  15.5392
  14  6.09866
  15  9.63689e-06
  16  0.254088
  17  9.96575e-06
  18  4.78381
  19  4.07722e-06
  20  0.227651
  21  0.12522
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  8.953e-01  2.068e-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.180e+00  1.252e-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:  5.944e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.59
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.28e-07 +/- 5.27e-08
Energy Flux (Fixed Index): 8.46e-05 +/- 1.95e-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) = 12152.7425373
delta logL = 3.17833286177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12152.7348146
delta logL = 3.18605553025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67759       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.6951       1.0000          .0000       10.000    
     3 'Normalizat'    .46455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2300       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=   12152.73     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      243 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67758        1.7728        .39913E-02   -.24283E-02
   2  Index1        2.6951        2.1849        .99719E-01    .54204E-04
   3  Normalizat    .46438        .11295        .12324        .11184E-03
   4  Prefactor     1.2301        .59806E-01    .33956E-01   -.22857E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.677582
  Index1     = 2.6951
  Normalizat = 0.464378
  Prefactor  = 1.23015
 **********
 **   18 **HESSE 
 **********

 FCN=   12152.73     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67758        .21219        .17707E-04   -1.5543    
   2  Index1        2.6951        .29017        .42159E-02   -.47910    
   3  Normalizat    .46438        .22655        .54648E-03   -1.1410    
   4  Prefactor     1.2301        .12632        .98158E-03   -.85409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56044e-11
Minuit parameter uncertainties:
  1  0.212185
  2  0.290382
  3  0.227
  4  0.126352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342221': 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) = 12152.7348143
delta logL = 3.18605592315

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  6.776e-01  2.122e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.695e+00  2.904e-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.230e+00  1.264e-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:  4.644e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 45.46
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.70 +/- 0.29
Photon Flux (Free Index): 3.27e-07 +/- 7.34e-08
Energy Flux (Free Index): 7.11e-05 +/- 1.56e-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/342221/cmap_HighResolution_262915201_263174401_4FGL_J2232.6+1143_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-07', energy_flux2='7.11e-05', photon_flux_error='5.27e-08', dlogl='3.19e+00', energy_flux='8.46e-05', photon_flux2='3.27e-07', job_status='DONE', time_completed='2021-09-28 14:01:04.806252', photon_index_error2='0.29', photon_index2='2.70', ts='38.59', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='0.59', time_epoch_completed='1632862864.81', return_code='0', job_id='342221', GAL2='1.23', EG2='0.46', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='7.34e-08', ts2='45.46', photon_index='2.05' WHERE bin_id='91' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:01:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 342221: <4FGL_J2232.6+1143_daily_bin91> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin91> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 13:45:18 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:45:20 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:20 2021
Terminated at Tue Sep 28 14:01:05 2021
Results reported at Tue Sep 28 14:01:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin91 338.152 11.7306 262915201 263174401 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 :                                   736.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

