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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin536
RA = 338.152, Dec = 11.7306
tmin = 378259201, tmax = 378518401
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='344011', job_status='RUN', time_executed='2021-09-28 13:51:21.322325', time_epoch_executed='1632862281.32' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344011/ft1_4FGL_J2232.6+1143_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344011/ft2_4FGL_J2232.6+1143_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344011/ft1_4FGL_J2232.6+1143_daily_bin536.fits outfile=/scratch/kocevski/344011/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin536.fits ra=338.152 dec=11.7306 rad=12.0 tmin=378259201.0 tmax=378518401.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 4.48
user 4.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344011/ft2_4FGL_J2232.6+1143_daily_bin536.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/344011/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin536.fits evtable="EVENTS" outfile="/scratch/kocevski/344011/ft1_filtered_4FGL_J2232.6+1143_daily_bin536.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.92
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344011/ft1_filtered_4FGL_J2232.6+1143_daily_bin536.fits" evtable="EVENTS" scfile=/scratch/kocevski/344011/ft2_4FGL_J2232.6+1143_daily_bin536.fits sctable="SC_DATA" outfile=/scratch/kocevski/344011/ltcube_378259201_378518401_4FGL_J2232.6+1143_daily_bin536.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/344011/ft2_4FGL_J2232.6+1143_daily_bin536.fits
.....................!
real 11.73
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344011/ft1_filtered_4FGL_J2232.6+1143_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/344011/ft2_4FGL_J2232.6+1143_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/344011/ltcube_378259201_378518401_4FGL_J2232.6+1143_daily_bin536.fits outfile=/scratch/kocevski/344011/expmap_378259201_378518401_4FGL_J2232.6+1143_daily_bin536.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/344011/ltcube_378259201_378518401_4FGL_J2232.6+1143_daily_bin536.fits
.....................!
real 191.02
user 186.13
sys 4.53

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/344011/ft1_filtered_4FGL_J2232.6+1143_daily_bin536.fits scfile=/scratch/kocevski/344011/ft2_4FGL_J2232.6+1143_daily_bin536.fits outfile=/scratch/kocevski/344011/cmap_378259201_378518401_4FGL_J2232.6+1143_daily_bin536.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    5.0576       1.0000         .10000E-03   10000.    
     3 'norm      '    20.936       1.0000         .10000E-03   10000.    
     4 'norm      '    .11228E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.595       1.0000         .10000E-03   10000.    
     7 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2509       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2189       1.0000         .10000E-03   10000.    
    12 'norm      '    .64059       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5167       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6116       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2940       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1139       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8686       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0265       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96265       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=   9082.877     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2000 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.795        .75232E-06** at limit **
   2  norm          5.0575        2.7294        .87048E-06   -.24283E-02
   3  norm          20.934        24.253       -.52381E-06   -.15364E-04
   4  norm          .10000E-03    .50836        .63580E-08** at limit **
   5  Prefactor     .10000E-03    28.376       -.12537E-05** at limit **
   6  Prefactor     13.578        31.689       -.33584E-05   -.19154E-03
   7  norm          .10000E-03    2.6209        .91902E-07** at limit **
   8  Prefactor     .10000E-03    9.0708       -.46699E-07** at limit **
   9  Prefactor     3.2452        12.513        .27720E-07   -.72572E-04
  10  Prefactor     1.5123        .28210       -.77895E-08   -.13356E-03
  11  Prefactor     6.2191        5.7304        .12637E-05    .86159E-03
  12  norm          .64137        1.3581        .42080E-06   -.23633E-03
  13  Prefactor     1.4555        146.23        .74938E-06   -.20822E-04
  14  Prefactor     .10000E-03    5.2662       -.18892E-07** at limit **
  15  Prefactor     .10000E-03    21.267        .29321E-06** at limit **
  16  Prefactor     2.6116        .29883       -.19120E-07   -.69668E-03
  17  Prefactor     2.2486        89.243       -.23439E-06   -.23903E-04
  18  Prefactor     3.1151        8.5327        .23331E-05    .24915E-03
  19  Prefactor     6.8683        10.672        .25198E-06    .43027E-04
  20  Normalizat    1.0264        .23407        .26840E-06   -.40649E-04
  21  Prefactor     .96267        .11957       -.45818E-06    .59995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.05754
  norm       = 20.9338
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5783
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.24517
  Prefactor  = 1.51226
  Prefactor  = 6.21906
  norm       = 0.64137
  Prefactor  = 1.4555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.61157
  Prefactor  = 2.24861
  Prefactor  = 3.11508
  Prefactor  = 6.86829
  Normalizat = 1.02636
  Prefactor  = 0.962671
 **********
 **   18 **HESSE 
 **********

 FCN=   9082.877     FROM HESSE     STATUS=OK           323 CALLS     2323 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0575        3.0386        .61298E-03   -1.5258    
   3  norm          20.934        24.280        .87537E-04   -1.4793    
   4  norm          .10000E-03    2.5778        .12869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.578        32.469        .10863E-03   -1.4971    
   7  norm          .10000E-03    2.6404        .15063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.1159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2452        12.539        .22463E-03   -1.5348    
  10  Prefactor     1.5123        .28240        .20697E-04   -1.5462    
  11  Prefactor     6.2191        5.9456        .16098E-03   -1.5209    
  12  norm          .64137        1.2238        .16039E-02   -1.5548    
  13  Prefactor     1.4555        148.82        .34708E-03   -1.5467    
  14  Prefactor     .10000E-03    5.2785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6116        .29862        .16051E-04   -1.5385    
  17  Prefactor     2.2486        90.112        .27099E-03   -1.5408    
  18  Prefactor     3.1151        8.5861        .22978E-03   -1.5355    
  19  Prefactor     6.8683        10.656        .15309E-03   -1.5184    
  20  Normalizat    1.0264        .27264        .38659E-03   -.92153    
  21  Prefactor     .96267        .14101        .21277E-03   -.93984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38037e-08
Minuit parameter uncertainties:
  1  0.000189359
  2  3.03864
  3  24.2912
  4  9.68174e-06
  5  0.000165769
  6  32.5117
  7  5.84286e-06
  8  2.77617e-06
  9  12.5487
  10  0.282405
  11  5.94615
  12  1.22383
  13  29.5096
  14  2.51801e-06
  15  4.27993e-05
  16  0.298618
  17  28.5149
  18  8.58952
  19  10.6594
  20  0.273009
  21  0.14106
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.512e+00  2.824e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.627e-01  1.411e-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.026e+00  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 83.31
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 3.86e-07 +/- 7.20e-08
Energy Flux (Fixed Index): 1.43e-04 +/- 2.67e-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) = 9082.51231915
delta logL = 0.364406762439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9082.49906413
delta logL = 0.377661779821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4514       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2257       1.0000          .0000       10.000    
     3 'Normalizat'    .97525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98132       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=   9082.499     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4515        .81259        .44622E-02    .12655E-03
   2  Index1        2.2257        .56488        .91404E-01    .89880E-04
   3  Normalizat    .97530        .23681        .89151E-01    .29798E-04
   4  Prefactor     .98125        .12534        .46033E-01    .39760E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45148
  Index1     = 2.22574
  Normalizat = 0.975296
  Prefactor  = 0.981252
 **********
 **   18 **HESSE 
 **********

 FCN=   9082.499     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .52E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4515        .28409        .19742E-04   -1.5467    
   2  Index1        2.2257        .20392        .39252E-02   -.58818    
   3  Normalizat    .97530        .26750        .39480E-03   -.93863    
   4  Prefactor     .98125        .14146        .21091E-03   -.93357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23625e-13
Minuit parameter uncertainties:
  1  0.284086
  2  0.204007
  3  0.267869
  4  0.141518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344011': 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) = 9082.49906376
delta logL = 0.377662155071

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.451e+00  2.841e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.226e+00  2.040e-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:  9.813e-01  1.415e-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:  9.753e-01  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 83.46
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.23 +/- 0.20
Photon Flux (Free Index): 4.32e-07 +/- 9.28e-08
Energy Flux (Free Index): 1.33e-04 +/- 2.64e-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/344011/cmap_HighResolution_378259201_378518401_4FGL_J2232.6+1143_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.86e-07', energy_flux2='1.33e-04', photon_flux_error='7.20e-08', dlogl='3.78e-01', energy_flux='1.43e-04', photon_flux2='4.32e-07', job_status='DONE', time_completed='2021-09-28 14:02:01.319189', photon_index_error2='0.20', photon_index2='2.23', ts='83.31', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.64e-05', EG='1.03', time_epoch_completed='1632862921.32', return_code='0', job_id='344011', GAL2='0.98', EG2='0.98', return_code2='0', energy_flux_error='2.67e-05', photon_flux_error2='9.28e-08', ts2='83.46', photon_index='2.05' WHERE bin_id='536' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:02:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 344011: <4FGL_J2232.6+1143_daily_bin536> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin536 338.152 11.7306 378259201 378518401 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 :                                   638.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            662 sec.

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

