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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1095
RA = 338.152, Dec = 11.7306
tmin = 523152001, tmax = 523411201
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='346890', job_status='RUN', time_executed='2021-09-28 14:01:09.671939', time_epoch_executed='1632862869.67' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346890

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346890/ft1_4FGL_J2232.6+1143_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346890/ft2_4FGL_J2232.6+1143_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346890/ft1_4FGL_J2232.6+1143_daily_bin1095.fits outfile=/scratch/kocevski/346890/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1095.fits ra=338.152 dec=11.7306 rad=12.0 tmin=523152001.0 tmax=523411201.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.20
user 3.96
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346890/ft2_4FGL_J2232.6+1143_daily_bin1095.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/346890/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1095.fits evtable="EVENTS" outfile="/scratch/kocevski/346890/ft1_filtered_4FGL_J2232.6+1143_daily_bin1095.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/346890/ft1_filtered_4FGL_J2232.6+1143_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/346890/ft2_4FGL_J2232.6+1143_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/346890/ltcube_523152001_523411201_4FGL_J2232.6+1143_daily_bin1095.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/346890/ft2_4FGL_J2232.6+1143_daily_bin1095.fits
.....................!
real 12.04
user 11.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346890/ft1_filtered_4FGL_J2232.6+1143_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/346890/ft2_4FGL_J2232.6+1143_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/346890/ltcube_523152001_523411201_4FGL_J2232.6+1143_daily_bin1095.fits outfile=/scratch/kocevski/346890/expmap_523152001_523411201_4FGL_J2232.6+1143_daily_bin1095.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/346890/ltcube_523152001_523411201_4FGL_J2232.6+1143_daily_bin1095.fits
.....................!
real 192.60
user 186.85
sys 5.37

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/346890/ft1_filtered_4FGL_J2232.6+1143_daily_bin1095.fits scfile=/scratch/kocevski/346890/ft2_4FGL_J2232.6+1143_daily_bin1095.fits outfile=/scratch/kocevski/346890/cmap_523152001_523411201_4FGL_J2232.6+1143_daily_bin1095.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/346890/ft1_filtered_4FGL_J2232.6+1143_daily_bin1095.fits scfile=/scratch/kocevski/346890/ft2_4FGL_J2232.6+1143_daily_bin1095.fits outfile=/scratch/kocevski/346890/cmap_HighResolution_523152001_523411201_4FGL_J2232.6+1143_daily_bin1095.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/346890/ft1_filtered_4FGL_J2232.6+1143_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/346890/ft2_4FGL_J2232.6+1143_daily_bin1095.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/346890/Model_4FGL_J2232.6+1143_daily_bin1095.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/346890/ft1_filtered_4FGL_J2232.6+1143_daily_bin1095.fits.....................!
real 78.43
user 77.09
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.608       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    44.257       1.0000         .10000E-03   10000.    
     4 'norm      '    .10784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.323       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2628       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5669       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5391       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6254       1.0000         .10000E-03   10000.    
    12 'norm      '    .45380       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.143       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .72456       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.255       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2422       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .66379       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=   7710.624     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2211 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.594        72.395       -.19675E-05   -.98838E-04
   2  norm          .10000E-03    1.2440       -.18345E-06** at limit **
   3  norm          44.255        27.868       -.17931E-06   -.61911E-04
   4  norm          .10811        .47383        .26372E-06   -.81465E-03
   5  Prefactor     .10000E-03    10.679        .63078E-06** at limit **
   6  Prefactor     20.323        31.370        .13272E-06   -.65103E-05
   7  norm          2.2627        3.6510       -.11796E-06   -.39570E-03
   8  Prefactor     .10000E-03    12.375       -.12689E-05** at limit **
   9  Prefactor     3.5670        9.8588        .24755E-06   -.37306E-04
  10  Prefactor     6.5390        .51866       -.20104E-07    .61219E-03
  11  Prefactor     6.6260        10.936        .25403E-05   -.19499E-03
  12  norm          .45394        1.5289        .94669E-06   -.10801E-03
  13  Prefactor     .10000E-03    23.951       -.16126E-05** at limit **
  14  Prefactor     15.143        11.616       -.34202E-06   -.80601E-04
  15  Prefactor     .10000E-03    23.216       -.45971E-06** at limit **
  16  Prefactor     .72454        .17744       -.33624E-08   -.22438E-03
  17  Prefactor     21.254        24.007        .47798E-07   -.10505E-04
  18  Prefactor     .10000E-03    8.5028       -.32450E-07** at limit **
  19  Prefactor     .10000E-03    18.932        .24137E-05** at limit **
  20  Normalizat    1.2422        .24027        .16428E-06   -.97286E-04
  21  Prefactor     .66374        .12438       -.45250E-06   -.79755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.5936
  norm       = 0.0001
  norm       = 44.2551
  norm       = 0.108112
  Prefactor  = 0.0001
  Prefactor  = 20.3231
  norm       = 2.26267
  Prefactor  = 0.000100001
  Prefactor  = 3.56696
  Prefactor  = 6.53904
  Prefactor  = 6.62595
  norm       = 0.453938
  Prefactor  = 0.000100001
  Prefactor  = 15.143
  Prefactor  = 0.0001
  Prefactor  = 0.724545
  Prefactor  = 21.2545
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.24224
  Prefactor  = 0.663738
 **********
 **   18 **HESSE 
 **********

 FCN=   7710.624     FROM HESSE     STATUS=OK           321 CALLS     2532 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.594        73.402        .49927E-04   -1.4099    
   2  norm          .10000E-03    1.2822        .19040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          44.255        27.909        .60264E-04   -1.4376    
   4  norm          .10811        .84081        .11451E-02   -1.5642    
   5  Prefactor     .10000E-03    10.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.323        31.419        .88846E-04   -1.4806    
   7  norm          2.2627        3.6882        .20931E-03   -1.5407    
   8  Prefactor     .10000E-03    12.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5670        9.8717        .21399E-03   -1.5330    
  10  Prefactor     6.5390        .52112        .16668E-04   -1.5196    
  11  Prefactor     6.6260        11.095        .77950E-03   -1.5193    
  12  norm          .45394        1.5084        .19134E-03   -1.5573    
  13  Prefactor     .10000E-03    24.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.143        11.542        .10293E-03   -1.4929    
  15  Prefactor     .10000E-03    23.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .72454        .17745        .17432E-04   -1.5538    
  17  Prefactor     21.254        24.018        .86879E-04   -1.4786    
  18  Prefactor     .10000E-03    8.7281        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2422        .28774        .33760E-03   -.85307    
  21  Prefactor     .66374        .14861        .23888E-03   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25177e-10
Minuit parameter uncertainties:
  1  73.5047
  2  9.32159e-06
  3  27.9173
  4  0.60273
  5  7.9587e-05
  6  31.4447
  7  3.68861
  8  0.000170532
  9  9.87623
  10  0.521117
  11  11.0979
  12  1.50855
  13  0.00030315
  14  11.5437
  15  8.27832e-05
  16  0.177454
  17  24.0289
  18  1.20016e-05
  19  0.000356437
  20  0.288109
  21  0.148701
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  6.539e+00  5.211e-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:  6.637e-01  1.487e-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.242e+00  2.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 620.04
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.67e-06 +/- 1.33e-07
Energy Flux (Fixed Index): 6.18e-04 +/- 4.92e-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) = 7709.88631624
delta logL = 0.738020265358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7709.88438993
delta logL = 0.739946569748

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2273       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1572       1.0000          .0000       10.000    
     3 'Normalizat'    1.1717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69224       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=   7709.884     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2273        .62656        .36493E-02   -.10290E-03
   2  Index1        2.1572        .97206E-01    .24956E-01    .76786E-04
   3  Normalizat    1.1717        .23506        .77988E-01    .15262E-04
   4  Prefactor     .69225        .12443        .42298E-01    .15890E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.22726
  Index1     = 2.15724
  Normalizat = 1.17168
  Prefactor  = 0.692247
 **********
 **   18 **HESSE 
 **********

 FCN=   7709.884     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .24E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2273        .56149        .16126E-04   -1.5209    
   2  Index1        2.1572        .87606E-01    .15081E-03   -.60474    
   3  Normalizat    1.1717        .28234        .34521E-03   -.87483    
   4  Prefactor     .69225        .14927        .23433E-03   -1.0383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41061e-15
Minuit parameter uncertainties:
  1  0.561486
  2  0.0876128
  3  0.282712
  4  0.149357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346890': 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) = 7709.88438972
delta logL = 0.73994678308

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  6.227e+00  5.615e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.157e+00  8.761e-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:  6.922e-01  1.494e-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.172e+00  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 615.24
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.16 +/- 0.09
Photon Flux (Free Index): 1.74e-06 +/- 1.47e-07
Energy Flux (Free Index): 5.73e-04 +/- 5.60e-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/346890/cmap_HighResolution_523152001_523411201_4FGL_J2232.6+1143_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-06', energy_flux2='5.73e-04', photon_flux_error='1.33e-07', dlogl='7.40e-01', energy_flux='6.18e-04', photon_flux2='1.74e-06', job_status='DONE', time_completed='2021-09-28 14:11:31.708232', photon_index_error2='0.09', photon_index2='2.16', ts='620.04', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='5.60e-05', EG='1.24', time_epoch_completed='1632863491.71', return_code='0', job_id='346890', GAL2='0.69', EG2='1.17', return_code2='0', energy_flux_error='4.92e-05', photon_flux_error2='1.47e-07', ts2='615.24', photon_index='2.05' WHERE bin_id='1095' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:11:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 346890: <4FGL_J2232.6+1143_daily_bin1095> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1095 338.152 11.7306 523152001 523411201 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 :                                   620.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            633 sec.

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

