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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1356
RA = 338.152, Dec = 11.7306
tmin = 590803201, tmax = 591062401
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='348299', job_status='RUN', time_executed='2021-09-28 14:08:40.686501', time_epoch_executed='1632863320.69' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348299

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348299/ft1_4FGL_J2232.6+1143_daily_bin1356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348299/ft2_4FGL_J2232.6+1143_daily_bin1356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348299/ft1_4FGL_J2232.6+1143_daily_bin1356.fits outfile=/scratch/kocevski/348299/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1356.fits ra=338.152 dec=11.7306 rad=12.0 tmin=590803201.0 tmax=591062401.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 5.59
user 5.22
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348299/ft1_filtered_4FGL_J2232.6+1143_daily_bin1356.fits evtable="EVENTS" scfile=/scratch/kocevski/348299/ft2_4FGL_J2232.6+1143_daily_bin1356.fits sctable="SC_DATA" expcube=/scratch/kocevski/348299/ltcube_590803201_591062401_4FGL_J2232.6+1143_daily_bin1356.fits outfile=/scratch/kocevski/348299/expmap_590803201_591062401_4FGL_J2232.6+1143_daily_bin1356.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/348299/ltcube_590803201_591062401_4FGL_J2232.6+1143_daily_bin1356.fits
.....................!
real 189.66
user 185.28
sys 4.06

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/348299/ft1_filtered_4FGL_J2232.6+1143_daily_bin1356.fits scfile=/scratch/kocevski/348299/ft2_4FGL_J2232.6+1143_daily_bin1356.fits outfile=/scratch/kocevski/348299/cmap_590803201_591062401_4FGL_J2232.6+1143_daily_bin1356.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348299/ft1_filtered_4FGL_J2232.6+1143_daily_bin1356.fits scfile=/scratch/kocevski/348299/ft2_4FGL_J2232.6+1143_daily_bin1356.fits outfile=/scratch/kocevski/348299/cmap_HighResolution_590803201_591062401_4FGL_J2232.6+1143_daily_bin1356.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/348299/ft1_filtered_4FGL_J2232.6+1143_daily_bin1356.fits evtable="EVENTS" scfile=/scratch/kocevski/348299/ft2_4FGL_J2232.6+1143_daily_bin1356.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/348299/Model_4FGL_J2232.6+1143_daily_bin1356.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/348299/ft1_filtered_4FGL_J2232.6+1143_daily_bin1356.fits.....................!
real 71.16
user 69.87
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .24776       1.0000         .10000E-03   10000.    
     4 'norm      '    .48024       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.941       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20063E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12443E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.928       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .68948       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6681       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1367       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.829       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.939       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76570       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .60205E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8430       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7246       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5984       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .59022       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=   6883.101     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     1979 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.584        .19543E-05** at limit **
   2  norm          .10000E-03    1.2005       -.36163E-08** at limit **
   3  norm          .11693E-03    30.154       -.39584E-06** at limit **
   4  norm          .48028        .70703       -.20133E-07   -.10532E-02
   5  Prefactor     18.978        22.113       -.22731E-05    .79335E-05
   6  Prefactor     .10000E-03    34.860       -.19851E-05** at limit **
   7  norm          .10000E-03    2.5427       -.12581E-06** at limit **
   8  Prefactor     .10000E-03    14.098       -.47345E-07** at limit **
   9  Prefactor     16.906        12.167       -.22620E-05   -.23222E-04
  10  Prefactor     .68941        .22357       -.19936E-07   -.51098E-04
  11  Prefactor     4.6648        4.7382        .54314E-07    .17333E-03
  12  norm          2.0684        1.7281        .36393E-06    .81492E-04
  13  Prefactor     5.1391        15.150       -.34803E-05   -.45592E-04
  14  Prefactor     32.838        13.604       -.30340E-05   -.94598E-05
  15  Prefactor     33.903        22.433        .51397E-06    .59683E-05
  16  Prefactor     .76568        .17549        .20185E-07    .17227E-03
  17  Prefactor     .10000E-03    101.51       -.13157E-05** at limit **
  18  Prefactor     5.8550        7.4631       -.10047E-05   -.21134E-03
  19  Prefactor     7.7274        11.307        .19490E-05   -.55935E-04
  20  Normalizat    1.5984        .23431        .11508E-05    .20862E-04
  21  Prefactor     .59027        .11913        .39871E-06    .70757E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000116928
  norm       = 0.480283
  Prefactor  = 18.9783
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.906
  Prefactor  = 0.689405
  Prefactor  = 4.66475
  norm       = 2.06844
  Prefactor  = 5.13909
  Prefactor  = 32.8384
  Prefactor  = 33.903
  Prefactor  = 0.765675
  Prefactor  = 0.0001
  Prefactor  = 5.85504
  Prefactor  = 7.72737
  Normalizat = 1.59839
  Prefactor  = 0.590271
 **********
 **   18 **HESSE 
 **********

 FCN=   6883.101     FROM HESSE     STATUS=OK           337 CALLS     2316 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8532        .17449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .11693E-03    33.237        .12341       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .48028        .60814        .81624E-03   -1.5569    
   5  Prefactor     18.978        22.126        .92028E-04   -1.4836    
   6  Prefactor     .10000E-03    35.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5787        .12913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.906        12.216        .97345E-04   -1.4885    
  10  Prefactor     .68941        .22377        .21169E-04   -1.5542    
  11  Prefactor     4.6648        4.7450        .17742E-03   -1.5276    
  12  norm          2.0684        1.7310        .94606E-04   -1.5420    
  13  Prefactor     5.1391        15.216        .17739E-03   -1.5255    
  14  Prefactor     32.838        13.566        .69936E-04   -1.4561    
  15  Prefactor     33.903        22.451        .68785E-04   -1.4543    
  16  Prefactor     .76568        .17577        .15568E-04   -1.5533    
  17  Prefactor     .10000E-03    102.70        .21062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.8550        7.5076        .16614E-03   -1.5224    
  19  Prefactor     7.7274        11.273        .14428E-03   -1.5152    
  20  Normalizat    1.5984        .27745        .28238E-03   -.75050    
  21  Prefactor     .59027        .14036        .23293E-03   -1.0800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63236e-10
Minuit parameter uncertainties:
  1  2.26338e-06
  2  1.00753e-05
  3  0.0474665
  4  0.608153
  5  22.1351
  6  5.60118e-06
  7  3.22028e-06
  8  1.69021e-05
  9  12.2175
  10  0.223766
  11  4.7454
  12  1.731
  13  15.227
  14  13.5674
  15  22.4568
  16  0.175773
  17  0.000340155
  18  7.50879
  19  11.2761
  20  0.277721
  21  0.140439
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  6.894e-01  2.238e-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:  5.903e-01  1.404e-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.598e+00  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.49
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.76e-07 +/- 5.70e-08
Energy Flux (Fixed Index): 6.51e-05 +/- 2.11e-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) = 6882.9524076
delta logL = 0.148996567469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6882.93314332
delta logL = 0.168260845623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67254       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2447       1.0000          .0000       10.000    
     3 'Normalizat'    1.5620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60246       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=   6882.933     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67258        2.8533        .45087E-02    .33560E-03
   2  Index1        2.2447        3.3549        .13398        .65069E-04
   3  Normalizat    1.5620        .17898        .64397E-01    .40856E-05
   4  Prefactor     .60246        .86731E-01    .41088E-01    .22813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.672577
  Index1     = 2.24472
  Normalizat = 1.56198
  Prefactor  = 0.602459
 **********
 **   18 **HESSE 
 **********

 FCN=   6882.933     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67258        .21896        .19970E-04   -1.5544    
   2  Index1        2.2447        .33657        .54896E-02   -.58363    
   3  Normalizat    1.5620        .27190        .28483E-03   -.76051    
   4  Prefactor     .60246        .14123        .23073E-03   -1.0748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41875e-10
Minuit parameter uncertainties:
  1  0.218957
  2  0.336932
  3  0.272152
  4  0.141308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348299': 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) = 6882.93314331
delta logL = 0.168260863373

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  6.726e-01  2.190e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.245e+00  3.369e-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:  6.025e-01  1.413e-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.562e+00  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.65
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.24 +/- 0.34
Photon Flux (Free Index): 2.04e-07 +/- 7.68e-08
Energy Flux (Free Index): 6.15e-05 +/- 2.00e-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/348299/cmap_HighResolution_590803201_591062401_4FGL_J2232.6+1143_daily_bin1356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.76e-07', energy_flux2='6.15e-05', photon_flux_error='5.70e-08', dlogl='1.68e-01', energy_flux='6.51e-05', photon_flux2='2.04e-07', job_status='DONE', time_completed='2021-09-28 14:18:18.831926', photon_index_error2='0.34', photon_index2='2.24', ts='25.49', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='1.60', time_epoch_completed='1632863898.83', return_code='0', job_id='348299', GAL2='0.60', EG2='1.56', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='7.68e-08', ts2='25.65', photon_index='2.05' WHERE bin_id='1356' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:18:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 348299: <4FGL_J2232.6+1143_daily_bin1356> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1356 338.152 11.7306 590803201 591062401 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 :                                   562.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            758 sec.

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

