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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1604
RA = 338.152, Dec = 11.7306
tmin = 655084801, tmax = 655344001
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='10671', job_status='RUN', time_executed='2021-10-08 00:29:28.904958', time_epoch_executed='1633678168.9' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10671/ft1_4FGL_J2232.6+1143_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10671/ft2_4FGL_J2232.6+1143_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10671/ft1_4FGL_J2232.6+1143_daily_bin1604.fits outfile=/scratch/kocevski/10671/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1604.fits ra=338.152 dec=11.7306 rad=12.0 tmin=655084801.0 tmax=655344001.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 2.92
user 2.69
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10671/ft2_4FGL_J2232.6+1143_daily_bin1604.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/10671/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1604.fits evtable="EVENTS" outfile="/scratch/kocevski/10671/ft1_filtered_4FGL_J2232.6+1143_daily_bin1604.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/10671/ft1_filtered_4FGL_J2232.6+1143_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/10671/ft2_4FGL_J2232.6+1143_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/10671/ltcube_655084801_655344001_4FGL_J2232.6+1143_daily_bin1604.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/10671/ft2_4FGL_J2232.6+1143_daily_bin1604.fits
.....................!
real 14.88
user 14.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10671/ft1_filtered_4FGL_J2232.6+1143_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/10671/ft2_4FGL_J2232.6+1143_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/10671/ltcube_655084801_655344001_4FGL_J2232.6+1143_daily_bin1604.fits outfile=/scratch/kocevski/10671/expmap_655084801_655344001_4FGL_J2232.6+1143_daily_bin1604.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/10671/ltcube_655084801_655344001_4FGL_J2232.6+1143_daily_bin1604.fits
.....................!
real 190.73
user 185.52
sys 4.66

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/10671/ft1_filtered_4FGL_J2232.6+1143_daily_bin1604.fits scfile=/scratch/kocevski/10671/ft2_4FGL_J2232.6+1143_daily_bin1604.fits outfile=/scratch/kocevski/10671/cmap_655084801_655344001_4FGL_J2232.6+1143_daily_bin1604.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.62
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10671/ft1_filtered_4FGL_J2232.6+1143_daily_bin1604.fits scfile=/scratch/kocevski/10671/ft2_4FGL_J2232.6+1143_daily_bin1604.fits outfile=/scratch/kocevski/10671/cmap_HighResolution_655084801_655344001_4FGL_J2232.6+1143_daily_bin1604.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .49423       1.0000         .10000E-03   10000.    
     3 'norm      '    70.315       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1110       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11610E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.233       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11745E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51689       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    79.976       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6816       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37233       1.0000         .10000E-03   10000.    
    17 'Prefactor '    194.36       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2474       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81784       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=   2494.163     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2541 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.729        .38367E-04** at limit **
   2  norm          .48903        4.7240       -.37679E-05   -.21652E-03
   3  norm          70.325        49.867        .62666E-05    .32121E-03
   4  norm          .10000E-03    .58650       -.49977E-07** at limit **
   5  Prefactor     8.1009        38.938       -.10604E-04    .38060E-04
   6  Prefactor     .10000E-03    169.39       -.25897E-04** at limit **
   7  norm          10.202        9.2628       -.24020E-05   -.70202E-04
   8  Prefactor     26.214        45.138       -.16376E-04    .24235E-04
   9  Prefactor     .10000E-03    75.102        .16745E-04** at limit **
  10  Prefactor     .51698        .63816        .86461E-06    .16167E-02
  11  Prefactor     .10000E-03    11.185       -.16053E-06** at limit **
  12  norm          .10000E-03    1.5812        .29147E-07** at limit **
  13  Prefactor     .10000E-03    63.877       -.47193E-04** at limit **
  14  Prefactor     79.965        42.803       -.51966E-05   -.27185E-04
  15  Prefactor     3.6498        321.56       -.11658E-03    .59094E-05
  16  Prefactor     .37248        .43875        .10505E-05    .19988E-02
  17  Prefactor     194.34        221.74       -.17504E-04   -.10646E-05
  18  Prefactor     .10000E-03    12.255        .12706E-06** at limit **
  19  Prefactor     .10000E-03    47.289        .94569E-05** at limit **
  20  Normalizat    1.2483        .46932        .93236E-05    .10577E-03
  21  Prefactor     .81734        .21818        .10594E-05    .40540E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.489034
  norm       = 70.3255
  norm       = 0.0001
  Prefactor  = 8.10091
  Prefactor  = 0.0001
  norm       = 10.2017
  Prefactor  = 26.2141
  Prefactor  = 0.000100002
  Prefactor  = 0.516978
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.9645
  Prefactor  = 3.64982
  Prefactor  = 0.372477
  Prefactor  = 194.339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24827
  Prefactor  = 0.817345
 **********
 **   18 **HESSE 
 **********

 FCN=   2494.163     FROM HESSE     STATUS=OK           315 CALLS     2856 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .48903        7.6948        .18901E-02   -1.5568    
   3  norm          70.325        48.888        .47872E-04   -1.4029    
   4  norm          .10000E-03    .60293        .74603E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.1009        39.049        .14078E-03   -1.5139    
   6  Prefactor     .10000E-03    170.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.202        9.2841        .12543E-03   -1.5069    
   8  Prefactor     26.214        44.567        .78214E-04   -1.4684    
   9  Prefactor     .10000E-03    76.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .51698        .60986        .34260E-04   -1.5564    
  11  Prefactor     .10000E-03    11.204        .16307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5823        .61324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    63.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     79.965        42.829        .22454E-03   -1.3917    
  15  Prefactor     3.6498        321.38        .21050E-03   -1.5326    
  16  Prefactor     .37248        .42622        .30527E-04   -1.5586    
  17  Prefactor     194.34        223.39        .14487E-03   -1.2911    
  18  Prefactor     .10000E-03    12.257        .17078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    47.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2483        .58113        .34459E-03   -.85124    
  21  Prefactor     .81734        .27154        .20931E-03   -.99092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55166e-09
Minuit parameter uncertainties:
  1  0.000140652
  2  3.87989
  3  48.9156
  4  4.1118e-06
  5  35.609
  6  1.79036e-05
  7  9.28541
  8  44.6236
  9  0.000689868
  10  0.609863
  11  4.87164e-05
  12  3.27182e-06
  13  0.000272547
  14  42.8451
  15  68.8814
  16  0.426227
  17  224.373
  18  3.30235e-05
  19  0.000132085
  20  0.584188
  21  0.271987
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  5.170e-01  6.099e-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:  8.173e-01  2.720e-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.248e+00  5.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 1.55e-07
Energy Flux (Fixed Index): 4.89e-05 +/- 5.76e-05

TS (Fixed Index): 1.26
Ra Dec: 338.152 11.731
Photon Flux Upper Limit: 4.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10671/likelihoodResults_655084801_655344001_4FGL_J2232.6+1143_daily_bin1604.txt

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) = 2492.26462509
delta logL = 1.89882413768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2492.23938968
delta logL = 1.92405954616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20436       1.0000         .10000E-03   10000.    
     2 'Index1    '    3.9112       1.0000          .0000       10.000    
     3 'Normalizat'    .83919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97506       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=   2492.239     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20341        1.9344        .24814E-02    .12845E-01
   2  Index1        3.9144        3.7760        .82364E-01    .43755E-03
   3  Normalizat    .83900        .17437        .92102E-01    .18360E-03
   4  Prefactor     .97528        .91201E-01    .45955E-01    .11331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.203413
  Index1     = 3.91444
  Normalizat = 0.839004
  Prefactor  = 0.975282
 **********
 **   18 **HESSE 
 **********

 FCN=   2492.239     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20341        .56201        .11029E-04   -1.5618    
   2  Index1        3.9144        1.9496        .35151E-02   -.21885    
   3  Normalizat    .83900        .56455        .40797E-03   -.98638    
   4  Prefactor     .97528        .28246        .19318E-03   -.93558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14385e-09
Minuit parameter uncertainties:
  1  0.562028
  2  2.00551
  3  0.568573
  4  0.282884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10671': 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) = 2492.2393859
delta logL = 1.92406332442

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.034e-01  5.620e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  3.914e+00  2.006e+00  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:  9.753e-01  2.829e-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.390e-01  5.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.92
Ra Dec: 338.152 11.731
Photon Index (Free Index): 3.91 +/- 2.01
Photon Flux (Free Index): 4.47e-07 +/- 2.42e-07
Energy Flux (Free Index): 6.70e-05 +/- 4.36e-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/10671/cmap_HighResolution_655084801_655344001_4FGL_J2232.6+1143_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-04', comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='6.70e-05', photon_flux_error='1.55e-07', dlogl='1.92e+00', energy_flux='4.89e-05', photon_flux2='4.47e-07', job_status='DONE', time_completed='2021-10-08 00:36:37.763486', photon_index_error2='2.01', photon_index2='3.91', ts='1.26', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='4.06e-07', energy_flux_error2='4.36e-05', EG='1.25', time_epoch_completed='1633678597.76', return_code='0', job_id='10671', GAL2='0.98', EG2='0.84', return_code2='0', energy_flux_error='5.76e-05', photon_flux_error2='2.42e-07', ts2='5.92', photon_index='2.05' WHERE bin_id='1604' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:36:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 10671: <4FGL_J2232.6+1143_daily_bin1604> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1604> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Oct  8 00:25:16 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:25:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:25:20 2021
Terminated at Fri Oct  8 00:36:38 2021
Results reported at Fri Oct  8 00:36:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1604 338.152 11.7306 655084801 655344001 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 :                                   431.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             248.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            682 sec.

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

