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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1407
RA = 338.152, Dec = 11.7306
tmin = 604022401, tmax = 604281601
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='348380', job_status='RUN', time_executed='2021-09-28 14:07:49.842718', time_epoch_executed='1632863269.84' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348380/ft1_4FGL_J2232.6+1143_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348380/ft2_4FGL_J2232.6+1143_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348380/ft1_4FGL_J2232.6+1143_daily_bin1407.fits outfile=/scratch/kocevski/348380/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1407.fits ra=338.152 dec=11.7306 rad=12.0 tmin=604022401.0 tmax=604281601.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 4.24
user 3.95
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348380/ft2_4FGL_J2232.6+1143_daily_bin1407.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/348380/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1407.fits evtable="EVENTS" outfile="/scratch/kocevski/348380/ft1_filtered_4FGL_J2232.6+1143_daily_bin1407.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/348380/ft1_filtered_4FGL_J2232.6+1143_daily_bin1407.fits" evtable="EVENTS" scfile=/scratch/kocevski/348380/ft2_4FGL_J2232.6+1143_daily_bin1407.fits sctable="SC_DATA" outfile=/scratch/kocevski/348380/ltcube_604022401_604281601_4FGL_J2232.6+1143_daily_bin1407.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/348380/ft2_4FGL_J2232.6+1143_daily_bin1407.fits
.....................!
real 12.26
user 11.77
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348380/ft1_filtered_4FGL_J2232.6+1143_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/348380/ft2_4FGL_J2232.6+1143_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/348380/ltcube_604022401_604281601_4FGL_J2232.6+1143_daily_bin1407.fits outfile=/scratch/kocevski/348380/expmap_604022401_604281601_4FGL_J2232.6+1143_daily_bin1407.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/348380/ltcube_604022401_604281601_4FGL_J2232.6+1143_daily_bin1407.fits
.....................!
real 191.91
user 186.37
sys 5.11

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/348380/ft1_filtered_4FGL_J2232.6+1143_daily_bin1407.fits scfile=/scratch/kocevski/348380/ft2_4FGL_J2232.6+1143_daily_bin1407.fits outfile=/scratch/kocevski/348380/cmap_604022401_604281601_4FGL_J2232.6+1143_daily_bin1407.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348380/ft1_filtered_4FGL_J2232.6+1143_daily_bin1407.fits scfile=/scratch/kocevski/348380/ft2_4FGL_J2232.6+1143_daily_bin1407.fits outfile=/scratch/kocevski/348380/cmap_HighResolution_604022401_604281601_4FGL_J2232.6+1143_daily_bin1407.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.160       1.0000         .10000E-03   10000.    
     4 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.298       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.778       1.0000         .10000E-03   10000.    
     7 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.702       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20497       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33273       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1455       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0551       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52950       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4823       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.085       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5780       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0655       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0222       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=   7271.682     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2275 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.574       -.96396E-07** at limit **
   2  norm          .10000E-03    1.3511       -.13096E-08** at limit **
   3  norm          13.156        29.446        .10352E-04   -.20087E-04
   4  norm          .10000E-03    .49667        .39474E-06** at limit **
   5  Prefactor     11.322        25.560       -.14744E-04   -.57727E-04
   6  Prefactor     10.781        32.226        .22993E-04   -.20440E-04
   7  norm          .10000E-03    3.6945        .30989E-06** at limit **
   8  Prefactor     11.722        19.000       -.14581E-04   -.18422E-03
   9  Prefactor     .52286        13.293        .26686E-05   -.30443E-03
  10  Prefactor     .33275        .23132        .53493E-06    .17722E-02
  11  Prefactor     .10000E-03    2.8396        .51292E-07** at limit **
  12  norm          2.1452        2.2374       -.12706E-05   -.77128E-03
  13  Prefactor     8.0596        23.331        .42069E-05   -.29544E-04
  14  Prefactor     53.311        19.757        .91658E-05   -.14593E-03
  15  Prefactor     .10000E-03    6.4244        .13426E-06** at limit **
  16  Prefactor     .52959        .17234        .95586E-08   -.19131E-02
  17  Prefactor     6.5459        60.562        .13032E-03    .69529E-06
  18  Prefactor     10.096        10.080       -.38704E-06   -.11539E-03
  19  Prefactor     4.5837        9.6258       -.11817E-04   -.18241E-03
  20  Normalizat    1.0643        .25626       -.12586E-04   -.20756E-03
  21  Prefactor     1.0223        .12776        .13237E-05   -.10868E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.1562
  norm       = 0.0001
  Prefactor  = 11.3223
  Prefactor  = 10.7812
  norm       = 0.0001
  Prefactor  = 11.7222
  Prefactor  = 0.522858
  Prefactor  = 0.332746
  Prefactor  = 0.0001
  norm       = 2.14522
  Prefactor  = 8.05958
  Prefactor  = 53.3105
  Prefactor  = 0.0001
  Prefactor  = 0.529595
  Prefactor  = 6.54585
  Prefactor  = 10.0962
  Prefactor  = 4.5837
  Normalizat = 1.06428
  Prefactor  = 1.0223
 **********
 **   18 **HESSE 
 **********

 FCN=   7271.682     FROM HESSE     STATUS=OK           325 CALLS     2600 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3868        .19333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.156        29.424        .11041E-03   -1.4982    
   4  norm          .10000E-03    .88569        .11617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.322        25.556        .11919E-03   -1.5035    
   6  Prefactor     10.781        32.232        .12204E-03   -1.5051    
   7  norm          .10000E-03    3.7246        .15995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.722        18.870        .11710E-03   -1.5023    
   9  Prefactor     .52286        138.27        .56386E-02   -1.5563    
  10  Prefactor     .33275        .22203        .29713E-04   -1.5593    
  11  Prefactor     .10000E-03    2.8515        .14033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1452        2.2202        .12188E-03   -1.5415    
  13  Prefactor     8.0596        23.333        .14127E-03   -1.5140    
  14  Prefactor     53.311        19.701        .54926E-04   -1.4246    
  15  Prefactor     .10000E-03    6.4276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .52959        .17191        .18925E-04   -1.5562    
  17  Prefactor     6.5459        60.494        .15763E-03   -1.5196    
  18  Prefactor     10.096        10.076        .12618E-03   -1.5072    
  19  Prefactor     4.5837        9.6263        .18813E-03   -1.5280    
  20  Normalizat    1.0643        .30376        .35753E-03   -.90907    
  21  Prefactor     1.0223        .15111        .19752E-03   -.91990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25426e-09
Minuit parameter uncertainties:
  1  7.17514e-06
  2  2.1473e-06
  3  29.4568
  4  3.66041e-05
  5  25.5804
  6  32.2843
  7  3.54166e-05
  8  18.8796
  9  17.0435
  10  0.222034
  11  4.29195e-06
  12  2.22032
  13  23.3595
  14  19.7038
  15  8.56605e-06
  16  0.171907
  17  39.8518
  18  10.0773
  19  9.62956
  20  0.304259
  21  0.151175
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.327e-01  2.220e-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.022e+00  1.512e-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.064e+00  3.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.10
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 8.48e-08 +/- 5.66e-08
Energy Flux (Fixed Index): 3.14e-05 +/- 2.10e-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) = 7270.32015181
delta logL = 1.36224321982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7270.31022496
delta logL = 1.37217007654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22205       1.0000         .10000E-03   10000.    
     2 'Index1    '    3.1830       1.0000          .0000       10.000    
     3 'Normalizat'    .92211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0747       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=   7270.310     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22201        1.2482        .39007E-02    .13537E-02
   2  Index1        3.1831        3.1543        .15169        .12089E-03
   3  Normalizat    .92214        .77520E-01    .85923E-01    .22701E-04
   4  Prefactor     1.0747        .41492E-01    .38637E-01   -.12651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.222012
  Index1     = 3.18311
  Normalizat = 0.922142
  Prefactor  = 1.07472
 **********
 **   18 **HESSE 
 **********

 FCN=   7270.310     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22201        .25364        .17469E-04   -1.5614    
   2  Index1        3.1831        .98705        .58106E-02   -.37189    
   3  Normalizat    .92214        .29052        .38046E-03   -.95686    
   4  Prefactor     1.0747        .15495        .19314E-03   -.90279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17224e-08
Minuit parameter uncertainties:
  1  0.253644
  2  0.99459
  3  0.291016
  4  0.155018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348380': 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) = 7270.31022493
delta logL = 1.37217009832

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.220e-01  2.536e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  3.183e+00  9.946e-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.075e+00  1.550e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  9.221e-01  2.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.19
Ra Dec: 338.152 11.731
Photon Index (Free Index): 3.18 +/- 0.99
Photon Flux (Free Index): 1.90e-07 +/- 9.45e-08
Energy Flux (Free Index): 3.37e-05 +/- 1.63e-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/348380/cmap_HighResolution_604022401_604281601_4FGL_J2232.6+1143_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.48e-08', energy_flux2='3.37e-05', photon_flux_error='5.66e-08', dlogl='1.37e+00', energy_flux='3.14e-05', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-09-28 14:17:42.778780', photon_index_error2='0.99', photon_index2='3.18', ts='4.10', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='1.06', time_epoch_completed='1632863862.78', return_code='0', job_id='348380', GAL2='1.07', EG2='0.92', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='9.45e-08', ts2='7.19', photon_index='2.05' WHERE bin_id='1407' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:17:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 348380: <4FGL_J2232.6+1143_daily_bin1407> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1407> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:05:48 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:05:50 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:05:50 2021
Terminated at Tue Sep 28 14:17:43 2021
Results reported at Tue Sep 28 14:17:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1407 338.152 11.7306 604022401 604281601 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 :                                   590.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             284.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            715 sec.

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

