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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1410
RA = 338.152, Dec = 11.7306
tmin = 604800001, tmax = 605059201
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='348384', job_status='RUN', time_executed='2021-09-28 14:07:45.405455', time_epoch_executed='1632863265.41' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348384

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348384/ft1_4FGL_J2232.6+1143_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348384/ft2_4FGL_J2232.6+1143_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348384/ft1_4FGL_J2232.6+1143_daily_bin1410.fits outfile=/scratch/kocevski/348384/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1410.fits ra=338.152 dec=11.7306 rad=12.0 tmin=604800001.0 tmax=605059201.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 5.21
user 4.92
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348384/ft1_filtered_4FGL_J2232.6+1143_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/348384/ft2_4FGL_J2232.6+1143_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/348384/ltcube_604800001_605059201_4FGL_J2232.6+1143_daily_bin1410.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/348384/ft2_4FGL_J2232.6+1143_daily_bin1410.fits
.....................!
real 15.38
user 15.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348384/ft1_filtered_4FGL_J2232.6+1143_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/348384/ft2_4FGL_J2232.6+1143_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/348384/ltcube_604800001_605059201_4FGL_J2232.6+1143_daily_bin1410.fits outfile=/scratch/kocevski/348384/expmap_604800001_605059201_4FGL_J2232.6+1143_daily_bin1410.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/348384/ltcube_604800001_605059201_4FGL_J2232.6+1143_daily_bin1410.fits
.....................!
real 194.89
user 189.45
sys 5.05

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/348384/ft1_filtered_4FGL_J2232.6+1143_daily_bin1410.fits scfile=/scratch/kocevski/348384/ft2_4FGL_J2232.6+1143_daily_bin1410.fits outfile=/scratch/kocevski/348384/cmap_604800001_605059201_4FGL_J2232.6+1143_daily_bin1410.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.59
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348384/ft1_filtered_4FGL_J2232.6+1143_daily_bin1410.fits scfile=/scratch/kocevski/348384/ft2_4FGL_J2232.6+1143_daily_bin1410.fits outfile=/scratch/kocevski/348384/cmap_HighResolution_604800001_605059201_4FGL_J2232.6+1143_daily_bin1410.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.828       1.0000         .10000E-03   10000.    
     2 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.809       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13906E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8839       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37350       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3863       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1116       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.284       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7743       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45486       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7601       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96793       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0439       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=   5981.634     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2215 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.806        54.759       -.53075E-05   -.14894E-03
   2  norm          .10000E-03    .88000       -.12172E-06** at limit **
   3  norm          .10000E-03    21.451       -.14809E-05** at limit **
   4  norm          .10000E-03    .29266        .13742E-07** at limit **
   5  Prefactor     14.807        24.216       -.24819E-06   -.39070E-04
   6  Prefactor     .10000E-03    32.985       -.14931E-05** at limit **
   7  norm          .10000E-03    7.9530       -.10329E-06** at limit **
   8  Prefactor     .10000E-03    4.6466        .21116E-07** at limit **
   9  Prefactor     5.8834        11.111        .43335E-05   -.30791E-03
  10  Prefactor     .37349        .19687        .12624E-07   -.35955E-04
  11  Prefactor     5.3864        7.2933        .89641E-07   -.13798E-04
  12  norm          2.1114        1.6904       -.25159E-07   -.23971E-04
  13  Prefactor     14.283        15.041       -.27833E-07   -.33156E-05
  14  Prefactor     8.7737        12.363       -.45346E-08   -.14839E-04
  15  Prefactor     .10000E-03    7.1549       -.10976E-07** at limit **
  16  Prefactor     .45481        .16601        .47941E-08   -.84227E-04
  17  Prefactor     .10000E-03    24.625        .29302E-05** at limit **
  18  Prefactor     5.2904        7.4981        .17751E-06   -.50028E-04
  19  Prefactor     5.7596        8.6865        .10398E-06   -.21046E-04
  20  Normalizat    .96805        .24710       -.13453E-05    .15534E-04
  21  Prefactor     1.0438        .13496        .23959E-06   -.54711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8064
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 14.8068
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.88344
  Prefactor  = 0.373494
  Prefactor  = 5.3864
  norm       = 2.11143
  Prefactor  = 14.2835
  Prefactor  = 8.77368
  Prefactor  = 0.0001
  Prefactor  = 0.454815
  Prefactor  = 0.000100004
  Prefactor  = 5.29039
  Prefactor  = 5.75963
  Normalizat = 0.968046
  Prefactor  = 1.04381
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.634     FROM HESSE     STATUS=OK           321 CALLS     2536 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.806        57.128        .87764E-04   -1.4795    
   2  norm          .10000E-03    .88290        .70770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    21.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .47295        .81417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.807        24.246        .10408E-03   -1.4938    
   6  Prefactor     .10000E-03    33.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.2816        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.6525        .16281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8834        11.415        .82778E-03   -1.5223    
  10  Prefactor     .37349        .19420        .23627E-04   -1.5586    
  11  Prefactor     5.3864        7.2903        .17315E-03   -1.5244    
  12  norm          2.1114        1.6866        .86192E-04   -1.5417    
  13  Prefactor     14.283        15.046        .10598E-03   -1.4952    
  14  Prefactor     8.7737        12.342        .13532E-03   -1.5115    
  15  Prefactor     .10000E-03    7.1590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .45481        .16509        .17999E-04   -1.5573    
  17  Prefactor     .10000E-03    25.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2904        7.4878        .17473E-03   -1.5248    
  19  Prefactor     5.7596        8.6807        .16735E-03   -1.5228    
  20  Normalizat    .96805        .29077        .33996E-03   -.94109    
  21  Prefactor     1.0438        .16008        .18543E-03   -.91283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30091e-10
Minuit parameter uncertainties:
  1  57.2786
  2  3.78047e-06
  3  0.000272059
  4  7.91118e-07
  5  24.2624
  6  0.000354829
  7  2.5159e-05
  8  1.19082e-06
  9  11.4193
  10  0.194197
  11  7.29148
  12  1.68663
  13  15.05
  14  12.3459
  15  1.90429e-06
  16  0.165091
  17  0.000634749
  18  7.48908
  19  8.68261
  20  0.291243
  21  0.160149
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.735e-01  1.942e-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.044e+00  1.601e-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.680e-01  2.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.21
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 9.52e-08 +/- 4.95e-08
Energy Flux (Fixed Index): 3.53e-05 +/- 1.84e-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) = 5981.60375933
delta logL = 0.0299354843219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5981.6024169
delta logL = 0.0312779077021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36882       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1801       1.0000          .0000       10.000    
     3 'Normalizat'    .95268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0494       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=   5981.602     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36885        3.5363        .51243E-02    .55564E-03
   2  Index1        2.1802        5.9942        .20210        .24413E-04
   3  Normalizat    .95349        .11853        .77331E-01    .24516E-04
   4  Prefactor     1.0491        .59614E-01    .39944E-01    .68982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.368853
  Index1     = 2.18021
  Normalizat = 0.953493
  Prefactor  = 1.04908
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.602     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36885        .19144        .22917E-04   -1.5587    
   2  Index1        2.1802        .51967        .75905E-02   -.59917    
   3  Normalizat    .95349        .28722        .34225E-03   -.94605    
   4  Prefactor     1.0491        .16044        .18502E-03   -.91111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38131e-10
Minuit parameter uncertainties:
  1  0.191443
  2  0.521052
  3  0.287688
  4  0.160511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348384': 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) = 5981.60241211
delta logL = 0.0312826975205

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.689e-01  1.914e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.180e+00  5.211e-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.049e+00  1.605e-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.535e-01  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.26
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.18 +/- 0.52
Photon Flux (Free Index): 1.05e-07 +/- 6.48e-08
Energy Flux (Free Index): 3.39e-05 +/- 1.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/348384/cmap_HighResolution_604800001_605059201_4FGL_J2232.6+1143_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.52e-08', energy_flux2='3.39e-05', photon_flux_error='4.95e-08', dlogl='3.13e-02', energy_flux='3.53e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-28 14:17:11.385973', photon_index_error2='0.52', photon_index2='2.18', ts='7.21', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.81e-05', EG='0.97', time_epoch_completed='1632863831.39', return_code='0', job_id='348384', GAL2='1.05', EG2='0.95', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='6.48e-08', ts2='7.26', photon_index='2.05' WHERE bin_id='1410' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:17:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 348384: <4FGL_J2232.6+1143_daily_bin1410> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1410> 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) <bullet0270>, 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:12 2021
Results reported at Tue Sep 28 14:17:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1410 338.152 11.7306 604800001 605059201 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 :                                   563.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            684 sec.

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

