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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin742
RA = 338.152, Dec = 11.7306
tmin = 431654401, tmax = 431913601
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='345277', job_status='RUN', time_executed='2021-09-28 13:55:44.175294', time_epoch_executed='1632862544.18' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345277/ft1_4FGL_J2232.6+1143_daily_bin742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345277/ft2_4FGL_J2232.6+1143_daily_bin742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345277/ft1_4FGL_J2232.6+1143_daily_bin742.fits outfile=/scratch/kocevski/345277/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin742.fits ra=338.152 dec=11.7306 rad=12.0 tmin=431654401.0 tmax=431913601.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 5.95
user 5.71
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345277/ft1_filtered_4FGL_J2232.6+1143_daily_bin742.fits" evtable="EVENTS" scfile=/scratch/kocevski/345277/ft2_4FGL_J2232.6+1143_daily_bin742.fits sctable="SC_DATA" outfile=/scratch/kocevski/345277/ltcube_431654401_431913601_4FGL_J2232.6+1143_daily_bin742.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/345277/ft2_4FGL_J2232.6+1143_daily_bin742.fits
.....................!
real 12.19
user 11.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345277/ft1_filtered_4FGL_J2232.6+1143_daily_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/345277/ft2_4FGL_J2232.6+1143_daily_bin742.fits sctable="SC_DATA" expcube=/scratch/kocevski/345277/ltcube_431654401_431913601_4FGL_J2232.6+1143_daily_bin742.fits outfile=/scratch/kocevski/345277/expmap_431654401_431913601_4FGL_J2232.6+1143_daily_bin742.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/345277/ltcube_431654401_431913601_4FGL_J2232.6+1143_daily_bin742.fits
.....................!
real 190.70
user 185.90
sys 4.49

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/345277/ft1_filtered_4FGL_J2232.6+1143_daily_bin742.fits scfile=/scratch/kocevski/345277/ft2_4FGL_J2232.6+1143_daily_bin742.fits outfile=/scratch/kocevski/345277/cmap_431654401_431913601_4FGL_J2232.6+1143_daily_bin742.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.152 yref=11.7306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345277/ft1_filtered_4FGL_J2232.6+1143_daily_bin742.fits scfile=/scratch/kocevski/345277/ft2_4FGL_J2232.6+1143_daily_bin742.fits outfile=/scratch/kocevski/345277/cmap_HighResolution_431654401_431913601_4FGL_J2232.6+1143_daily_bin742.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/345277/ft1_filtered_4FGL_J2232.6+1143_daily_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/345277/ft2_4FGL_J2232.6+1143_daily_bin742.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/345277/Model_4FGL_J2232.6+1143_daily_bin742.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/345277/ft1_filtered_4FGL_J2232.6+1143_daily_bin742.fits.....................!
real 60.54
user 59.30
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.5598       1.0000         .10000E-03   10000.    
     3 'norm      '    .10528E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4633       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.931       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    19.437       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.734       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5026       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .76850E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8919       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.432       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6342       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .50432       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=   5051.888     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2175 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.971       -.81488E-05** at limit **
   2  norm          6.5595        3.8196       -.27713E-06    .28438E-04
   3  norm          .10000E-03    42.206       -.60180E-06** at limit **
   4  norm          1.4633        1.2335       -.13217E-06   -.25678E-03
   5  Prefactor     40.933        31.178        .11423E-05    .24575E-04
   6  Prefactor     .10000E-03    12.271       -.61524E-06** at limit **
   7  norm          19.439        11.271       -.46672E-06   -.77625E-04
   8  Prefactor     13.737        26.842        .25923E-05    .13221E-04
   9  Prefactor     .10000E-03    34.273        .14800E-04** at limit **
  10  Prefactor     1.5027        .45117       -.67833E-07    .15841E-02
  11  Prefactor     .10006E-03    8.0405       -.17133E-05** at limit **
  12  norm          .10000E-03    .87951        .87430E-08** at limit **
  13  Prefactor     .10000E-03    28.191       -.62079E-05** at limit **
  14  Prefactor     .10000E-03    5.6600       -.22371E-07** at limit **
  15  Prefactor     .10000E-03    13.642        .11041E-05** at limit **
  16  Prefactor     6.8921        .60236       -.18755E-07    .41657E-03
  17  Prefactor     45.429        77.041       -.34492E-04    .14999E-04
  18  Prefactor     .10000E-03    5.5288       -.11968E-06** at limit **
  19  Prefactor     12.431        16.586       -.64173E-06   -.45771E-03
  20  Normalizat    1.6337        .33027        .44366E-05   -.11473E-03
  21  Prefactor     .50460        .15468       -.26765E-06    .13505E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.55949
  norm       = 0.0001
  norm       = 1.46334
  Prefactor  = 40.9325
  Prefactor  = 0.0001
  norm       = 19.4385
  Prefactor  = 13.7367
  Prefactor  = 0.0001
  Prefactor  = 1.50266
  Prefactor  = 0.000100056
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.89206
  Prefactor  = 45.4288
  Prefactor  = 0.0001
  Prefactor  = 12.4314
  Normalizat = 1.63365
  Prefactor  = 0.504601
 **********
 **   18 **HESSE 
 **********

 FCN=   5051.888     FROM HESSE     STATUS=OK           311 CALLS     2486 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.5595        3.8324        .10092E-03   -1.5196    
   3  norm          .10000E-03    42.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4633        1.2226        .69756E-04   -1.5466    
   5  Prefactor     40.933        31.287        .62655E-04   -1.4428    
   6  Prefactor     .10000E-03    12.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          19.439        11.296        .90846E-04   -1.4826    
   8  Prefactor     13.737        27.059        .10808E-03   -1.4967    
   9  Prefactor     .10000E-03    34.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5027        .45262        .23489E-04   -1.5463    
  11  Prefactor     .10006E-03    33.324        .38642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .88040        .65096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6628        .16515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.8921        .60489        .15635E-04   -1.5183    
  17  Prefactor     45.429        77.049        .59469E-04   -1.4359    
  18  Prefactor     .10000E-03    5.5578        .16321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.431        16.625        .56805E-03   -1.5003    
  20  Normalizat    1.6337        .39475        .34638E-03   -.74089    
  21  Prefactor     .50460        .18232        .28786E-03   -1.1177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66254e-09
Minuit parameter uncertainties:
  1  4.58675e-07
  2  3.83258
  3  0.000109224
  4  1.2226
  5  31.2993
  6  1.56669e-05
  7  11.2968
  8  27.0831
  9  0.00022811
  10  0.452619
  11  0.00272472
  12  9.48181e-07
  13  4.91128e-06
  14  4.6342e-06
  15  2.93506e-07
  16  0.60489
  17  77.2186
  18  3.26049e-06
  19  16.6314
  20  0.39551
  21  0.182532
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.503e+00  4.526e-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:  5.046e-01  1.825e-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.634e+00  3.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.68
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 3.83e-07 +/- 1.15e-07
Energy Flux (Fixed Index): 1.42e-04 +/- 4.28e-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) = 5051.45469749
delta logL = 0.433523713019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5051.43799825
delta logL = 0.450222956386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5305       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.7951       1.0000          .0000       10.000    
     3 'Normalizat'    1.6932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48337       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=   5051.438     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5304        .45945        .54851E-02   -.12044E-03
   2  Index1        1.7951        .26834        .10629        .78845E-06
   3  Normalizat    1.6932        .31494        .77266E-01   -.23986E-04
   4  Prefactor     .48339        .15435        .66297E-01    .34232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53043
  Index1     = 1.79509
  Normalizat = 1.69323
  Prefactor  = 0.483385
 **********
 **   18 **HESSE 
 **********

 FCN=   5051.438     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5304        .44192        .24251E-04   -1.5461    
   2  Index1        1.7951        .26491        .45853E-02   -.69578    
   3  Normalizat    1.6932        .37232        .34187E-03   -.72484    
   4  Prefactor     .48339        .18156        .29348E-03   -1.1275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22805e-11
Minuit parameter uncertainties:
  1  0.441917
  2  0.26512
  3  0.372934
  4  0.181782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345277': 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) = 5051.43799823
delta logL = 0.450222979632

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.530e+00  4.419e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  1.795e+00  2.651e-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:  4.834e-01  1.818e-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.693e+00  3.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 41.02
Ra Dec: 338.152 11.731
Photon Index (Free Index): 1.80 +/- 0.27
Photon Flux (Free Index): 3.22e-07 +/- 1.13e-07
Energy Flux (Free Index): 1.69e-04 +/- 5.99e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/345277/cmap_HighResolution_431654401_431913601_4FGL_J2232.6+1143_daily_bin742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.83e-07', energy_flux2='1.69e-04', photon_flux_error='1.15e-07', dlogl='4.50e-01', energy_flux='1.42e-04', photon_flux2='3.22e-07', job_status='DONE', time_completed='2021-09-28 14:04:27.474536', photon_index_error2='0.27', photon_index2='1.80', ts='40.68', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', energy_flux_error2='5.99e-05', EG='1.63', time_epoch_completed='1632863067.47', return_code='0', job_id='345277', GAL2='0.48', EG2='1.69', return_code2='0', energy_flux_error='4.28e-05', photon_flux_error2='1.13e-07', ts2='41.02', photon_index='2.05' WHERE bin_id='742' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:04:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 345277: <4FGL_J2232.6+1143_daily_bin742> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin742> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 13:55:33 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:55:34 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:55:34 2021
Terminated at Tue Sep 28 14:04:28 2021
Results reported at Tue Sep 28 14:04:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin742 338.152 11.7306 431654401 431913601 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 :                                   523.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             370.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   534 sec.
    Turnaround time :                            535 sec.

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

