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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin45
RA = 338.152, Dec = 11.7306
tmin = 250992001, tmax = 251251201
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='342152', job_status='RUN', time_executed='2021-09-28 13:48:49.635439', time_epoch_executed='1632862129.64' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342152

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342152/ft1_4FGL_J2232.6+1143_daily_bin45.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342152/ft2_4FGL_J2232.6+1143_daily_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342152/ft1_4FGL_J2232.6+1143_daily_bin45.fits outfile=/scratch/kocevski/342152/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin45.fits ra=338.152 dec=11.7306 rad=12.0 tmin=250992001.0 tmax=251251201.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.42
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342152/ft1_filtered_4FGL_J2232.6+1143_daily_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/342152/ft2_4FGL_J2232.6+1143_daily_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/342152/ltcube_250992001_251251201_4FGL_J2232.6+1143_daily_bin45.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/342152/ft2_4FGL_J2232.6+1143_daily_bin45.fits
.....................!
real 12.67
user 12.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342152/ft1_filtered_4FGL_J2232.6+1143_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/342152/ft2_4FGL_J2232.6+1143_daily_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/342152/ltcube_250992001_251251201_4FGL_J2232.6+1143_daily_bin45.fits outfile=/scratch/kocevski/342152/expmap_250992001_251251201_4FGL_J2232.6+1143_daily_bin45.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/342152/ltcube_250992001_251251201_4FGL_J2232.6+1143_daily_bin45.fits
.....................!
real 190.24
user 185.59
sys 4.33

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J2232.6+1143 @ 338.152 11.7306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/342152/ft1_filtered_4FGL_J2232.6+1143_daily_bin45.fits scfile=/scratch/kocevski/342152/ft2_4FGL_J2232.6+1143_daily_bin45.fits outfile=/scratch/kocevski/342152/cmap_250992001_251251201_4FGL_J2232.6+1143_daily_bin45.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342152/ft1_filtered_4FGL_J2232.6+1143_daily_bin45.fits scfile=/scratch/kocevski/342152/ft2_4FGL_J2232.6+1143_daily_bin45.fits outfile=/scratch/kocevski/342152/cmap_HighResolution_250992001_251251201_4FGL_J2232.6+1143_daily_bin45.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.8657       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0134       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.813       1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.070       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7829       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5385       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17934       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4706       1.0000         .10000E-03   10000.    
    12 'norm      '    .31816       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.882       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0376       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.117       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7608       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.117       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .67183E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0451       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=   10830.59     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2279 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.933        .29317E-07** at limit **
   2  norm          2.8654        2.0058        .51299E-07    .49631E-05
   3  norm          .10000E-03    9.5473       -.43840E-07** at limit **
   4  norm          1.0132        .82338        .15521E-06    .33732E-03
   5  Prefactor     25.816        16.771        .30639E-07   -.62030E-05
   6  Prefactor     45.032        32.681       -.25472E-06   -.12832E-03
   7  norm          .10000E-03    2.1637        .12723E-06** at limit **
   8  Prefactor     2.7829        6.0795        .43474E-06    .25571E-04
   9  Prefactor     3.5396        11.166        .41108E-06   -.63574E-05
  10  Prefactor     .17936        .12023        .24795E-08   -.73672E-04
  11  Prefactor     4.4697        5.2401        .25397E-06    .44650E-04
  12  norm          .31759        .71293        .79961E-06    .13916E-02
  13  Prefactor     22.871        25.721       -.58875E-07   -.38691E-04
  14  Prefactor     3.0378        5.3337        .14765E-06   -.46634E-04
  15  Prefactor     22.112        22.171       -.12834E-06    .16449E-04
  16  Prefactor     1.7612        .23566       -.15193E-07    .16507E-02
  17  Prefactor     21.117        22.565        .77240E-07   -.13969E-05
  18  Prefactor     .10006E-03    4.8096       -.13920E-05** at limit **
  19  Prefactor     .10000E-03    3.9335        .13260E-06** at limit **
  20  Normalizat    1.0677        .21333        .11651E-05   -.23514E-04
  21  Prefactor     1.0453        .11392       -.11384E-05    .14486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.86537
  norm       = 0.0001
  norm       = 1.01325
  Prefactor  = 25.8156
  Prefactor  = 45.0324
  norm       = 0.0001
  Prefactor  = 2.78292
  Prefactor  = 3.53958
  Prefactor  = 0.179363
  Prefactor  = 4.46966
  norm       = 0.317593
  Prefactor  = 22.8709
  Prefactor  = 3.03777
  Prefactor  = 22.1123
  Prefactor  = 1.76117
  Prefactor  = 21.1166
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Normalizat = 1.06767
  Prefactor  = 1.04534
 **********
 **   18 **HESSE 
 **********

 FCN=   10830.59     FROM HESSE     STATUS=OK           329 CALLS     2608 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8654        2.0041        .11900E-03   -1.5369    
   3  norm          .10000E-03    9.5683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0132        .79297        .81591E-03   -1.5507    
   5  Prefactor     25.816        16.770        .78847E-04   -1.4691    
   6  Prefactor     45.032        32.829        .59721E-04   -1.4365    
   7  norm          .10000E-03    2.1856        .14940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7829        6.0426        .24392E-03   -1.5374    
   9  Prefactor     3.5396        11.208        .21488E-03   -1.5332    
  10  Prefactor     .17936        .11650        .28206E-04   -1.5623    
  11  Prefactor     4.4697        5.2246        .19043E-03   -1.5285    
  12  norm          .31759        .72159        .14565E-02   -1.5595    
  13  Prefactor     22.871        25.783        .83737E-04   -1.4751    
  14  Prefactor     3.0378        5.2937        .23281E-03   -1.5359    
  15  Prefactor     22.112        22.227        .85171E-04   -1.4767    
  16  Prefactor     1.7612        .23586        .16670E-04   -1.5443    
  17  Prefactor     21.117        22.567        .87161E-04   -1.4789    
  18  Prefactor     .10006E-03    17.263        .39539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0677        .24357        .36628E-03   -.90797    
  21  Prefactor     1.0453        .12834        .20388E-03   -.91233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17945e-09
Minuit parameter uncertainties:
  1  9.06887e-06
  2  2.00416
  3  1.48117e-07
  4  0.792977
  5  16.7728
  6  32.8423
  7  1.54662e-06
  8  6.04392
  9  11.2144
  10  0.116497
  11  5.22513
  12  0.721613
  13  25.7958
  14  5.29449
  15  22.2355
  16  0.235864
  17  22.5766
  18  0.0020833
  19  5.44099e-06
  20  0.24383
  21  0.128381
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.794e-01  1.165e-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.045e+00  1.284e-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.068e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.54
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 4.57e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.10e-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) = 10830.5884642
delta logL = 0.00295776903658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10830.5883788
delta logL = 0.00304318011149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18012       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0968       1.0000          .0000       10.000    
     3 'Normalizat'    1.0654       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0459       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=   10830.59     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18020        2.7745        .61928E-02    .12203E-02
   2  Index1        2.0973        5.7808        .25260        .12283E-04
   3  Normalizat    1.0654        .81917E-01    .82806E-01   -.21782E-05
   4  Prefactor     1.0460        .44263E-01    .40154E-01   -.59449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.180199
  Index1     = 2.09733
  Normalizat = 1.06541
  Prefactor  = 1.04599
 **********
 **   18 **HESSE 
 **********

 FCN=   10830.59     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18020        .11570        .28054E-04   -1.5623    
   2  Index1        2.0973        .57472        .11936E-01   -.61938    
   3  Normalizat    1.0654        .22989        .36661E-03   -.90870    
   4  Prefactor     1.0460        .12664        .20383E-03   -.91212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47835e-11
Minuit parameter uncertainties:
  1  0.115702
  2  0.576647
  3  0.230102
  4  0.126674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342152': 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) = 10830.5883778
delta logL = 0.00304417200459

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.802e-01  1.157e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.097e+00  5.766e-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.046e+00  1.267e-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.065e+00  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.53
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.10 +/- 0.58
Photon Flux (Free Index): 4.77e-08 +/- 3.91e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.10e-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/342152/cmap_HighResolution_250992001_251251201_4FGL_J2232.6+1143_daily_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.57e-08', energy_flux2='1.68e-05', photon_flux_error='2.97e-08', dlogl='3.04e-03', energy_flux='1.69e-05', photon_flux2='4.77e-08', job_status='DONE', time_completed='2021-09-28 14:00:58.062608', photon_index_error2='0.58', photon_index2='2.10', ts='5.54', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='1.07', time_epoch_completed='1632862858.06', return_code='0', job_id='342152', GAL2='1.05', EG2='1.07', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='3.91e-08', ts2='5.53', photon_index='2.05' WHERE bin_id='45' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 342152: <4FGL_J2232.6+1143_daily_bin45> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin45 338.152 11.7306 250992001 251251201 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 :                                   729.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            945 sec.

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

