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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1328
RA = 338.152, Dec = 11.7306
tmin = 583545601, tmax = 583804801
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='348254', job_status='RUN', time_executed='2021-09-28 14:08:53.900884', time_epoch_executed='1632863333.9' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348254

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348254/ft1_4FGL_J2232.6+1143_daily_bin1328.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348254/ft2_4FGL_J2232.6+1143_daily_bin1328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348254/ft1_4FGL_J2232.6+1143_daily_bin1328.fits outfile=/scratch/kocevski/348254/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1328.fits ra=338.152 dec=11.7306 rad=12.0 tmin=583545601.0 tmax=583804801.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.49
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348254/ft1_filtered_4FGL_J2232.6+1143_daily_bin1328.fits" evtable="EVENTS" scfile=/scratch/kocevski/348254/ft2_4FGL_J2232.6+1143_daily_bin1328.fits sctable="SC_DATA" outfile=/scratch/kocevski/348254/ltcube_583545601_583804801_4FGL_J2232.6+1143_daily_bin1328.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/348254/ft2_4FGL_J2232.6+1143_daily_bin1328.fits
.....................!
real 11.93
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348254/ft1_filtered_4FGL_J2232.6+1143_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/348254/ft2_4FGL_J2232.6+1143_daily_bin1328.fits sctable="SC_DATA" expcube=/scratch/kocevski/348254/ltcube_583545601_583804801_4FGL_J2232.6+1143_daily_bin1328.fits outfile=/scratch/kocevski/348254/expmap_583545601_583804801_4FGL_J2232.6+1143_daily_bin1328.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/348254/ltcube_583545601_583804801_4FGL_J2232.6+1143_daily_bin1328.fits
.....................!
real 189.70
user 184.99
sys 4.33

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/348254/ft1_filtered_4FGL_J2232.6+1143_daily_bin1328.fits scfile=/scratch/kocevski/348254/ft2_4FGL_J2232.6+1143_daily_bin1328.fits outfile=/scratch/kocevski/348254/cmap_583545601_583804801_4FGL_J2232.6+1143_daily_bin1328.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.56
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .56760       1.0000         .10000E-03   10000.    
     3 'norm      '    17.559       1.0000         .10000E-03   10000.    
     4 'norm      '    .55513       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.966       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2222       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8409       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2109       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2927       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16616E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    185.38       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.809       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6745       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3567       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75862       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0017       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=   9835.548     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2224 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.232       -.48073E-07** at limit **
   2  norm          .56941        1.3085       -.19268E-06   -.10803E-02
   3  norm          17.550        25.371       -.18289E-05    .48712E-03
   4  norm          .55551        .84312       -.17323E-06   -.12467E-02
   5  Prefactor     .10000E-03    9.3516        .29011E-08** at limit **
   6  Prefactor     17.965        24.489       -.32358E-06    .54060E-04
   7  norm          2.2216        4.0368       -.41900E-06   -.43690E-03
   8  Prefactor     .10000E-03    5.3418       -.10935E-07** at limit **
   9  Prefactor     9.8415        10.252       -.11700E-05   -.91037E-03
  10  Prefactor     1.2109        .24568        .13859E-07    .40753E-03
  11  Prefactor     1.2929        4.9035       -.35865E-05    .29395E-03
  12  norm          2.4725        1.5880        .78927E-08    .10915E-03
  13  Prefactor     .10000E-03    84.058        .32299E-07** at limit **
  14  Prefactor     185.38        24.514        .17852E-07   -.85568E-04
  15  Prefactor     27.812        21.219        .46323E-07   -.62514E-04
  16  Prefactor     1.6747        .23245       -.77332E-08    .26414E-03
  17  Prefactor     .10000E-03    33.397        .11699E-06** at limit **
  18  Prefactor     .10000E-03    4.0078       -.20215E-07** at limit **
  19  Prefactor     4.3537        12.393       -.61719E-06   -.34926E-04
  20  Normalizat    .75866        .21573        .69453E-06    .38787E-04
  21  Prefactor     1.0017        .11241        .30538E-06    .74299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.56941
  norm       = 17.55
  norm       = 0.555507
  Prefactor  = 0.0001
  Prefactor  = 17.9645
  norm       = 2.2216
  Prefactor  = 0.0001
  Prefactor  = 9.84153
  Prefactor  = 1.21091
  Prefactor  = 1.29289
  norm       = 2.47248
  Prefactor  = 0.0001
  Prefactor  = 185.38
  Prefactor  = 27.8118
  Prefactor  = 1.67468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.35371
  Normalizat = 0.758661
  Prefactor  = 1.00166
 **********
 **   18 **HESSE 
 **********

 FCN=   9835.548     FROM HESSE     STATUS=OK           321 CALLS     2545 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .56941        1.0483        .16933E-02   -1.5557    
   3  norm          17.550        24.708        .95582E-04   -1.4870    
   4  norm          .55551        .80386        .10786E-02   -1.5559    
   5  Prefactor     .10000E-03    9.3679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.965        24.508        .94492E-04   -1.4860    
   7  norm          2.2216        4.0693        .26075E-03   -1.5410    
   8  Prefactor     .10000E-03    5.3610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.8415        11.503        .63869E-03   -1.5080    
  10  Prefactor     1.2109        .24531        .20791E-04   -1.5488    
  11  Prefactor     1.2929        5.5942        .38932E-03   -1.5481    
  12  norm          2.4725        1.5920        .96564E-04   -1.5393    
  13  Prefactor     .10000E-03    85.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     185.38        24.473        .29655E-04   -1.2976    
  15  Prefactor     27.812        21.269        .75970E-04   -1.4653    
  16  Prefactor     1.6747        .23319        .16519E-04   -1.5449    
  17  Prefactor     .10000E-03    33.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.3537        12.450        .19297E-03   -1.5291    
  20  Normalizat    .75866        .24524        .42134E-03   -1.0162    
  21  Prefactor     1.0017        .12916        .20389E-03   -.92674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44935e-09
Minuit parameter uncertainties:
  1  2.75864e-05
  2  1.04836
  3  24.7228
  4  0.80388
  5  1.70406e-06
  6  24.5216
  7  4.06978
  8  1.24422e-06
  9  11.5052
  10  0.245308
  11  5.37936
  12  1.59201
  13  0.000101096
  14  24.4745
  15  21.2747
  16  0.233192
  17  0.000118274
  18  1.23173e-06
  19  12.4572
  20  0.245597
  21  0.1292
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.211e+00  2.453e-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.002e+00  1.292e-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:  7.587e-01  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 68.18
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 3.09e-07 +/- 6.25e-08
Energy Flux (Fixed Index): 1.14e-04 +/- 2.32e-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) = 9835.01295504
delta logL = 0.535343737814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9834.99056758
delta logL = 0.557731200248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1454       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2727       1.0000          .0000       10.000    
     3 'Normalizat'    .70365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0210       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=   9834.991     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      230 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1455        3.0318        .43844E-02    .25008E-03
   2  Index1        2.2729        2.4121        .97081E-01    .10655E-03
   3  Normalizat    .70361        .27636        .98247E-01    .49514E-04
   4  Prefactor     1.0208        .14321        .42044E-01   -.26105E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14546
  Index1     = 2.27288
  Normalizat = 0.703611
  Prefactor  = 1.02082
 **********
 **   18 **HESSE 
 **********

 FCN=   9834.991     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .77E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1455        .24375        .19410E-04   -1.5494    
   2  Index1        2.2729        .21463        .41477E-02   -.57689    
   3  Normalizat    .70361        .23818        .43545E-03   -1.0375    
   4  Prefactor     1.0208        .12929        .20207E-03   -.92039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66219e-13
Minuit parameter uncertainties:
  1  0.243747
  2  0.214723
  3  0.238528
  4  0.129329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348254': 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) = 9834.99056317
delta logL = 0.55773560723

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.145e+00  2.437e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.273e+00  2.147e-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.021e+00  1.293e-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:  7.036e-01  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 68.36
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.27 +/- 0.21
Photon Flux (Free Index): 3.56e-07 +/- 8.02e-08
Energy Flux (Free Index): 1.05e-04 +/- 2.19e-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/348254/cmap_HighResolution_583545601_583804801_4FGL_J2232.6+1143_daily_bin1328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.09e-07', energy_flux2='1.05e-04', photon_flux_error='6.25e-08', dlogl='5.58e-01', energy_flux='1.14e-04', photon_flux2='3.56e-07', job_status='DONE', time_completed='2021-09-28 14:20:41.728289', photon_index_error2='0.21', photon_index2='2.27', ts='68.18', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='0.76', time_epoch_completed='1632864041.73', return_code='0', job_id='348254', GAL2='1.02', EG2='0.70', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='8.02e-08', ts2='68.36', photon_index='2.05' WHERE bin_id='1328' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:20:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 348254: <4FGL_J2232.6+1143_daily_bin1328> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1328 338.152 11.7306 583545601 583804801 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 :                                   688.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            906 sec.

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

