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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin881
RA = 338.152, Dec = 11.7306
tmin = 467683201, tmax = 467942401
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='346556', job_status='RUN', time_executed='2021-09-28 14:00:46.992121', time_epoch_executed='1632862846.99' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='881'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346556

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346556/ft1_4FGL_J2232.6+1143_daily_bin881.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346556/ft2_4FGL_J2232.6+1143_daily_bin881.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346556/ft1_4FGL_J2232.6+1143_daily_bin881.fits outfile=/scratch/kocevski/346556/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin881.fits ra=338.152 dec=11.7306 rad=12.0 tmin=467683201.0 tmax=467942401.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 3.45
user 3.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346556/ft2_4FGL_J2232.6+1143_daily_bin881.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/346556/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin881.fits evtable="EVENTS" outfile="/scratch/kocevski/346556/ft1_filtered_4FGL_J2232.6+1143_daily_bin881.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346556/ft1_filtered_4FGL_J2232.6+1143_daily_bin881.fits evtable="EVENTS" scfile=/scratch/kocevski/346556/ft2_4FGL_J2232.6+1143_daily_bin881.fits sctable="SC_DATA" expcube=/scratch/kocevski/346556/ltcube_467683201_467942401_4FGL_J2232.6+1143_daily_bin881.fits outfile=/scratch/kocevski/346556/expmap_467683201_467942401_4FGL_J2232.6+1143_daily_bin881.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/346556/ltcube_467683201_467942401_4FGL_J2232.6+1143_daily_bin881.fits
.....................!
real 191.49
user 185.92
sys 5.23

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/346556/ft1_filtered_4FGL_J2232.6+1143_daily_bin881.fits scfile=/scratch/kocevski/346556/ft2_4FGL_J2232.6+1143_daily_bin881.fits outfile=/scratch/kocevski/346556/cmap_467683201_467942401_4FGL_J2232.6+1143_daily_bin881.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/346556/ft1_filtered_4FGL_J2232.6+1143_daily_bin881.fits scfile=/scratch/kocevski/346556/ft2_4FGL_J2232.6+1143_daily_bin881.fits outfile=/scratch/kocevski/346556/cmap_HighResolution_467683201_467942401_4FGL_J2232.6+1143_daily_bin881.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0404       1.0000         .10000E-03   10000.    
     3 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .72322       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    106.14       1.0000         .10000E-03   10000.    
     7 'norm      '    10.197       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9270       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0854       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7289       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4645       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.599       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1303       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.087       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7339       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.623       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78587       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0644       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=   11335.19     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     1900 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.367       -.29542E-04** at limit **
   2  norm          6.0405        3.4494       -.88426E-06   -.24375E-03
   3  norm          .10000E-03    12.880        .28473E-05** at limit **
   4  norm          .72350        .78974       -.43578E-06   -.30903E-02
   5  Prefactor     .10000E-03    9.5202       -.38995E-06** at limit **
   6  Prefactor     106.14        38.730       -.13588E-05    .61301E-04
   7  norm          10.197        5.4748       -.14182E-05    .10487E-03
   8  Prefactor     .10000E-03    22.736       -.20156E-04** at limit **
   9  Prefactor     2.9277        13.571       -.70344E-05   -.17799E-03
  10  Prefactor     1.0855        .26298       -.10012E-06    .29682E-02
  11  Prefactor     7.7290        8.3476       -.37299E-06   -.49863E-04
  12  norm          2.4646        1.5477       -.34938E-07    .81462E-04
  13  Prefactor     12.598        17.653       -.38675E-06   -.27170E-04
  14  Prefactor     7.1302        8.6315       -.69325E-06   -.80739E-04
  15  Prefactor     .10000E-03    32.679        .47581E-04** at limit **
  16  Prefactor     10.087        .47949       -.75188E-07   -.42853E-02
  17  Prefactor     8.6866        33.378       -.10116E-03    .16076E-04
  18  Prefactor     .10000E-03    5.2082       -.34038E-06** at limit **
  19  Prefactor     19.623        14.684        .52130E-06   -.29996E-04
  20  Normalizat    .78591        .27331        .19832E-04   -.30885E-04
  21  Prefactor     1.0644        .13633       -.27267E-05    .73801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.04045
  norm       = 0.0001
  norm       = 0.723499
  Prefactor  = 0.0001
  Prefactor  = 106.14
  norm       = 10.1971
  Prefactor  = 0.0001
  Prefactor  = 2.92769
  Prefactor  = 1.08547
  Prefactor  = 7.72904
  norm       = 2.46458
  Prefactor  = 12.5981
  Prefactor  = 7.13015
  Prefactor  = 0.000100001
  Prefactor  = 10.0874
  Prefactor  = 8.68659
  Prefactor  = 0.0001
  Prefactor  = 19.623
  Normalizat = 0.785915
  Prefactor  = 1.06442
 **********
 **   18 **HESSE 
 **********

 FCN=   11335.19     FROM HESSE     STATUS=OK           321 CALLS     2221 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0405        3.4482        .14221E-03   -1.5216    
   3  norm          .10000E-03    12.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .72350        .68269        .94818E-03   -1.5538    
   5  Prefactor     .10000E-03    9.5348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     106.14        38.742        .39034E-04   -1.3644    
   7  norm          10.197        5.4649        .12548E-03   -1.5069    
   8  Prefactor     .10000E-03    23.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9277        13.617        .23744E-03   -1.5366    
  10  Prefactor     1.0855        .26222        .25344E-04   -1.5500    
  11  Prefactor     7.7290        8.3586        .14424E-03   -1.5152    
  12  norm          2.4646        1.5492        .10149E-03   -1.5394    
  13  Prefactor     12.598        17.653        .11285E-03   -1.4998    
  14  Prefactor     7.1302        8.6219        .15022E-03   -1.5174    
  15  Prefactor     .10000E-03    32.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.087        .47989        .15250E-04   -1.5073    
  17  Prefactor     8.6866        33.494        .13563E-03   -1.5118    
  18  Prefactor     .10000E-03    5.2657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.623        14.673        .90416E-04   -1.4822    
  20  Normalizat    .78591        .31356        .52926E-03   -1.0059    
  21  Prefactor     1.0644        .15997        .25081E-03   -.90612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49626e-09
Minuit parameter uncertainties:
  1  1.42609e-05
  2  3.4483
  3  2.68806e-05
  4  0.6827
  5  3.65589e-05
  6  38.7509
  7  5.46516
  8  0.000124197
  9  12.6327
  10  0.262221
  11  8.35982
  12  1.54918
  13  17.6608
  14  8.62342
  15  0.00025792
  16  0.479889
  17  33.5663
  18  2.57673e-05
  19  14.6756
  20  0.314287
  21  0.160042
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.085e+00  2.622e-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.064e+00  1.600e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  7.859e-01  3.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 46.83
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.77e-07 +/- 6.68e-08
Energy Flux (Fixed Index): 1.03e-04 +/- 2.48e-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) = 11335.0610213
delta logL = 0.130139628844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11335.0369686
delta logL = 0.154192318536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0493       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1922       1.0000          .0000       10.000    
     3 'Normalizat'    .75451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0764       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11335.04     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      272 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0493        .26369        .24404E-04   -.98277E-02
   2  Index1        2.1918        .25724        .54546E-02   -.48414E-03
   3  Normalizat    .75455        .29307        .53875E-03    .16882E-06
   4  Prefactor     1.0762        .15874        .24955E-03    .82331E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.04931
  Index1     = 2.19181
  Normalizat = 0.754551
  Prefactor  = 1.07616
 **********
 **   18 **HESSE 
 **********

 FCN=   11335.04     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0493        .26150        .48808E-05   -1.5503    
   2  Index1        2.1918        .25497        .21818E-03   -.59637    
   3  Normalizat    .75455        .29317        .21550E-04   -1.0178    
   4  Prefactor     1.0762        .15879        .49909E-04   -.90232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03354e-09
Minuit parameter uncertainties:
  1  0.2615
  2  0.25513
  3  0.293779
  4  0.158863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346556': 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) = 11335.0369645
delta logL = 0.15419646444

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.049e+00  2.615e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.192e+00  2.551e-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.076e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  7.546e-01  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.21
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.19 +/- 0.26
Photon Flux (Free Index): 3.02e-07 +/- 8.36e-08
Energy Flux (Free Index): 9.62e-05 +/- 2.48e-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/346556/cmap_HighResolution_467683201_467942401_4FGL_J2232.6+1143_daily_bin881.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.77e-07', energy_flux2='9.62e-05', photon_flux_error='6.68e-08', dlogl='1.54e-01', energy_flux='1.03e-04', photon_flux2='3.02e-07', job_status='DONE', time_completed='2021-09-28 14:13:40.844324', photon_index_error2='0.26', photon_index2='2.19', ts='46.83', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.48e-05', EG='0.79', time_epoch_completed='1632863620.84', return_code='0', job_id='346556', GAL2='1.08', EG2='0.75', return_code2='0', energy_flux_error='2.48e-05', photon_flux_error2='8.36e-08', ts2='46.21', photon_index='2.05' WHERE bin_id='881' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:13:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 346556: <4FGL_J2232.6+1143_daily_bin881> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin881 338.152 11.7306 467683201 467942401 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 :                                   773.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             392.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            793 sec.

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

