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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1365
RA = 338.152, Dec = 11.7306
tmin = 593136001, tmax = 593395201
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='348313', job_status='RUN', time_executed='2021-09-28 14:08:29.514775', time_epoch_executed='1632863309.51' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348313/ft1_4FGL_J2232.6+1143_daily_bin1365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348313/ft2_4FGL_J2232.6+1143_daily_bin1365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348313/ft1_4FGL_J2232.6+1143_daily_bin1365.fits outfile=/scratch/kocevski/348313/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1365.fits ra=338.152 dec=11.7306 rad=12.0 tmin=593136001.0 tmax=593395201.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.15
user 4.93
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348313/ft1_filtered_4FGL_J2232.6+1143_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/348313/ft2_4FGL_J2232.6+1143_daily_bin1365.fits sctable="SC_DATA" expcube=/scratch/kocevski/348313/ltcube_593136001_593395201_4FGL_J2232.6+1143_daily_bin1365.fits outfile=/scratch/kocevski/348313/expmap_593136001_593395201_4FGL_J2232.6+1143_daily_bin1365.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/348313/ltcube_593136001_593395201_4FGL_J2232.6+1143_daily_bin1365.fits
.....................!
real 189.70
user 185.06
sys 4.24

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/348313/ft1_filtered_4FGL_J2232.6+1143_daily_bin1365.fits scfile=/scratch/kocevski/348313/ft2_4FGL_J2232.6+1143_daily_bin1365.fits outfile=/scratch/kocevski/348313/cmap_593136001_593395201_4FGL_J2232.6+1143_daily_bin1365.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348313/ft1_filtered_4FGL_J2232.6+1143_daily_bin1365.fits scfile=/scratch/kocevski/348313/ft2_4FGL_J2232.6+1143_daily_bin1365.fits outfile=/scratch/kocevski/348313/cmap_HighResolution_593136001_593395201_4FGL_J2232.6+1143_daily_bin1365.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    97.087       1.0000         .10000E-03   10000.    
     2 'norm      '    7.7865       1.0000         .10000E-03   10000.    
     3 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4833       1.0000         .10000E-03   10000.    
     5 'Prefactor '    58.339       1.0000         .10000E-03   10000.    
     6 'Prefactor '    57.343       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78474       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .75137E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15002       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.833       1.0000         .10000E-03   10000.    
    14 'Prefactor '    145.26       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.181       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .73507       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6210       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4334       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2613       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .67253       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=   6535.778     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2233 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     97.103        101.78        .15418E-04   -.10595E-04
   2  norm          7.7865        3.9975       -.37597E-06   -.21056E-03
   3  norm          .10000E-03    30.736       -.11569E-05** at limit **
   4  norm          1.4833        1.1935        .50465E-06   -.79741E-03
   5  Prefactor     58.340        30.580       -.92070E-06   -.75968E-04
   6  Prefactor     57.366        41.551        .21687E-04   -.13540E-03
   7  norm          .10000E-03    1.5678        .27798E-07** at limit **
   8  Prefactor     .76116        14.320        .29386E-05   -.39727E-03
   9  Prefactor     .10005E-03    12.339        .60425E-05** at limit **
  10  Prefactor     .15036        .21720        .27966E-07   -.68404E-02
  11  Prefactor     .10000E-03    3.2456        .99992E-07** at limit **
  12  norm          .10000E-03    1.7546        .36289E-06** at limit **
  13  Prefactor     26.849        32.851        .16648E-04   -.57898E-04
  14  Prefactor     145.25        26.109       -.11740E-05   -.49319E-03
  15  Prefactor     35.179        26.578       -.13517E-05   -.88986E-04
  16  Prefactor     .73504        .22005        .16418E-07   -.25308E-02
  17  Prefactor     5.6659        57.048        .11091E-03   -.20436E-04
  18  Prefactor     .10000E-03    13.140        .62438E-06** at limit **
  19  Prefactor     2.4339        12.331        .20937E-05   -.25635E-03
  20  Normalizat    1.2611        .25436       -.13560E-04   -.57749E-03
  21  Prefactor     .67255        .12487       -.66457E-06   -.15660E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 97.1027
  norm       = 7.78652
  norm       = 0.0001
  norm       = 1.48333
  Prefactor  = 58.3397
  Prefactor  = 57.3656
  norm       = 0.0001
  Prefactor  = 0.761159
  Prefactor  = 0.000100051
  Prefactor  = 0.150359
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.8489
  Prefactor  = 145.251
  Prefactor  = 35.1787
  Prefactor  = 0.735044
  Prefactor  = 5.66588
  Prefactor  = 0.000100001
  Prefactor  = 2.4339
  Normalizat = 1.26113
  Prefactor  = 0.672549
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.778     FROM HESSE     STATUS=OK           317 CALLS     2550 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     97.103        102.03        .20397E-03   -1.3734    
   2  norm          7.7865        4.0053        .10673E-03   -1.5150    
   3  norm          .10000E-03    30.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4833        1.1907        .75462E-04   -1.5464    
   5  Prefactor     58.340        30.567        .52525E-04   -1.4179    
   6  Prefactor     57.366        41.520        .52977E-04   -1.4192    
   7  norm          .10000E-03    1.5698        .98849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .76116        123.62        .50006E-02   -1.5533    
   9  Prefactor     .10005E-03    68.009        .54038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15036        .19990        .37586E-03   -1.5630    
  11  Prefactor     .10000E-03    3.2525        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8331        .20869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.849        32.917        .77336E-04   -1.4671    
  14  Prefactor     145.25        26.032        .33433E-04   -1.3292    
  15  Prefactor     35.179        26.635        .67565E-04   -1.4521    
  16  Prefactor     .73504        .22063        .18916E-04   -1.5537    
  17  Prefactor     5.6659        56.862        .16944E-03   -1.5232    
  18  Prefactor     .10000E-03    13.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4339        12.289        .26232E-03   -1.5396    
  20  Normalizat    1.2611        .30065        .31801E-03   -.84734    
  21  Prefactor     .67255        .14986        .22034E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4191e-09
Minuit parameter uncertainties:
  1  102.216
  2  4.00543
  3  9.16331e-05
  4  1.19077
  5  30.5754
  6  41.5412
  7  6.49591e-06
  8  19.4401
  9  0.00373007
  10  0.199903
  11  8.25849e-06
  12  3.03526e-05
  13  32.9388
  14  26.0338
  15  26.644
  16  0.220626
  17  35.9425
  18  0.000249048
  19  10.9412
  20  0.301061
  21  0.149947
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.504e-01  1.999e-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:  6.725e-01  1.499e-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.261e+00  3.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/348313/likelihoodResults_593136001_593395201_4FGL_J2232.6+1143_daily_bin1365.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) = 6535.14103957
delta logL = 0.636837447933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6535.12620024
delta logL = 0.651676781985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13657       1.0000         .10000E-03   10000.    
     2 'Index1    '    3.0457       1.0000          .0000       10.000    
     3 'Normalizat'    1.1876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69642       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=   6535.126     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      216 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13658        1.5345        .48710E-02    .27168E-02
   2  Index1        3.0461        3.5362        .22004        .67042E-04
   3  Normalizat    1.1876        .58090E-01    .73690E-01    .74074E-05
   4  Prefactor     .69642        .31131E-01    .42354E-01    .16695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.136581
  Index1     = 3.04606
  Normalizat = 1.18761
  Prefactor  = 0.696425
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.126     FROM HESSE     STATUS=OK            35 CALLS      251 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13658        .21105        .22185E-03   -1.5634    
   2  Index1        3.0461        1.2464        .78492E-02   -.40149    
   3  Normalizat    1.1876        .29334        .32611E-03   -.86987    
   4  Prefactor     .69642        .15183        .21677E-03   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44453e-09
Minuit parameter uncertainties:
  1  0.211047
  2  1.26219
  3  0.29375
  4  0.151925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348313': 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) = 6535.12620002
delta logL = 0.651676994844

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.366e-01  2.110e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  3.046e+00  1.262e+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:  6.964e-01  1.519e-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.188e+00  2.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 338.152 11.731
Photon Index (Free Index): 3.05 +/- 1.26
Photon Flux (Free Index): 9.90e-08 +/- 7.83e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.51e-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/348313/cmap_HighResolution_593136001_593395201_4FGL_J2232.6+1143_daily_bin1365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-05', comment='SUCCESS', energy_flux2='1.84e-05', dlogl='6.52e-01', photon_flux2='9.90e-08', job_status='DONE', time_completed='2021-09-28 14:18:37.641007', photon_index_error2='1.26', photon_index2='3.05', ts='0.93', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.51e-05', EG='1.26', time_epoch_completed='1632863917.64', return_code='0', job_id='348313', GAL2='0.70', EG2='1.19', return_code2='0', photon_flux_error2='7.83e-08', ts2='2.28', photon_index='2.05' WHERE bin_id='1365' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:18:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 348313: <4FGL_J2232.6+1143_daily_bin1365> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1365 338.152 11.7306 593136001 593395201 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 :                                   595.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            776 sec.

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

