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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1075
RA = 338.152, Dec = 11.7306
tmin = 517968001, tmax = 518227201
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='346858', job_status='RUN', time_executed='2021-09-28 14:03:36.042903', time_epoch_executed='1632863016.04' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346858

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346858/ft1_4FGL_J2232.6+1143_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346858/ft2_4FGL_J2232.6+1143_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346858/ft1_4FGL_J2232.6+1143_daily_bin1075.fits outfile=/scratch/kocevski/346858/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1075.fits ra=338.152 dec=11.7306 rad=12.0 tmin=517968001.0 tmax=518227201.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.49
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346858/ft2_4FGL_J2232.6+1143_daily_bin1075.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/346858/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1075.fits evtable="EVENTS" outfile="/scratch/kocevski/346858/ft1_filtered_4FGL_J2232.6+1143_daily_bin1075.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.51
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346858/ft1_filtered_4FGL_J2232.6+1143_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/346858/ft2_4FGL_J2232.6+1143_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/346858/ltcube_517968001_518227201_4FGL_J2232.6+1143_daily_bin1075.fits outfile=/scratch/kocevski/346858/expmap_517968001_518227201_4FGL_J2232.6+1143_daily_bin1075.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/346858/ltcube_517968001_518227201_4FGL_J2232.6+1143_daily_bin1075.fits
.....................!
real 191.02
user 185.01
sys 5.58

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/346858/ft1_filtered_4FGL_J2232.6+1143_daily_bin1075.fits scfile=/scratch/kocevski/346858/ft2_4FGL_J2232.6+1143_daily_bin1075.fits outfile=/scratch/kocevski/346858/cmap_517968001_518227201_4FGL_J2232.6+1143_daily_bin1075.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346858/ft1_filtered_4FGL_J2232.6+1143_daily_bin1075.fits scfile=/scratch/kocevski/346858/ft2_4FGL_J2232.6+1143_daily_bin1075.fits outfile=/scratch/kocevski/346858/cmap_HighResolution_517968001_518227201_4FGL_J2232.6+1143_daily_bin1075.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/346858/ft1_filtered_4FGL_J2232.6+1143_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/346858/ft2_4FGL_J2232.6+1143_daily_bin1075.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/346858/Model_4FGL_J2232.6+1143_daily_bin1075.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/346858/ft1_filtered_4FGL_J2232.6+1143_daily_bin1075.fits.....................!
real 106.95
user 105.44
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.099       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3346       1.0000         .10000E-03   10000.    
     3 'norm      '    63.073       1.0000         .10000E-03   10000.    
     4 'norm      '    .93690       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11410E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.3849       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.003       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.577       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4449       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7460       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2378       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.015       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .51385       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17266E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .92587       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31258E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6183       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2527       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81998       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=   10786.81     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2214 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.928        74.001        .47133E-05    .35378E-04
   2  norm          2.3375        2.1376       -.98139E-06   -.36759E-03
   3  norm          62.918        34.678       -.50826E-06    .23712E-04
   4  norm          .93687        .75193       -.18582E-06   -.46731E-03
   5  Prefactor     .10000E-03    8.0956       -.33470E-06** at limit **
   6  Prefactor     .10000E-03    42.135       -.14720E-05** at limit **
   7  norm          8.3775        4.8391       -.10803E-06    .41685E-04
   8  Prefactor     19.037        14.327       -.18342E-06    .63197E-05
   9  Prefactor     14.590        11.542       -.19218E-06    .53278E-04
  10  Prefactor     8.4446        .53818       -.79389E-08    .99219E-03
  11  Prefactor     5.7499        6.1430        .36948E-07    .41298E-05
  12  norm          1.2368        1.1732        .30596E-06    .13205E-03
  13  Prefactor     14.042        24.796        .30727E-06    .15880E-04
  14  Prefactor     .54779        30.984       -.10072E-04    .53836E-04
  15  Prefactor     .10000E-03    24.130        .42722E-06** at limit **
  16  Prefactor     .92583        .19048       -.19531E-07    .83082E-03
  17  Prefactor     .10000E-03    36.529       -.20486E-06** at limit **
  18  Prefactor     .10000E-03    2.5753       -.11272E-06** at limit **
  19  Prefactor     7.5767        9.1873       -.24706E-06    .26842E-04
  20  Normalizat    1.2528        .24557        .25662E-05    .16308E-04
  21  Prefactor     .81995        .12328       -.29722E-06    .51311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.9276
  norm       = 2.33747
  norm       = 62.9179
  norm       = 0.93687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.37749
  Prefactor  = 19.0375
  Prefactor  = 14.5904
  Prefactor  = 8.44462
  Prefactor  = 5.74993
  norm       = 1.23681
  Prefactor  = 14.0421
  Prefactor  = 0.547786
  Prefactor  = 0.0001
  Prefactor  = 0.925826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.5767
  Normalizat = 1.25283
  Prefactor  = 0.819947
 **********
 **   18 **HESSE 
 **********

 FCN=   10786.81     FROM HESSE     STATUS=OK           325 CALLS     2539 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.928        74.364        .26545E-03   -1.4198    
   2  norm          2.3375        2.1532        .13485E-03   -1.5402    
   3  norm          62.918        34.605        .50527E-04   -1.4120    
   4  norm          .93687        .74228        .78054E-04   -1.5514    
   5  Prefactor     .10000E-03    8.1100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.3775        4.8358        .13844E-03   -1.5129    
   8  Prefactor     19.037        14.342        .91878E-04   -1.4835    
   9  Prefactor     14.590        11.555        .10491E-03   -1.4944    
  10  Prefactor     8.4446        .54036        .17912E-04   -1.5127    
  11  Prefactor     5.7499        6.1450        .16756E-03   -1.5228    
  12  norm          1.2368        1.1930        .10430E-03   -1.5486    
  13  Prefactor     14.042        24.826        .10699E-03   -1.4958    
  14  Prefactor     .54779        31.404        .40677E-02   -1.5560    
  15  Prefactor     .10000E-03    24.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .92583        .19049        .19261E-04   -1.5516    
  17  Prefactor     .10000E-03    36.865        .21372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5862        .16277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.5767        9.1962        .14529E-03   -1.5157    
  20  Normalizat    1.2528        .27521        .39275E-03   -.84986    
  21  Prefactor     .81995        .14042        .25204E-03   -.98997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04012e-10
Minuit parameter uncertainties:
  1  74.4855
  2  2.1533
  3  34.6161
  4  0.742283
  5  1.67892e-05
  6  0.000182515
  7  4.83606
  8  14.3449
  9  11.5569
  10  0.540361
  11  6.14571
  12  1.19306
  13  24.8441
  14  8.299
  15  7.50796e-06
  16  0.19049
  17  0.00014338
  18  6.21253e-06
  19  9.19787
  20  0.275535
  21  0.140477
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  8.445e+00  5.404e-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:  8.199e-01  1.405e-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.253e+00  2.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 980.17
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.15e-06 +/- 1.38e-07
Energy Flux (Fixed Index): 7.98e-04 +/- 5.11e-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) = 10784.0516276
delta logL = 2.7544988989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10784.0428025
delta logL = 2.76332395151

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8071       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2154       1.0000          .0000       10.000    
     3 'Normalizat'    1.1279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86819       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=   10784.04     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      208 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8071        .64875        .35878E-02    .43242E-03
   2  Index1        2.2154        .79729E-01    .24681E-01    .14439E-03
   3  Normalizat    1.1279        .22819        .92264E-01    .60085E-04
   4  Prefactor     .86819        .12043        .44598E-01    .79700E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.8071
  Index1     = 2.21539
  Normalizat = 1.12785
  Prefactor  = 0.868188
 **********
 **   18 **HESSE 
 **********

 FCN=   10784.04     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8071        .57544        .16986E-04   -1.5149    
   2  Index1        2.2154        .71022E-01    .13947E-03   -.59067    
   3  Normalizat    1.1279        .26771        .40869E-03   -.88863    
   4  Prefactor     .86819        .14134        .24555E-03   -.97262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07068e-12
Minuit parameter uncertainties:
  1  0.575439
  2  0.0710253
  3  0.268032
  4  0.141402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346858': 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) = 10784.0428025
delta logL = 2.76332395153

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  7.807e+00  5.754e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.215e+00  7.103e-02  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:  8.682e-01  1.414e-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.128e+00  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 983.32
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.22 +/- 0.07
Photon Flux (Free Index): 2.30e-06 +/- 1.54e-07
Energy Flux (Free Index): 7.15e-04 +/- 5.42e-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/346858/cmap_HighResolution_517968001_518227201_4FGL_J2232.6+1143_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.15e-06', energy_flux2='7.15e-04', photon_flux_error='1.38e-07', dlogl='2.76e+00', energy_flux='7.98e-04', photon_flux2='2.30e-06', job_status='DONE', time_completed='2021-09-28 14:16:17.756183', photon_index_error2='0.07', photon_index2='2.22', ts='980.17', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='5.42e-05', EG='1.25', time_epoch_completed='1632863777.76', return_code='0', job_id='346858', GAL2='0.87', EG2='1.13', return_code2='0', energy_flux_error='5.11e-05', photon_flux_error2='1.54e-07', ts2='983.32', photon_index='2.05' WHERE bin_id='1075' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:16:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 346858: <4FGL_J2232.6+1143_daily_bin1075> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1075> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:00:56 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:00:58 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:00:58 2021
Terminated at Tue Sep 28 14:16:18 2021
Results reported at Tue Sep 28 14:16:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1075 338.152 11.7306 517968001 518227201 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 :                                   760.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

