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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin71
RA = 338.152, Dec = 11.7306
tmin = 257731201, tmax = 257990401
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='342190', job_status='RUN', time_executed='2021-09-28 13:49:13.971967', time_epoch_executed='1632862153.97' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342190

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342190/ft1_4FGL_J2232.6+1143_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342190/ft2_4FGL_J2232.6+1143_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342190/ft1_4FGL_J2232.6+1143_daily_bin71.fits outfile=/scratch/kocevski/342190/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin71.fits ra=338.152 dec=11.7306 rad=12.0 tmin=257731201.0 tmax=257990401.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.41
user 1.23
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342190/ft1_filtered_4FGL_J2232.6+1143_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/342190/ft2_4FGL_J2232.6+1143_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/342190/ltcube_257731201_257990401_4FGL_J2232.6+1143_daily_bin71.fits outfile=/scratch/kocevski/342190/expmap_257731201_257990401_4FGL_J2232.6+1143_daily_bin71.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/342190/ltcube_257731201_257990401_4FGL_J2232.6+1143_daily_bin71.fits
.....................!
real 191.12
user 186.14
sys 4.62

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342190/ft1_filtered_4FGL_J2232.6+1143_daily_bin71.fits scfile=/scratch/kocevski/342190/ft2_4FGL_J2232.6+1143_daily_bin71.fits outfile=/scratch/kocevski/342190/cmap_HighResolution_257731201_257990401_4FGL_J2232.6+1143_daily_bin71.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.2980       1.0000         .10000E-03   10000.    
     3 'norm      '    9.4341       1.0000         .10000E-03   10000.    
     4 'norm      '    .88593       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3080       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2327       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41977       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5074       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21790E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.739       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30343       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.048       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5039       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85050       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2527       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=   11386.58     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2227 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.761        .17589E-05** at limit **
   2  norm          4.2980        2.7166       -.78768E-07   -.24634E-03
   3  norm          9.4342        26.446       -.17350E-05   -.51632E-05
   4  norm          .88602        .80032       -.90035E-08    .69103E-03
   5  Prefactor     5.3084        15.702       -.43361E-05    .88260E-05
   6  Prefactor     .10000E-03    10.321        .42712E-06** at limit **
   7  norm          .10000E-03    3.1153       -.84193E-07** at limit **
   8  Prefactor     17.068        13.580       -.15791E-06   -.19101E-04
   9  Prefactor     2.2326        10.181       -.10375E-05    .10305E-04
  10  Prefactor     .41976        .15673       -.11266E-07   -.12918E-03
  11  Prefactor     .10000E-03    5.8478       -.61462E-08** at limit **
  12  norm          1.5065        1.4305        .75205E-07    .70613E-03
  13  Prefactor     .10000E-03    11.930       -.26101E-06** at limit **
  14  Prefactor     .10000E-03    37.895       -.79461E-05** at limit **
  15  Prefactor     11.739        11.361       -.35312E-06    .27804E-04
  16  Prefactor     .30343        .10816        .64104E-09    .10428E-02
  17  Prefactor     .10000E-03    11.044       -.36495E-06** at limit **
  18  Prefactor     17.048        7.7986       -.48350E-07    .33356E-04
  19  Prefactor     1.5043        10.720       -.15000E-05    .14841E-04
  20  Normalizat    .85048        .20021        .57168E-06    .45921E-04
  21  Prefactor     1.2527        .10843        .24128E-06    .16307E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.298
  norm       = 9.43424
  norm       = 0.886022
  Prefactor  = 5.30838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.0684
  Prefactor  = 2.23258
  Prefactor  = 0.419757
  Prefactor  = 0.0001
  norm       = 1.50652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7392
  Prefactor  = 0.303433
  Prefactor  = 0.0001
  Prefactor  = 17.0483
  Prefactor  = 1.50428
  Normalizat = 0.850475
  Prefactor  = 1.2527
 **********
 **   18 **HESSE 
 **********

 FCN=   11386.58     FROM HESSE     STATUS=OK           325 CALLS     2552 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2980        2.7083        .12877E-03   -1.5293    
   3  norm          9.4342        26.356        .65238E-03   -1.5094    
   4  norm          .88602        .73715        .87777E-03   -1.5520    
   5  Prefactor     5.3084        15.686        .87224E-03   -1.5247    
   6  Prefactor     .10000E-03    10.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.1866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.068        13.553        .96947E-04   -1.4881    
   9  Prefactor     2.2326        10.203        .27511E-03   -1.5409    
  10  Prefactor     .41976        .15445        .24065E-04   -1.5578    
  11  Prefactor     .10000E-03    6.0542        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5065        1.3820        .11764E-03   -1.5462    
  13  Prefactor     .10000E-03    12.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.100        .41922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.739        11.360        .58462E-03   -1.5023    
  16  Prefactor     .30343        .10729        .19904E-04   -1.5598    
  17  Prefactor     .10000E-03    11.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.048        7.7820        .97002E-04   -1.4882    
  19  Prefactor     1.5043        10.726        .34904E-03   -1.5463    
  20  Normalizat    .85048        .22348        .39058E-03   -.98223    
  21  Prefactor     1.2527        .12272        .18762E-03   -.84724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43555e-10
Minuit parameter uncertainties:
  1  9.31754e-05
  2  2.70839
  3  26.3883
  4  0.737159
  5  15.6978
  6  2.45124e-05
  7  8.03687e-06
  8  13.555
  9  9.54785
  10  0.154453
  11  8.87319e-07
  12  1.38198
  13  2.25659e-05
  14  1.61028e-05
  15  11.3618
  16  0.107293
  17  1.55787e-05
  18  7.78241
  19  8.03544
  20  0.223724
  21  0.122749
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.198e-01  1.545e-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.253e+00  1.227e-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:  8.505e-01  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.61
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 3.94e-08
Energy Flux (Fixed Index): 3.97e-05 +/- 1.46e-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) = 11386.4379253
delta logL = 0.141093594559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11386.4268648
delta logL = 0.152154141468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41314       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2591       1.0000          .0000       10.000    
     3 'Normalizat'    .82599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2608       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=   11386.43     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41314        1.7981        .51092E-02    .27895E-02
   2  Index1        2.2590        3.1937        .19808        .14332E-03
   3  Normalizat    .82593        .93874E-01    .89333E-01    .17869E-03
   4  Prefactor     1.2609        .44755E-01    .33330E-01    .13444E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.413138
  Index1     = 2.259
  Normalizat = 0.825933
  Prefactor  = 1.26088
 **********
 **   18 **HESSE 
 **********

 FCN=   11386.43     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41314        .14868        .22819E-04   -1.5579    
   2  Index1        2.2590        .38140        .73643E-02   -.58021    
   3  Normalizat    .82593        .21735        .39566E-03   -.99114    
   4  Prefactor     1.2609        .12258        .18707E-03   -.84478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37671e-11
Minuit parameter uncertainties:
  1  0.148681
  2  0.381929
  3  0.217578
  4  0.122613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342190': 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) = 11386.4268647
delta logL = 0.152154245263

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.131e-01  1.487e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.259e+00  3.819e-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.261e+00  1.226e-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:  8.259e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.93
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.26 +/- 0.38
Photon Flux (Free Index): 1.27e-07 +/- 5.47e-08
Energy Flux (Free Index): 3.78e-05 +/- 1.35e-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/342190/cmap_HighResolution_257731201_257990401_4FGL_J2232.6+1143_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='3.78e-05', photon_flux_error='3.94e-08', dlogl='1.52e-01', energy_flux='3.97e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-28 14:01:26.330678', photon_index_error2='0.38', photon_index2='2.26', ts='15.61', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.85', time_epoch_completed='1632862886.33', return_code='0', job_id='342190', GAL2='1.26', EG2='0.83', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='5.47e-08', ts2='15.93', photon_index='2.05' WHERE bin_id='71' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:01:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 342190: <4FGL_J2232.6+1143_daily_bin71> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin71 338.152 11.7306 257731201 257990401 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 :                                   733.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

