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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1652
RA = 338.152, Dec = 11.7306
tmin = 667526401, tmax = 667785601
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='739855', job_status='RUN', time_executed='2022-03-01 00:54:38.991643', time_epoch_executed='1646124878.99' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739855

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739855/ft1_4FGL_J2232.6+1143_daily_bin1652.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739855/ft2_4FGL_J2232.6+1143_daily_bin1652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739855/ft1_4FGL_J2232.6+1143_daily_bin1652.fits outfile=/scratch/kocevski/739855/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1652.fits ra=338.152 dec=11.7306 rad=12.0 tmin=667526401.0 tmax=667785601.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.54
user 4.26
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/739855/ft2_4FGL_J2232.6+1143_daily_bin1652.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/739855/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1652.fits evtable="EVENTS" outfile="/scratch/kocevski/739855/ft1_filtered_4FGL_J2232.6+1143_daily_bin1652.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.34
sys 0.15
Number of photons that survived the gtmktime cut: 759

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739855/ft1_filtered_4FGL_J2232.6+1143_daily_bin1652.fits" evtable="EVENTS" scfile=/scratch/kocevski/739855/ft2_4FGL_J2232.6+1143_daily_bin1652.fits sctable="SC_DATA" outfile=/scratch/kocevski/739855/ltcube_667526401_667785601_4FGL_J2232.6+1143_daily_bin1652.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/739855/ft2_4FGL_J2232.6+1143_daily_bin1652.fits
.....................!
real 14.62
user 14.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739855/ft1_filtered_4FGL_J2232.6+1143_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/739855/ft2_4FGL_J2232.6+1143_daily_bin1652.fits sctable="SC_DATA" expcube=/scratch/kocevski/739855/ltcube_667526401_667785601_4FGL_J2232.6+1143_daily_bin1652.fits outfile=/scratch/kocevski/739855/expmap_667526401_667785601_4FGL_J2232.6+1143_daily_bin1652.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/739855/ltcube_667526401_667785601_4FGL_J2232.6+1143_daily_bin1652.fits
.....................!
real 191.90
user 186.17
sys 4.74

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/739855/ft1_filtered_4FGL_J2232.6+1143_daily_bin1652.fits scfile=/scratch/kocevski/739855/ft2_4FGL_J2232.6+1143_daily_bin1652.fits outfile=/scratch/kocevski/739855/cmap_667526401_667785601_4FGL_J2232.6+1143_daily_bin1652.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739855/ft1_filtered_4FGL_J2232.6+1143_daily_bin1652.fits scfile=/scratch/kocevski/739855/ft2_4FGL_J2232.6+1143_daily_bin1652.fits outfile=/scratch/kocevski/739855/cmap_HighResolution_667526401_667785601_4FGL_J2232.6+1143_daily_bin1652.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.152 yref=11.7306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2306       1.0000         .10000E-03   10000.    
     3 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10901E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.011       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.935       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7632       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.769       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1828       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .76184       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .62546       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.807       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0534       1.0000         .10000E-03   10000.    
    17 'Prefactor '    93.511       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0938       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0201       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=   8499.325     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2264 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.359        .37786E-04** at limit **
   2  norm          5.2301        3.1531       -.31851E-06   -.57170E-03
   3  norm          .10000E-03    14.663        .11952E-04** at limit **
   4  norm          .10000E-03    .48970       -.34698E-06** at limit **
   5  Prefactor     34.991        30.352       -.16892E-04   -.56605E-06
   6  Prefactor     42.929        45.437       -.49734E-05    .22440E-04
   7  norm          1.7636        4.1211       -.18151E-05   -.89482E-03
   8  Prefactor     28.766        16.211       -.96785E-06    .76251E-04
   9  Prefactor     7.1811        9.2027       -.10726E-05    .25438E-05
  10  Prefactor     .76185        .25423       -.72248E-07    .11440E-02
  11  Prefactor     .10000E-03    5.9440       -.25786E-07** at limit **
  12  norm          .62504        .97762        .13658E-07    .30640E-03
  13  Prefactor     .10000E-03    48.949       -.31635E-04** at limit **
  14  Prefactor     34.805        15.189       -.12114E-05    .80199E-04
  15  Prefactor     .10000E-03    19.520       -.19883E-04** at limit **
  16  Prefactor     1.0533        .21212       -.51360E-07    .66796E-02
  17  Prefactor     93.483        58.111       -.25351E-04    .58009E-04
  18  Prefactor     .10000E-03    1.9829       -.59732E-07** at limit **
  19  Prefactor     .10000E-03    11.699       -.30402E-05** at limit **
  20  Normalizat    1.0943        .25450        .10910E-04    .66330E-04
  21  Prefactor     1.0198        .12525        .19512E-07    .72136E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.23006
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 34.9913
  Prefactor  = 42.9293
  norm       = 1.76365
  Prefactor  = 28.7659
  Prefactor  = 7.18107
  Prefactor  = 0.76185
  Prefactor  = 0.0001
  norm       = 0.625038
  Prefactor  = 0.0001
  Prefactor  = 34.8048
  Prefactor  = 0.0001
  Prefactor  = 1.05328
  Prefactor  = 93.4831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09434
  Prefactor  = 1.01983
 **********
 **   18 **HESSE 
 **********

 FCN=   8499.325     FROM HESSE     STATUS=OK           319 CALLS     2583 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2301        3.1523        .12247E-03   -1.5251    
   3  norm          .10000E-03    14.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.5513        .12466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.991        30.363        .67728E-04   -1.4524    
   6  Prefactor     42.929        45.443        .61181E-04   -1.4397    
   7  norm          1.7636        4.0979        .27536E-03   -1.5442    
   8  Prefactor     28.766        16.227        .74695E-04   -1.4635    
   9  Prefactor     7.1811        9.1979        .14967E-03   -1.5172    
  10  Prefactor     .76185        .25313        .24880E-04   -1.5533    
  11  Prefactor     .10000E-03    5.9973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .62504        .75727        .11044E-02   -1.5550    
  13  Prefactor     .10000E-03    49.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.805        15.141        .67925E-04   -1.4527    
  15  Prefactor     .10000E-03    19.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0533        .21208        .17919E-04   -1.5503    
  17  Prefactor     93.483        58.257        .41560E-04   -1.3771    
  18  Prefactor     .10000E-03    1.9871        .12677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0943        .29221        .39100E-03   -.89934    
  21  Prefactor     1.0198        .14489        .21228E-03   -.92071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13131e-09
Minuit parameter uncertainties:
  1  4.71213e-06
  2  3.15235
  3  3.36668e-05
  4  3.7696e-05
  5  30.3765
  6  45.4793
  7  4.09859
  8  16.2292
  9  9.19968
  10  0.253134
  11  8.91963e-06
  12  0.757283
  13  0.000205438
  14  15.1431
  15  1.18215e-05
  16  0.212076
  17  58.2926
  18  5.23894e-06
  19  1.47861e-05
  20  0.292646
  21  0.144945
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  7.619e-01  2.531e-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.020e+00  1.449e-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.094e+00  2.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.60
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.94e-07 +/- 6.45e-08
Energy Flux (Fixed Index): 7.20e-05 +/- 2.39e-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) = 8497.67930114
delta logL = 1.64593688691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8497.65675237
delta logL = 1.66848565696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66236       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.6952       1.0000          .0000       10.000    
     3 'Normalizat'    .94943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0696       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=   8497.657     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66237        2.2529        .44394E-02   -.25742E-03
   2  Index1        2.6951        2.8808        .12251        .94597E-04
   3  Normalizat    .94948        .13443        .93733E-01    .30937E-04
   4  Prefactor     1.0696        .62591E-01    .38875E-01    .63845E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.662366
  Index1     = 2.69513
  Normalizat = 0.949481
  Prefactor  = 1.06962
 **********
 **   18 **HESSE 
 **********

 FCN=   8497.657     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66237        .24721        .19701E-04   -1.5545    
   2  Index1        2.6951        .38288        .50040E-02   -.47909    
   3  Normalizat    .94948        .28726        .41519E-03   -.94743    
   4  Prefactor     1.0696        .14808        .20770E-03   -.90443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94184e-09
Minuit parameter uncertainties:
  1  0.247208
  2  0.383353
  3  0.287731
  4  0.148136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739855': 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) = 8497.65675235
delta logL = 1.66848568015

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  6.624e-01  2.472e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.695e+00  3.834e-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.070e+00  1.481e-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.495e-01  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.30
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.70 +/- 0.38
Photon Flux (Free Index): 3.20e-07 +/- 1.06e-07
Energy Flux (Free Index): 6.95e-05 +/- 1.96e-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/739855/cmap_HighResolution_667526401_667785601_4FGL_J2232.6+1143_daily_bin1652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.94e-07', energy_flux2='6.95e-05', photon_flux_error='6.45e-08', dlogl='1.67e+00', energy_flux='7.20e-05', photon_flux2='3.20e-07', job_status='DONE', time_completed='2022-03-01 01:05:21.820064', photon_index_error2='0.38', photon_index2='2.70', ts='22.60', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='1.09', time_epoch_completed='1646125521.82', return_code='0', job_id='739855', GAL2='1.07', EG2='0.95', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='1.06e-07', ts2='26.30', photon_index='2.05' WHERE bin_id='1652' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar  1 01:05:21 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 739855: <4FGL_J2232.6+1143_daily_bin1652> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1652> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Mar  1 00:50:39 2022
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 00:51:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 00:51:37 2022
Terminated at Tue Mar  1 01:05:22 2022
Results reported at Tue Mar  1 01:05:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1652 338.152 11.7306 667526401 667785601 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 :                                   644.00 sec.
    Max Memory :                                 1161 MB
    Average Memory :                             293.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            883 sec.

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

