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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin621
RA = 338.152, Dec = 11.7306
tmin = 400291201, tmax = 400550401
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='345092', job_status='RUN', time_executed='2021-09-28 13:55:30.611885', time_epoch_executed='1632862530.61' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345092/ft1_4FGL_J2232.6+1143_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345092/ft2_4FGL_J2232.6+1143_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345092/ft1_4FGL_J2232.6+1143_daily_bin621.fits outfile=/scratch/kocevski/345092/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin621.fits ra=338.152 dec=11.7306 rad=12.0 tmin=400291201.0 tmax=400550401.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.40
user 3.16
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345092/ft1_filtered_4FGL_J2232.6+1143_daily_bin621.fits" evtable="EVENTS" scfile=/scratch/kocevski/345092/ft2_4FGL_J2232.6+1143_daily_bin621.fits sctable="SC_DATA" outfile=/scratch/kocevski/345092/ltcube_400291201_400550401_4FGL_J2232.6+1143_daily_bin621.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/345092/ft2_4FGL_J2232.6+1143_daily_bin621.fits
.....................!
real 12.00
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345092/ft1_filtered_4FGL_J2232.6+1143_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/345092/ft2_4FGL_J2232.6+1143_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/345092/ltcube_400291201_400550401_4FGL_J2232.6+1143_daily_bin621.fits outfile=/scratch/kocevski/345092/expmap_400291201_400550401_4FGL_J2232.6+1143_daily_bin621.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/345092/ltcube_400291201_400550401_4FGL_J2232.6+1143_daily_bin621.fits
.....................!
real 191.60
user 185.85
sys 5.42

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/345092/ft1_filtered_4FGL_J2232.6+1143_daily_bin621.fits scfile=/scratch/kocevski/345092/ft2_4FGL_J2232.6+1143_daily_bin621.fits outfile=/scratch/kocevski/345092/cmap_400291201_400550401_4FGL_J2232.6+1143_daily_bin621.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.52
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11184E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .75032E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.955       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34117E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    9.7638       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.322       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51767       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3723       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5830       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10689E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1658       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0672       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .58933       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0029       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=   7131.563     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     1959 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.559       -.19649E-05** at limit **
   2  norm          .10000E-03    1.1881       -.66078E-08** at limit **
   3  norm          .10000E-03    11.438       -.49824E-07** at limit **
   4  norm          .77429E-01    .49061       -.11301E-07   -.30369E-03
   5  Prefactor     20.915        19.311        .94230E-05    .13691E-03
   6  Prefactor     .10048E-03    22.491       -.43631E-05** at limit **
   7  norm          9.7650        5.7942       -.63998E-06   -.92171E-04
   8  Prefactor     16.331        13.649        .13380E-05    .50052E-04
   9  Prefactor     .10000E-03    4.2969       -.79961E-07** at limit **
  10  Prefactor     .51767        .20567       -.14210E-07    .15706E-03
  11  Prefactor     4.3724        4.8820        .17431E-06    .11989E-03
  12  norm          4.5832        2.2468       -.76339E-07   -.25237E-04
  13  Prefactor     .10000E-03    19.164        .16272E-05** at limit **
  14  Prefactor     7.1754        11.396        .19403E-05   -.78527E-04
  15  Prefactor     .10000E-03    5.0806        .27045E-07** at limit **
  16  Prefactor     2.0672        .25094        .42747E-08   -.24035E-04
  17  Prefactor     .10000E-03    17.994       -.11818E-05** at limit **
  18  Prefactor     .10000E-03    3.3723        .68869E-08** at limit **
  19  Prefactor     .10000E-03    4.3243        .11607E-06** at limit **
  20  Normalizat    .58896        .22668       -.14402E-05    .14282E-03
  21  Prefactor     1.0028        .12270       -.11504E-06    .39599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0774286
  Prefactor  = 20.9152
  Prefactor  = 0.000100476
  norm       = 9.76504
  Prefactor  = 16.3314
  Prefactor  = 0.0001
  Prefactor  = 0.517673
  Prefactor  = 4.37236
  norm       = 4.58319
  Prefactor  = 0.0001
  Prefactor  = 7.17538
  Prefactor  = 0.0001
  Prefactor  = 2.06724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.588965
  Prefactor  = 1.00279
 **********
 **   18 **HESSE 
 **********

 FCN=   7131.563     FROM HESSE     STATUS=OK           321 CALLS     2280 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.1294        .17858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .77429E-01    3.1417        .11086E-02   -1.5652    
   5  Prefactor     20.915        19.338        .87497E-04   -1.4793    
   6  Prefactor     .10048E-03    160.49        .75131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.7650        5.7853        .12824E-03   -1.5083    
   8  Prefactor     16.331        13.641        .99137E-04   -1.4900    
   9  Prefactor     .10000E-03    4.3160        .17094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .51767        .20433        .22440E-04   -1.5564    
  11  Prefactor     4.3724        4.8858        .19161E-03   -1.5290    
  12  norm          4.5832        2.2457        .84252E-04   -1.5280    
  13  Prefactor     .10000E-03    19.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1754        11.325        .14985E-03   -1.5172    
  15  Prefactor     .10000E-03    5.0818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0672        .25079        .14015E-04   -1.5420    
  17  Prefactor     .10000E-03    18.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.3953        .15142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.3293        .17150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .58896        .25317        .41712E-03   -1.0845    
  21  Prefactor     1.0028        .14113        .18255E-03   -.92637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9204e-09
Minuit parameter uncertainties:
  1  5.47156e-06
  2  3.23169e-06
  3  1.49559e-05
  4  0.985838
  5  19.3442
  6  0.0175308
  7  5.78564
  8  13.6439
  9  5.0293e-06
  10  0.204333
  11  4.88623
  12  2.24573
  13  2.62739e-06
  14  11.3279
  15  8.57111e-07
  16  0.250788
  17  1.26755e-05
  18  3.0855e-06
  19  3.02555e-06
  20  0.253674
  21  0.141179
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  5.177e-01  2.043e-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.003e+00  1.412e-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:  5.890e-01  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.92
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 5.21e-08
Energy Flux (Fixed Index): 4.89e-05 +/- 1.93e-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) = 7131.55287859
delta logL = 0.00977433349453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7131.55230844
delta logL = 0.0103444854285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51604       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9957       1.0000          .0000       10.000    
     3 'Normalizat'    .59607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0006       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=   7131.552     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      200 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51611        3.8612        .51068E-02    .46039E-03
   2  Index1        1.9957        5.8766        .17794        .11903E-04
   3  Normalizat    .59629        .27762        .93600E-01    .41881E-04
   4  Prefactor     1.0004        .14692        .45593E-01   -.16198E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.516106
  Index1     = 1.99571
  Normalizat = 0.596293
  Prefactor  = 1.00038
 **********
 **   18 **HESSE 
 **********

 FCN=   7131.552     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .37E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51611        .20107        .22682E-04   -1.5564    
   2  Index1        1.9957        .39241        .70803E-02   -.64458    
   3  Normalizat    .59629        .25392        .41479E-03   -1.0814    
   4  Prefactor     1.0004        .14112        .18276E-03   -.92717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69386e-14
Minuit parameter uncertainties:
  1  0.201072
  2  0.393039
  3  0.254416
  4  0.141175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345092': 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) = 7131.55230655
delta logL = 0.0103463707173

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  5.161e-01  2.011e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  1.996e+00  3.930e-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.000e+00  1.412e-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:  5.963e-01  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.89
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.00 +/- 0.39
Photon Flux (Free Index): 1.26e-07 +/- 6.53e-08
Energy Flux (Free Index): 4.99e-05 +/- 2.08e-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/345092/cmap_HighResolution_400291201_400550401_4FGL_J2232.6+1143_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='4.99e-05', photon_flux_error='5.21e-08', dlogl='1.03e-02', energy_flux='4.89e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-28 14:04:48.921650', photon_index_error2='0.39', photon_index2='2.00', ts='16.92', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='0.59', time_epoch_completed='1632863088.92', return_code='0', job_id='345092', GAL2='1.00', EG2='0.60', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='6.53e-08', ts2='16.89', photon_index='2.05' WHERE bin_id='621' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:04:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 345092: <4FGL_J2232.6+1143_daily_bin621> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin621> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 13:55:17 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:55:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 13:55:19 2021
Terminated at Tue Sep 28 14:04:49 2021
Results reported at Tue Sep 28 14:04:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin621 338.152 11.7306 400291201 400550401 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 :                                   558.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            572 sec.

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

