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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1080
RA = 338.152, Dec = 11.7306
tmin = 519264001, tmax = 519523201
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='346866', job_status='RUN', time_executed='2021-09-28 14:03:07.332847', time_epoch_executed='1632862987.33' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1080'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346866/ft1_4FGL_J2232.6+1143_daily_bin1080.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346866/ft2_4FGL_J2232.6+1143_daily_bin1080.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346866/ft1_4FGL_J2232.6+1143_daily_bin1080.fits outfile=/scratch/kocevski/346866/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1080.fits ra=338.152 dec=11.7306 rad=12.0 tmin=519264001.0 tmax=519523201.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.57
user 3.32
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346866/ft1_filtered_4FGL_J2232.6+1143_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/346866/ft2_4FGL_J2232.6+1143_daily_bin1080.fits sctable="SC_DATA" expcube=/scratch/kocevski/346866/ltcube_519264001_519523201_4FGL_J2232.6+1143_daily_bin1080.fits outfile=/scratch/kocevski/346866/expmap_519264001_519523201_4FGL_J2232.6+1143_daily_bin1080.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/346866/ltcube_519264001_519523201_4FGL_J2232.6+1143_daily_bin1080.fits
.....................!
real 191.20
user 185.14
sys 4.12

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/346866/ft1_filtered_4FGL_J2232.6+1143_daily_bin1080.fits scfile=/scratch/kocevski/346866/ft2_4FGL_J2232.6+1143_daily_bin1080.fits outfile=/scratch/kocevski/346866/cmap_519264001_519523201_4FGL_J2232.6+1143_daily_bin1080.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346866/ft1_filtered_4FGL_J2232.6+1143_daily_bin1080.fits scfile=/scratch/kocevski/346866/ft2_4FGL_J2232.6+1143_daily_bin1080.fits outfile=/scratch/kocevski/346866/cmap_HighResolution_519264001_519523201_4FGL_J2232.6+1143_daily_bin1080.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30914E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8270       1.0000         .10000E-03   10000.    
     3 'norm      '    10.887       1.0000         .10000E-03   10000.    
     4 'norm      '    .48900       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16696E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.372       1.0000         .10000E-03   10000.    
     7 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.483       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11878E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5718       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0065       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.110       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16532E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12557E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .67872       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14309E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .71779       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3429       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0734       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0265       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=   10362.81     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2206 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.259       -.19859E-05** at limit **
   2  norm          1.8288        1.9119       -.87790E-06    .12447E-03
   3  norm          10.739        19.789        .64580E-06   -.45074E-06
   4  norm          .48912        .50544       -.85921E-07    .41823E-04
   5  Prefactor     .10000E-03    10.917        .30723E-05** at limit **
   6  Prefactor     12.245        24.323        .88916E-06    .68003E-05
   7  norm          .10000E-03    2.3856       -.50180E-06** at limit **
   8  Prefactor     42.505        19.715        .12908E-06    .42460E-05
   9  Prefactor     .10000E-03    5.3368       -.62256E-06** at limit **
  10  Prefactor     5.0320        .45226        .83062E-08    .10620E-03
  11  Prefactor     3.5451        8.5619       -.55890E-07   -.16199E-05
  12  norm          1.0063        1.6138       -.47272E-06   -.54135E-03
  13  Prefactor     16.074        17.987       -.85873E-07    .44735E-05
  14  Prefactor     .10000E-03    17.462       -.59959E-06** at limit **
  15  Prefactor     .10000E-03    5.1258       -.14187E-06** at limit **
  16  Prefactor     .67862        .16874        .28812E-07    .32955E-03
  17  Prefactor     .10000E-03    12.110       -.49467E-06** at limit **
  18  Prefactor     .71071        7.5138        .19936E-05   -.16468E-05
  19  Prefactor     5.3073        8.6360       -.13035E-06    .15906E-05
  20  Normalizat    1.0738        .22491       -.17745E-06    .76955E-04
  21  Prefactor     1.0265        .12042        .46768E-06    .12091E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.82879
  norm       = 10.7386
  norm       = 0.489118
  Prefactor  = 0.0001
  Prefactor  = 12.2454
  norm       = 0.0001
  Prefactor  = 42.5047
  Prefactor  = 0.0001
  Prefactor  = 5.032
  Prefactor  = 3.54514
  norm       = 1.00631
  Prefactor  = 16.0739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.678618
  Prefactor  = 0.0001
  Prefactor  = 0.710713
  Prefactor  = 5.30734
  Normalizat = 1.07385
  Prefactor  = 1.02649
 **********
 **   18 **HESSE 
 **********

 FCN=   10362.81     FROM HESSE     STATUS=OK           325 CALLS     2531 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    83.269        .19796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8288        1.8938        .13831E-03   -1.5437    
   3  norm          10.739        19.764        .12142E-03   -1.5052    
   4  norm          .48912        .50225        .71398E-04   -1.5568    
   5  Prefactor     .10000E-03    10.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.245        24.336        .11389E-03   -1.5008    
   7  norm          .10000E-03    2.4148        .15346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.505        19.794        .61505E-04   -1.4403    
   9  Prefactor     .10000E-03    5.3649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0320        .45554        .18493E-04   -1.5259    
  11  Prefactor     3.5451        8.5638        .21384E-03   -1.5331    
  12  norm          1.0063        1.4494        .16217E-02   -1.5507    
  13  Prefactor     16.074        17.994        .99786E-04   -1.4906    
  14  Prefactor     .10000E-03    17.867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .67862        .16860        .19677E-04   -1.5543    
  17  Prefactor     .10000E-03    12.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71071        7.5220        .24260E-02   -1.5539    
  19  Prefactor     5.3073        8.6309        .17387E-03   -1.5247    
  20  Normalizat    1.0738        .26045        .39666E-03   -.90596    
  21  Prefactor     1.0265        .13966        .22100E-03   -.91852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23949e-08
Minuit parameter uncertainties:
  1  0.000262397
  2  1.89386
  3  19.7762
  4  0.502256
  5  4.89395e-05
  6  24.3552
  7  2.52111e-06
  8  19.7968
  9  5.08432e-06
  10  0.455544
  11  8.56675
  12  1.44942
  13  18.0003
  14  5.98061e-05
  15  1.156e-06
  16  0.168599
  17  1.87559e-06
  18  4.6247
  19  8.63295
  20  0.260763
  21  0.139712
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  5.032e+00  4.555e-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.026e+00  1.397e-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.074e+00  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 484.70
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.28e-06 +/- 1.16e-07
Energy Flux (Fixed Index): 4.76e-04 +/- 4.30e-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) = 10362.0360497
delta logL = 0.774942760776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10362.0317934
delta logL = 0.779198995113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8336       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1661       1.0000          .0000       10.000    
     3 'Normalizat'    1.0018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0522       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=   10362.03     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8336        .53920        .40360E-02   -.68376E-04
   2  Index1        2.1662        .10996        .43470E-01    .10342E-03
   3  Normalizat    1.0019        .22534        .92051E-01    .33412E-04
   4  Prefactor     1.0522        .12110        .39783E-01    .24443E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.83355
  Index1     = 2.16619
  Normalizat = 1.00187
  Prefactor  = 1.05221
 **********
 **   18 **HESSE 
 **********

 FCN=   10362.03     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .78E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8336        .44999        .17837E-04   -1.5268    
   2  Index1        2.1662        .92315E-01    .19136E-03   -.60257    
   3  Normalizat    1.0019        .26115        .40769E-03   -.92968    
   4  Prefactor     1.0522        .14041        .21841E-03   -.91009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84371e-15
Minuit parameter uncertainties:
  1  0.449986
  2  0.0923229
  3  0.261486
  4  0.140461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346866': 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) = 10362.0317925
delta logL = 0.779199923674

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.834e+00  4.500e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.166e+00  9.232e-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:  1.052e+00  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.002e+00  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 494.07
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.17 +/- 0.09
Photon Flux (Free Index): 1.36e-06 +/- 1.30e-07
Energy Flux (Free Index): 4.44e-04 +/- 4.40e-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/346866/cmap_HighResolution_519264001_519523201_4FGL_J2232.6+1143_daily_bin1080.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-06', energy_flux2='4.44e-04', photon_flux_error='1.16e-07', dlogl='7.79e-01', energy_flux='4.76e-04', photon_flux2='1.36e-06', job_status='DONE', time_completed='2021-09-28 14:15:09.296027', photon_index_error2='0.09', photon_index2='2.17', ts='484.70', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='4.40e-05', EG='1.07', time_epoch_completed='1632863709.3', return_code='0', job_id='346866', GAL2='1.05', EG2='1.00', return_code2='0', energy_flux_error='4.30e-05', photon_flux_error2='1.30e-07', ts2='494.07', photon_index='2.05' WHERE bin_id='1080' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:15:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 346866: <4FGL_J2232.6+1143_daily_bin1080> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1080> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:00:57 2021
Job was executed on host(s) <bullet0278>, 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:15:10 2021
Results reported at Tue Sep 28 14:15:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1080 338.152 11.7306 519264001 519523201 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 :                                   716.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

