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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1295
RA = 338.152, Dec = 11.7306
tmin = 574992001, tmax = 575251201
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='348205', job_status='RUN', time_executed='2021-09-28 14:08:37.028439', time_epoch_executed='1632863317.03' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348205

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348205/ft1_4FGL_J2232.6+1143_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348205/ft2_4FGL_J2232.6+1143_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348205/ft1_4FGL_J2232.6+1143_daily_bin1295.fits outfile=/scratch/kocevski/348205/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1295.fits ra=338.152 dec=11.7306 rad=12.0 tmin=574992001.0 tmax=575251201.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.31
user 5.05
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348205/ft2_4FGL_J2232.6+1143_daily_bin1295.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/348205/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1295.fits evtable="EVENTS" outfile="/scratch/kocevski/348205/ft1_filtered_4FGL_J2232.6+1143_daily_bin1295.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/348205/ft1_filtered_4FGL_J2232.6+1143_daily_bin1295.fits" evtable="EVENTS" scfile=/scratch/kocevski/348205/ft2_4FGL_J2232.6+1143_daily_bin1295.fits sctable="SC_DATA" outfile=/scratch/kocevski/348205/ltcube_574992001_575251201_4FGL_J2232.6+1143_daily_bin1295.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/348205/ft2_4FGL_J2232.6+1143_daily_bin1295.fits
.....................!
real 11.79
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348205/ft1_filtered_4FGL_J2232.6+1143_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/348205/ft2_4FGL_J2232.6+1143_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/348205/ltcube_574992001_575251201_4FGL_J2232.6+1143_daily_bin1295.fits outfile=/scratch/kocevski/348205/expmap_574992001_575251201_4FGL_J2232.6+1143_daily_bin1295.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/348205/ltcube_574992001_575251201_4FGL_J2232.6+1143_daily_bin1295.fits
.....................!
real 191.76
user 187.06
sys 4.34

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/348205/ft1_filtered_4FGL_J2232.6+1143_daily_bin1295.fits scfile=/scratch/kocevski/348205/ft2_4FGL_J2232.6+1143_daily_bin1295.fits outfile=/scratch/kocevski/348205/cmap_574992001_575251201_4FGL_J2232.6+1143_daily_bin1295.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.152 yref=11.7306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348205/ft1_filtered_4FGL_J2232.6+1143_daily_bin1295.fits scfile=/scratch/kocevski/348205/ft2_4FGL_J2232.6+1143_daily_bin1295.fits outfile=/scratch/kocevski/348205/cmap_HighResolution_574992001_575251201_4FGL_J2232.6+1143_daily_bin1295.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4041       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.160       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2802       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26160       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.792       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.593       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6592       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7344       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3311       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99972       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=   8418.687     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2177 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.478       -.10150E-05** at limit **
   2  norm          .10000E-03    1.5854        .36908E-07** at limit **
   3  norm          4.4021        53.651       -.36985E-05   -.13516E-04
   4  norm          .10000E-03    .49277        .89477E-08** at limit **
   5  Prefactor     .10000E-03    15.762       -.49902E-05** at limit **
   6  Prefactor     37.159        40.001       -.43573E-06    .85252E-05
   7  norm          .10000E-03    2.9965        .71522E-08** at limit **
   8  Prefactor     6.2787        10.774        .30729E-06   -.32331E-03
   9  Prefactor     .10000E-03    6.4200        .11389E-07** at limit **
  10  Prefactor     .26163        .23189       -.18257E-08   -.58180E-03
  11  Prefactor     10.791        7.4484       -.43566E-07    .18424E-03
  12  norm          .10000E-03    .44646       -.51879E-08** at limit **
  13  Prefactor     .10000E-03    17.945        .42812E-05** at limit **
  14  Prefactor     .10000E-03    9.2383       -.52322E-06** at limit **
  15  Prefactor     13.592        15.394       -.10597E-06   -.69294E-05
  16  Prefactor     2.6592        .32203       -.59650E-08   -.28985E-03
  17  Prefactor     .10000E-03    17.303        .72136E-06** at limit **
  18  Prefactor     4.7339        5.4028        .53614E-06   -.92237E-03
  19  Prefactor     .10000E-03    10.802        .12419E-05** at limit **
  20  Normalizat    1.3310        .24874        .11161E-06    .89549E-05
  21  Prefactor     .99973        .12895        .43929E-07    .15658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.40207
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.1592
  norm       = 0.0001
  Prefactor  = 6.27873
  Prefactor  = 0.0001
  Prefactor  = 0.261633
  Prefactor  = 10.7914
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5922
  Prefactor  = 2.65917
  Prefactor  = 0.0001
  Prefactor  = 4.73386
  Prefactor  = 0.0001
  Normalizat = 1.33103
  Prefactor  = 0.999733
 **********
 **   18 **HESSE 
 **********

 FCN=   8418.687     FROM HESSE     STATUS=OK           317 CALLS     2494 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6122        .11267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4021        53.733        .19191E-03   -1.5288    
   4  norm          .10000E-03    .75695        .12456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.159        40.058        .65746E-04   -1.4488    
   7  norm          .10000E-03    3.0167        .15508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2787        11.276        .80089E-03   -1.5207    
   9  Prefactor     .10000E-03    6.4396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .26163        .21925        .37982E-03   -1.5606    
  11  Prefactor     10.791        7.4718        .60981E-03   -1.5051    
  12  norm          .10000E-03    .44693        .59870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.592        15.402        .10864E-03   -1.4970    
  16  Prefactor     2.6592        .32410        .17084E-04   -1.5382    
  17  Prefactor     .10000E-03    17.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7339        8.8944        .92463E-03   -1.5273    
  19  Prefactor     .10000E-03    10.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3310        .29660        .36913E-03   -.82645    
  21  Prefactor     .99973        .15471        .22067E-03   -.92738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30805e-09
Minuit parameter uncertainties:
  1  3.88676e-05
  2  4.71051e-06
  3  30.7937
  4  1.55765e-06
  5  0.000133754
  6  40.087
  7  7.72938e-07
  8  11.2798
  9  8.62994e-07
  10  0.219254
  11  7.47245
  12  5.91585e-08
  13  0.000134186
  14  1.27192e-05
  15  15.4066
  16  0.324099
  17  1.98961e-05
  18  8.89684
  19  2.57556e-05
  20  0.296978
  21  0.154775
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.616e-01  2.193e-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:  9.997e-01  1.548e-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.331e+00  2.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 5.59e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 2.07e-05

TS (Fixed Index): 1.96
Ra Dec: 338.152 11.731
Photon Flux Upper Limit: 1.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/348205/likelihoodResults_574992001_575251201_4FGL_J2232.6+1143_daily_bin1295.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) = 8417.69123274
delta logL = 0.995686059083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8417.68991737
delta logL = 0.997001424434

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23503       1.0000         .10000E-03   10000.    
     2 'Index1    '    3.0700       1.0000          .0000       10.000    
     3 'Normalizat'    1.2118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0385       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=   8417.690     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23505        1.7192        .52406E-02    .27338E-02
   2  Index1        3.0700        3.5216        .15845        .10789E-03
   3  Normalizat    1.2118        .73563E-01    .86604E-01    .19995E-04
   4  Prefactor     1.0385        .38568E-01    .40633E-01    .53033E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.235053
  Index1     = 3.07004
  Normalizat = 1.21181
  Prefactor  = 1.03854
 **********
 **   18 **HESSE 
 **********

 FCN=   8417.690     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23505        .23358        .23613E-04   -1.5611    
   2  Index1        3.0700        .90210        .78176E-02   -.39628    
   3  Normalizat    1.2118        .30781        .38350E-03   -.86239    
   4  Prefactor     1.0385        .15858        .21677E-03   -.91456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85137e-09
Minuit parameter uncertainties:
  1  0.233579
  2  0.907952
  3  0.308268
  4  0.158647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348205': 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) = 8417.68991734
delta logL = 0.997001457701

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.351e-01  2.336e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  3.070e+00  9.080e-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.039e+00  1.586e-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.212e+00  3.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.12
Ra Dec: 338.152 11.731
Photon Index (Free Index): 3.07 +/- 0.91
Photon Flux (Free Index): 1.75e-07 +/- 1.10e-07
Energy Flux (Free Index): 3.23e-05 +/- 1.83e-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/348205/cmap_HighResolution_574992001_575251201_4FGL_J2232.6+1143_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-05', comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='3.23e-05', photon_flux_error='5.59e-08', dlogl='9.97e-01', energy_flux='2.47e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-28 14:20:23.843117', photon_index_error2='0.91', photon_index2='3.07', ts='1.96', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='1.83e-05', EG='1.33', time_epoch_completed='1632864023.84', return_code='0', job_id='348205', GAL2='1.04', EG2='1.21', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='1.10e-07', ts2='4.12', photon_index='2.05' WHERE bin_id='1295' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:20:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 348205: <4FGL_J2232.6+1143_daily_bin1295> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1295 338.152 11.7306 574992001 575251201 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 :                                   695.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            891 sec.

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

