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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1510
RA = 338.152, Dec = 11.7306
tmin = 630720001, tmax = 630979201
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='348546', job_status='RUN', time_executed='2021-09-28 14:08:41.396853', time_epoch_executed='1632863321.4' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348546

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348546/ft1_4FGL_J2232.6+1143_daily_bin1510.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348546/ft2_4FGL_J2232.6+1143_daily_bin1510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348546/ft1_4FGL_J2232.6+1143_daily_bin1510.fits outfile=/scratch/kocevski/348546/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1510.fits ra=338.152 dec=11.7306 rad=12.0 tmin=630720001.0 tmax=630979201.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 2.96
user 2.72
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348546/ft1_filtered_4FGL_J2232.6+1143_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/348546/ft2_4FGL_J2232.6+1143_daily_bin1510.fits sctable="SC_DATA" expcube=/scratch/kocevski/348546/ltcube_630720001_630979201_4FGL_J2232.6+1143_daily_bin1510.fits outfile=/scratch/kocevski/348546/expmap_630720001_630979201_4FGL_J2232.6+1143_daily_bin1510.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/348546/ltcube_630720001_630979201_4FGL_J2232.6+1143_daily_bin1510.fits
.....................!
real 191.40
user 186.47
sys 4.57

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/348546/ft1_filtered_4FGL_J2232.6+1143_daily_bin1510.fits scfile=/scratch/kocevski/348546/ft2_4FGL_J2232.6+1143_daily_bin1510.fits outfile=/scratch/kocevski/348546/cmap_630720001_630979201_4FGL_J2232.6+1143_daily_bin1510.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/348546/ft1_filtered_4FGL_J2232.6+1143_daily_bin1510.fits scfile=/scratch/kocevski/348546/ft2_4FGL_J2232.6+1143_daily_bin1510.fits outfile=/scratch/kocevski/348546/cmap_HighResolution_630720001_630979201_4FGL_J2232.6+1143_daily_bin1510.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    34.310       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10521E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3646       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2393       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0657       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0200       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.448       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.404       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .44881       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0684       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .61888       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1334       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=   10601.71     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     1906 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.667       -.40763E-05** at limit **
   2  norm          .10000E-03    .62803        .12850E-06** at limit **
   3  norm          34.304        22.327       -.29316E-05   -.34214E-03
   4  norm          .10000E-03    .20630       -.11790E-06** at limit **
   5  Prefactor     .10000E-03    12.179        .58797E-06** at limit **
   6  Prefactor     .10000E-03    26.245       -.58351E-05** at limit **
   7  norm          .10000E-03    1.8327       -.32479E-06** at limit **
   8  Prefactor     8.3649        8.8172        .35874E-06   -.48600E-03
   9  Prefactor     4.2400        5.9388        .21742E-05   -.15600E-02
  10  Prefactor     .30137        .15355        .18386E-07    .31735E-03
  11  Prefactor     8.0656        5.9530        .11283E-06    .39894E-04
  12  norm          3.0200        1.4555       -.12159E-08    .33788E-04
  13  Prefactor     .10000E-03    21.460        .75773E-05** at limit **
  14  Prefactor     16.448        9.8431       -.13935E-07   -.22973E-03
  15  Prefactor     11.403        10.500       -.28863E-07   -.63734E-05
  16  Prefactor     .44881        .11905        .14341E-07    .17766E-03
  17  Prefactor     5.0626        24.098       -.69012E-05   -.13509E-03
  18  Prefactor     .10000E-03    2.3152        .27231E-07** at limit **
  19  Prefactor     .10000E-03    4.3290        .24117E-07** at limit **
  20  Normalizat    .61892        .17934        .85948E-06    .76968E-04
  21  Prefactor     1.1334        .10059       -.17358E-06    .21031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 34.3038
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 8.36492
  Prefactor  = 4.24002
  Prefactor  = 0.301365
  Prefactor  = 8.06558
  norm       = 3.02
  Prefactor  = 0.000100003
  Prefactor  = 16.4481
  Prefactor  = 11.4035
  Prefactor  = 0.448809
  Prefactor  = 5.06259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.618919
  Prefactor  = 1.13343
 **********
 **   18 **HESSE 
 **********

 FCN=   10601.71     FROM HESSE     STATUS=OK           319 CALLS     2225 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .63621        .79700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          34.304        22.627        .68413E-04   -1.4536    
   4  norm          .10000E-03    .27936        .90762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9940        .26950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3649        8.9426        .69306E-03   -1.5129    
   9  Prefactor     4.2400        8.4885        .97850E-03   -1.5296    
  10  Prefactor     .30137        .14889        .26392E-04   -1.5598    
  11  Prefactor     8.0656        5.9517        .14117E-03   -1.5140    
  12  norm          3.0200        1.4557        .82918E-04   -1.5360    
  13  Prefactor     .10000E-03    21.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.448        9.8488        .49377E-03   -1.4897    
  15  Prefactor     11.403        10.504        .11863E-03   -1.5032    
  16  Prefactor     .44881        .11839        .17313E-04   -1.5574    
  17  Prefactor     5.0626        24.891        .17860E-03   -1.5258    
  18  Prefactor     .10000E-03    2.3391        .15295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.3581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .61892        .20136        .39052E-03   -1.0719    
  21  Prefactor     1.1334        .11354        .17064E-03   -.88405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39549e-09
Minuit parameter uncertainties:
  1  0.000291896
  2  4.77696e-06
  3  22.6328
  4  1.41883e-07
  5  4.52121e-05
  6  0.000507425
  7  6.97733e-07
  8  8.94401
  9  8.49089
  10  0.148886
  11  5.95217
  12  1.45568
  13  0.000542802
  14  9.84973
  15  10.5062
  16  0.118387
  17  22.4659
  18  2.33283e-06
  19  5.93431e-08
  20  0.201602
  21  0.113565
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.014e-01  1.489e-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.133e+00  1.136e-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:  6.189e-01  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.80
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 7.68e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 1.41e-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) = 10601.0526476
delta logL = 0.655958233992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10601.0522934
delta logL = 0.656312402829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26301       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.5170       1.0000          .0000       10.000    
     3 'Normalizat'    .58288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1464       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=   10601.05     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26289        1.5050        .49091E-02    .21462E-02
   2  Index1        2.5166        3.0339        .18151        .11558E-03
   3  Normalizat    .58276        .57978E-01    .90643E-01    .65975E-04
   4  Prefactor     1.1465        .34335E-01    .36041E-01    .82519E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.262892
  Index1     = 2.51658
  Normalizat = 0.582763
  Prefactor  = 1.14652
 **********
 **   18 **HESSE 
 **********

 FCN=   10601.05     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26289        .14199        .22076E-04   -1.5605    
   2  Index1        2.5166        .44422        .69659E-02   -.51977    
   3  Normalizat    .58276        .19845        .40158E-03   -1.0872    
   4  Prefactor     1.1465        .11387        .16973E-03   -.87993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98191e-12
Minuit parameter uncertainties:
  1  0.141986
  2  0.444995
  3  0.19869
  4  0.113894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348546': 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) = 10601.0522907
delta logL = 0.65631514919

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.629e-01  1.420e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.517e+00  4.450e-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.147e+00  1.139e-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:  5.828e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.20
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.52 +/- 0.44
Photon Flux (Free Index): 1.04e-07 +/- 4.80e-08
Energy Flux (Free Index): 2.54e-05 +/- 1.17e-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/348546/cmap_HighResolution_630720001_630979201_4FGL_J2232.6+1143_daily_bin1510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.68e-08', energy_flux2='2.54e-05', photon_flux_error='3.79e-08', dlogl='6.56e-01', energy_flux='2.85e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-28 14:20:01.708642', photon_index_error2='0.44', photon_index2='2.52', ts='6.80', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='0.62', time_epoch_completed='1632864001.71', return_code='0', job_id='348546', GAL2='1.15', EG2='0.58', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.80e-08', ts2='8.20', photon_index='2.05' WHERE bin_id='1510' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:20:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 348546: <4FGL_J2232.6+1143_daily_bin1510> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1510> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:06:02 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:06:04 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:06:04 2021
Terminated at Tue Sep 28 14:20:02 2021
Results reported at Tue Sep 28 14:20:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1510 338.152 11.7306 630720001 630979201 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 :                                   667.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

