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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1276
RA = 338.152, Dec = 11.7306
tmin = 570067201, tmax = 570326401
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='348176', job_status='RUN', time_executed='2021-09-28 14:05:47.902897', time_epoch_executed='1632863147.9' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348176

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348176/ft1_4FGL_J2232.6+1143_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348176/ft2_4FGL_J2232.6+1143_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348176/ft1_4FGL_J2232.6+1143_daily_bin1276.fits outfile=/scratch/kocevski/348176/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1276.fits ra=338.152 dec=11.7306 rad=12.0 tmin=570067201.0 tmax=570326401.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.59
user 3.40
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348176/ft1_filtered_4FGL_J2232.6+1143_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/348176/ft2_4FGL_J2232.6+1143_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/348176/ltcube_570067201_570326401_4FGL_J2232.6+1143_daily_bin1276.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/348176/ft2_4FGL_J2232.6+1143_daily_bin1276.fits
.....................!
real 11.74
user 11.29
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348176/ft1_filtered_4FGL_J2232.6+1143_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/348176/ft2_4FGL_J2232.6+1143_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/348176/ltcube_570067201_570326401_4FGL_J2232.6+1143_daily_bin1276.fits outfile=/scratch/kocevski/348176/expmap_570067201_570326401_4FGL_J2232.6+1143_daily_bin1276.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/348176/ltcube_570067201_570326401_4FGL_J2232.6+1143_daily_bin1276.fits
.....................!
real 190.09
user 184.69
sys 4.90

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/348176/ft1_filtered_4FGL_J2232.6+1143_daily_bin1276.fits scfile=/scratch/kocevski/348176/ft2_4FGL_J2232.6+1143_daily_bin1276.fits outfile=/scratch/kocevski/348176/cmap_570067201_570326401_4FGL_J2232.6+1143_daily_bin1276.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348176/ft1_filtered_4FGL_J2232.6+1143_daily_bin1276.fits scfile=/scratch/kocevski/348176/ft2_4FGL_J2232.6+1143_daily_bin1276.fits outfile=/scratch/kocevski/348176/cmap_HighResolution_570067201_570326401_4FGL_J2232.6+1143_daily_bin1276.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9834       1.0000         .10000E-03   10000.    
     3 'norm      '    12.350       1.0000         .10000E-03   10000.    
     4 'norm      '    .44385       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.260       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.256       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4095       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28937       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20172E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.732       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .78052       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1859       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85117       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0490       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=   7808.015     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2220 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.798       -.49290E-06** at limit **
   2  norm          2.9829        2.5615        .26000E-07   -.47861E-04
   3  norm          12.349        24.626       -.53867E-06   -.49630E-05
   4  norm          .44380        .70849        .18011E-08   -.22033E-04
   5  Prefactor     .10000E-03    11.069       -.24568E-06** at limit **
   6  Prefactor     19.274        38.446        .79516E-05    .62691E-07
   7  norm          .10000E-03    1.6536        .23510E-07** at limit **
   8  Prefactor     22.254        17.715        .34354E-06   -.87682E-05
   9  Prefactor     3.4091        4.7327       -.16221E-06   -.48813E-03
  10  Prefactor     .28934        .18299       -.28733E-08   -.27317E-03
  11  Prefactor     .10000E-03    3.7465       -.32716E-07** at limit **
  12  norm          .10000E-03    .57422        .21905E-08** at limit **
  13  Prefactor     .10000E-03    180.38        .51716E-06** at limit **
  14  Prefactor     30.732        12.822       -.12663E-06   -.29061E-05
  15  Prefactor     .10000E-03    7.3828       -.11362E-06** at limit **
  16  Prefactor     .78055        .19072        .78693E-08   -.17759E-03
  17  Prefactor     .10000E-03    14.815       -.16314E-06** at limit **
  18  Prefactor     5.1876        7.1489        .22956E-06   -.39048E-03
  19  Prefactor     .10000E-03    6.7259       -.88734E-07** at limit **
  20  Normalizat    .85120        .23727       -.14523E-05    .95097E-05
  21  Prefactor     1.0490        .12142        .54444E-07   -.37905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.98294
  norm       = 12.3489
  norm       = 0.443799
  Prefactor  = 0.0001
  Prefactor  = 19.2736
  norm       = 0.0001
  Prefactor  = 22.2542
  Prefactor  = 3.40909
  Prefactor  = 0.289342
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7319
  Prefactor  = 0.0001
  Prefactor  = 0.78055
  Prefactor  = 0.0001
  Prefactor  = 5.1876
  Prefactor  = 0.0001
  Normalizat = 0.851197
  Prefactor  = 1.04903
 **********
 **   18 **HESSE 
 **********

 FCN=   7808.015     FROM HESSE     STATUS=OK           319 CALLS     2539 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9829        2.5529        .12462E-03   -1.5363    
   3  norm          12.349        24.607        .11399E-03   -1.5005    
   4  norm          .44380        .59946        .89928E-03   -1.5575    
   5  Prefactor     .10000E-03    11.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.274        38.528        .91264E-04   -1.4830    
   7  norm          .10000E-03    1.6617        .11095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.254        17.667        .84905E-04   -1.4764    
   9  Prefactor     3.4091        8.3731        .10954E-02   -1.5339    
  10  Prefactor     .28934        .17758        .27586E-04   -1.5600    
  11  Prefactor     .10000E-03    3.7665        .16700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .58140        .65338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    185.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.732        12.813        .72275E-04   -1.4599    
  15  Prefactor     .10000E-03    7.3917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .78055        .19064        .17652E-04   -1.5531    
  17  Prefactor     .10000E-03    14.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1876        8.7550        .88264E-03   -1.5252    
  19  Prefactor     .10000E-03    6.7545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .85120        .27536        .38049E-03   -.98197    
  21  Prefactor     1.0490        .14189        .18752E-03   -.91112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96066e-09
Minuit parameter uncertainties:
  1  6.82355e-08
  2  2.55299
  3  24.6276
  4  0.599471
  5  2.92469e-05
  6  38.5774
  7  1.54067e-06
  8  17.6714
  9  8.37594
  10  0.177582
  11  4.35282e-07
  12  8.51563e-07
  13  0.000226563
  14  12.8137
  15  1.68823e-06
  16  0.190636
  17  6.19277e-06
  18  8.75713
  19  4.77829e-06
  20  0.275814
  21  0.141946
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.893e-01  1.776e-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.049e+00  1.419e-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:  8.512e-01  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.31
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 7.38e-08 +/- 4.52e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 1.68e-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) = 7807.98518243
delta logL = 0.0297857426858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7807.98460412
delta logL = 0.0303640463753

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28970       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1754       1.0000          .0000       10.000    
     3 'Normalizat'    .84062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0525       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=   7807.985     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28974        3.5764        .59950E-02    .10115E-02
   2  Index1        2.1752        6.0106        .23169        .20093E-04
   3  Normalizat    .84124        .89498E-01    .86375E-01    .24798E-04
   4  Prefactor     1.0523        .52760E-01    .39764E-01    .62476E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.289741
  Index1     = 2.17517
  Normalizat = 0.841237
  Prefactor  = 1.05229
 **********
 **   18 **HESSE 
 **********

 FCN=   7807.985     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28974        .17029        .27002E-04   -1.5600    
   2  Index1        2.1752        .50232        .87087E-02   -.60039    
   3  Normalizat    .84124        .26318        .38250E-03   -.98557    
   4  Prefactor     1.0523        .14222        .18725E-03   -.91006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49944e-10
Minuit parameter uncertainties:
  1  0.170292
  2  0.503568
  3  0.263584
  4  0.142274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348176': 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) = 7807.98460078
delta logL = 0.0303673897924

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.897e-01  1.703e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.175e+00  5.036e-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.052e+00  1.423e-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:  8.412e-01  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.36
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.18 +/- 0.50
Photon Flux (Free Index): 8.22e-08 +/- 5.74e-08
Energy Flux (Free Index): 2.66e-05 +/- 1.59e-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/348176/cmap_HighResolution_570067201_570326401_4FGL_J2232.6+1143_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.38e-08', energy_flux2='2.66e-05', photon_flux_error='4.52e-08', dlogl='3.04e-02', energy_flux='2.73e-05', photon_flux2='8.22e-08', job_status='DONE', time_completed='2021-09-28 14:15:45.557936', photon_index_error2='0.50', photon_index2='2.18', ts='5.31', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.85', time_epoch_completed='1632863745.56', return_code='0', job_id='348176', GAL2='1.05', EG2='0.84', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='5.74e-08', ts2='5.36', photon_index='2.05' WHERE bin_id='1276' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:15:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 348176: <4FGL_J2232.6+1143_daily_bin1276> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1276 338.152 11.7306 570067201 570326401 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 :                                   594.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            615 sec.

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

