/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 146 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 = 7398
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2232.6+1143_daily_bin30
RA = 338.152, Dec = 11.7306
tmin = 247104001, tmax = 247363201
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='340978', job_status='RUN', time_executed='2021-09-28 13:43:09.475915', time_epoch_executed='1632861789.48' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='30'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340978

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340978/ft1_4FGL_J2232.6+1143_daily_bin30.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340978/ft2_4FGL_J2232.6+1143_daily_bin30.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340978/ft1_4FGL_J2232.6+1143_daily_bin30.fits outfile=/scratch/kocevski/340978/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin30.fits ra=338.152 dec=11.7306 rad=12.0 tmin=247104001.0 tmax=247363201.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 1.48
user 1.30
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340978/ft1_filtered_4FGL_J2232.6+1143_daily_bin30.fits evtable="EVENTS" scfile=/scratch/kocevski/340978/ft2_4FGL_J2232.6+1143_daily_bin30.fits sctable="SC_DATA" expcube=/scratch/kocevski/340978/ltcube_247104001_247363201_4FGL_J2232.6+1143_daily_bin30.fits outfile=/scratch/kocevski/340978/expmap_247104001_247363201_4FGL_J2232.6+1143_daily_bin30.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/340978/ltcube_247104001_247363201_4FGL_J2232.6+1143_daily_bin30.fits
.....................!
real 190.80
user 185.34
sys 5.10

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/340978/ft1_filtered_4FGL_J2232.6+1143_daily_bin30.fits scfile=/scratch/kocevski/340978/ft2_4FGL_J2232.6+1143_daily_bin30.fits outfile=/scratch/kocevski/340978/cmap_247104001_247363201_4FGL_J2232.6+1143_daily_bin30.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340978/ft1_filtered_4FGL_J2232.6+1143_daily_bin30.fits scfile=/scratch/kocevski/340978/ft2_4FGL_J2232.6+1143_daily_bin30.fits outfile=/scratch/kocevski/340978/cmap_HighResolution_247104001_247363201_4FGL_J2232.6+1143_daily_bin30.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    8.4405       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .43538       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.359       1.0000         .10000E-03   10000.    
     7 'norm      '    10.896       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3883       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .56586       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2857       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6010       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18865E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2353       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.246       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4560       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3611       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4372       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .73001       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0256       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8186.264     FROM MIGRAD    STATUS=CONVERGED     75 CALLS     1839 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    15.301       -.11567E-04** at limit **
   2  norm          8.4410        3.1537        .22412E-06    .79511E-03
   3  norm          .10000E-03    19.987        .26387E-04** at limit **
   4  norm          .43513        .71337        .35853E-07    .62595E-03
   5  Prefactor     .10012E-03    29.182        .58441E-04** at limit **
   6  Prefactor     25.356        1.1454       -.74264E-06    .90937E-03
   7  norm          10.897        5.6964        .29884E-05    .37977E-05
   8  Prefactor     6.3879        1.0067        .14641E-06    .86289E-04
   9  Prefactor     1.4481        1.1267        .41439E-06    .33058E-04
  10  Prefactor     .56585        .21590        .65326E-07    .41286E-02
  11  Prefactor     9.2856        1.7152       -.35948E-05   -.30220E-02
  12  norm          1.6009        1.7166       -.36929E-07    .38968E-04
  13  Prefactor     .10015E-03    72.641       -.48305E-04** at limit **
  14  Prefactor     5.2358        1.0078       -.73814E-07    .19163E-04
  15  Prefactor     17.244        1.0353       -.40789E-06    .30391E-03
  16  Prefactor     3.4557        .31503       -.37758E-07   -.13754E-02
  17  Prefactor     .10015E-03    16.432       -.45622E-04** at limit **
  18  Prefactor     2.3619        4.8026        .49048E-06    .35882E-03
  19  Prefactor     8.4372        1.0103       -.24244E-07    .60346E-04
  20  Normalizat    .73009        .26008       -.11046E-05    .10205E-03
  21  Prefactor     1.0255        .14293       -.18792E-06   -.13627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100314
  norm       = 8.44096
  norm       = 0.000100002
  norm       = 0.435134
  Prefactor  = 0.000100116
  Prefactor  = 25.3562
  norm       = 10.8967
  Prefactor  = 6.38791
  Prefactor  = 1.44812
  Prefactor  = 0.565847
  Prefactor  = 9.28556
  norm       = 1.60091
  Prefactor  = 0.000100153
  Prefactor  = 5.23583
  Prefactor  = 17.2444
  Prefactor  = 3.45573
  Prefactor  = 0.000100151
  Prefactor  = 2.3619
  Prefactor  = 8.43721
  Normalizat = 0.730094
  Prefactor  = 1.02549
 **********
 **   18 **HESSE 
 **********

 FCN=   8186.264     FROM HESSE     STATUS=OK           371 CALLS     2210 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10031E-03    28.724        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.4410        3.1606        .34496E-02   -1.5127    
   3  norm          .10000E-03    20.928        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .43513        .80252        .22443E-01   -1.5576    
   5  Prefactor     .10012E-03    35.802        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.356        29.976        .19887E-02   -1.4700    
   7  norm          10.897        5.7472        .30343E-02   -1.5048    
   8  Prefactor     6.3879        15.253        .39700E-02   -1.5202    
   9  Prefactor     1.4481        23.789        .89517E-02   -1.5467    
  10  Prefactor     .56585        .23010        .55760E-02   -1.5558    
  11  Prefactor     9.2856        7.9515        .32880E-02   -1.5098    
  12  norm          1.6009        1.8187        .83763E-02   -1.5455    
  13  Prefactor     .10015E-03    71.498        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2358        14.396        .43919E-02   -1.5250    
  15  Prefactor     17.244        26.193        .24111E-02   -1.4877    
  16  Prefactor     3.4557        .32300        .33000E-02   -1.5336    
  17  Prefactor     .10015E-03    23.258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3619        4.8303        .66677E-02   -1.5401    
  19  Prefactor     8.4372        10.566        .34503E-02   -1.5127    
  20  Normalizat    .73009        .24144        .94641E-01   -1.0272    
  21  Prefactor     1.0255        .12573        .41626E-01   -.91885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56897e-08
Minuit parameter uncertainties:
  1  0.00600522
  2  3.16063
  3  0.000447047
  4  0.80254
  5  0.0040727
  6  29.994
  7  5.74751
  8  15.2627
  9  11.7438
  10  0.2301
  11  7.9524
  12  1.81875
  13  0.00662133
  14  14.4053
  15  26.2104
  16  0.322996
  17  0.00374995
  18  4.83112
  19  10.5688
  20  0.241792
  21  0.125769
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  5.658e-01  2.301e-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.025e+00  1.258e-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.301e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.71
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.44e-07 +/- 5.86e-08
Energy Flux (Fixed Index): 5.35e-05 +/- 2.17e-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) = 8185.05552794
delta logL = 1.20828572901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8185.05387731
delta logL = 1.20993635679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44948       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.7297       1.0000          .0000       10.000    
     3 'Normalizat'    .61689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0681       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=   8185.054     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44953        1.7051        .42479E-02   -.60036E-03
   2  Index1        2.7296        3.0033        .13756        .98433E-04
   3  Normalizat    .61695        .10456        .10207        .47191E-04
   4  Prefactor     1.0681        .49328E-01    .38947E-01    .41231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.449532
  Index1     = 2.72964
  Normalizat = 0.616954
  Prefactor  = 1.06811
 **********
 **   18 **HESSE 
 **********

 FCN=   8185.054     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44953        .23227        .18889E-04   -1.5574    
   2  Index1        2.7296        .51596        .54690E-02   -.47133    
   3  Normalizat    .61695        .26844        .45248E-03   -1.0727    
   4  Prefactor     1.0681        .14702        .19653E-03   -.90492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68384e-09
Minuit parameter uncertainties:
  1  0.232272
  2  0.517119
  3  0.269009
  4  0.147073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340978': 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) = 8185.05387725
delta logL = 1.20993641947

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.495e-01  2.323e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.730e+00  5.171e-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.068e+00  1.471e-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:  6.170e-01  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.41
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.73 +/- 0.52
Photon Flux (Free Index): 2.25e-07 +/- 8.52e-08
Energy Flux (Free Index): 4.82e-05 +/- 1.65e-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/340978/cmap_HighResolution_247104001_247363201_4FGL_J2232.6+1143_daily_bin30.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-07', energy_flux2='4.82e-05', photon_flux_error='5.86e-08', dlogl='1.21e+00', energy_flux='5.35e-05', photon_flux2='2.25e-07', job_status='DONE', time_completed='2021-09-28 13:52:57.697649', photon_index_error2='0.52', photon_index2='2.73', ts='14.71', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='0.73', time_epoch_completed='1632862377.7', return_code='0', job_id='340978', GAL2='1.07', EG2='0.62', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='8.52e-08', ts2='17.41', photon_index='2.05' WHERE bin_id='30' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:52:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 340978: <4FGL_J2232.6+1143_daily_bin30> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin30> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 13:40:33 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:40:35 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:40:35 2021
Terminated at Tue Sep 28 13:52:58 2021
Results reported at Tue Sep 28 13:52:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin30 338.152 11.7306 247104001 247363201 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 :                                   588.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            745 sec.

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

