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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1525
RA = 338.152, Dec = 11.7306
tmin = 634608001, tmax = 634867201
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='348568', job_status='RUN', time_executed='2021-09-28 14:08:19.459106', time_epoch_executed='1632863299.46' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348568

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348568/ft1_4FGL_J2232.6+1143_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348568/ft2_4FGL_J2232.6+1143_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348568/ft1_4FGL_J2232.6+1143_daily_bin1525.fits outfile=/scratch/kocevski/348568/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1525.fits ra=338.152 dec=11.7306 rad=12.0 tmin=634608001.0 tmax=634867201.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.10
user 2.87
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348568/ft1_filtered_4FGL_J2232.6+1143_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/348568/ft2_4FGL_J2232.6+1143_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/348568/ltcube_634608001_634867201_4FGL_J2232.6+1143_daily_bin1525.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/348568/ft2_4FGL_J2232.6+1143_daily_bin1525.fits
.....................!
real 12.21
user 11.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348568/ft1_filtered_4FGL_J2232.6+1143_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/348568/ft2_4FGL_J2232.6+1143_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/348568/ltcube_634608001_634867201_4FGL_J2232.6+1143_daily_bin1525.fits outfile=/scratch/kocevski/348568/expmap_634608001_634867201_4FGL_J2232.6+1143_daily_bin1525.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/348568/ltcube_634608001_634867201_4FGL_J2232.6+1143_daily_bin1525.fits
.....................!
real 189.81
user 185.23
sys 4.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/348568/ft1_filtered_4FGL_J2232.6+1143_daily_bin1525.fits scfile=/scratch/kocevski/348568/ft2_4FGL_J2232.6+1143_daily_bin1525.fits outfile=/scratch/kocevski/348568/cmap_634608001_634867201_4FGL_J2232.6+1143_daily_bin1525.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.152 yref=11.7306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348568/ft1_filtered_4FGL_J2232.6+1143_daily_bin1525.fits scfile=/scratch/kocevski/348568/ft2_4FGL_J2232.6+1143_daily_bin1525.fits outfile=/scratch/kocevski/348568/cmap_HighResolution_634608001_634867201_4FGL_J2232.6+1143_daily_bin1525.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.51
user 0.37
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1321       1.0000         .10000E-03   10000.    
     3 'norm      '    .21314       1.0000         .10000E-03   10000.    
     4 'norm      '    .10725E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.798       1.0000         .10000E-03   10000.    
     7 'norm      '    6.4668       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7575       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10989       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .86648       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8588       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.199       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15860E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55130       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10742E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .70953       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50055E-02   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0636       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0083       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7933.769     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1929 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10043E-03    33.814       -.28179E-04** at limit **
   2  norm          2.1341        2.5650       -.10182E-05   -.21050E-02
   3  norm          .10001E-03    676.12       -.23159E-04** at limit **
   4  norm          .10000E-03    1.8789        .10233E-06** at limit **
   5  Prefactor     .10000E-03    10.787       -.15814E-06** at limit **
   6  Prefactor     50.778        1.5873        .35630E-06   -.34129E-03
   7  norm          6.4671        4.8441        .57132E-06   -.37279E-03
   8  Prefactor     .10000E-03    5.4114       -.16686E-07** at limit **
   9  Prefactor     4.7509        11.596       -.24351E-04   -.90225E-04
  10  Prefactor     .10987        .10784       -.57070E-07    .25889E-04
  11  Prefactor     .86562        8.4665       -.14093E-05    .43133E-04
  12  norm          1.8593        1.1527        .32782E-08    .20878E-03
  13  Prefactor     29.212        1.9610       -.11133E-05    .14422E-03
  14  Prefactor     .10000E-03    23.753        .13637E-05** at limit **
  15  Prefactor     .10009E-03    51.283        .35713E-04** at limit **
  16  Prefactor     .55132        .15709       -.52492E-08    .15904E-02
  17  Prefactor     .10003E-03    122.91        .75010E-04** at limit **
  18  Prefactor     .70191        12.684       -.30465E-05   -.21831E-04
  19  Prefactor     .10034E-03    62.100       -.68856E-04** at limit **
  20  Normalizat    1.0636        .27200        .62279E-05    .20531E-03
  21  Prefactor     1.0084        .14413        .27415E-06    .29404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010043
  norm       = 2.13411
  norm       = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.7776
  norm       = 6.46711
  Prefactor  = 0.0001
  Prefactor  = 4.75095
  Prefactor  = 0.10987
  Prefactor  = 0.86562
  norm       = 1.85927
  Prefactor  = 29.2125
  Prefactor  = 0.0001
  Prefactor  = 0.000100089
  Prefactor  = 0.551318
  Prefactor  = 0.000100031
  Prefactor  = 0.701907
  Prefactor  = 0.000100337
  Normalizat = 1.06361
  Prefactor  = 1.00841
 **********
 **   18 **HESSE 
 **********

 FCN=   7933.769     FROM HESSE     STATUS=OK           391 CALLS     2320 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10043E-03    66.402        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1341        2.6062        .70587E-02   -1.5416    
   3  norm          .10001E-03    18.390        .13975       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .44305        .32164E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.792        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     50.778        50.532        .14067E-02   -1.4282    
   7  norm          6.4671        4.8685        .39456E-02   -1.5199    
   8  Prefactor     .10000E-03    5.3975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7509        11.697        .46116E-02   -1.5272    
  10  Prefactor     .10987        .11940        .63496E-02   -1.5642    
  11  Prefactor     .86562        8.3303        .12685E-01   -1.5522    
  12  norm          1.8593        1.1480        .76419E-02   -1.5435    
  13  Prefactor     29.212        25.376        .18536E-02   -1.4626    
  14  Prefactor     .10000E-03    22.944        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10009E-03    10.747        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55132        .16261        .39933E-02   -1.5559    
  17  Prefactor     .10003E-03    124.15        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .70191        3.3104        .84963E-01   -1.5540    
  19  Prefactor     .10034E-03    9.3684        .96004E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0636        .23414        .79281E-01   -.90929    
  21  Prefactor     1.0084        .11956        .43588E-01   -.92450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58577e-08
Minuit parameter uncertainties:
  1  0.0106963
  2  2.60632
  3  0.000892971
  4  2.51403e-06
  5  4.51413e-05
  6  50.5749
  7  4.86877
  8  2.70249e-05
  9  11.7027
  10  0.119401
  11  5.37129
  12  1.14797
  13  25.3852
  14  0.000160251
  15  0.00195313
  16  0.162608
  17  0.00395519
  18  3.04874
  19  0.00355347
  20  0.234371
  21  0.119592
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.099e-01  1.194e-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.008e+00  1.196e-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.064e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.80e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 1.13e-05

TS (Fixed Index): 1.71
Ra Dec: 338.152 11.731
Photon Flux Upper Limit: 9.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/348568/likelihoodResults_634608001_634867201_4FGL_J2232.6+1143_daily_bin1525.txt

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) = 7933.31373905
delta logL = 0.455123824728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7933.30558922
delta logL = 0.463273648404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97263E-01   1.0000         .10000E-03   10000.    
     2 'Index1    '    1.3695       1.0000          .0000       10.000    
     3 'Normalizat'    1.0779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0029       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=   7933.306     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      205 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97265E-01    .92543E-01    .53008E-02   -.78444E-03
   2  Index1        1.3695        .48824        .30694       -.69204E-04
   3  Normalizat    1.0779        .21924        .78797E-01   -.80898E-05
   4  Prefactor     1.0029        .11813        .44687E-01    .15290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0972651
  Index1     = 1.36949
  Normalizat = 1.07792
  Prefactor  = 1.00294
 **********
 **   18 **HESSE 
 **********

 FCN=   7933.306     FROM HESSE     STATUS=OK            35 CALLS      240 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97265E-01    .10364        .25363E-03   -1.5646    
   2  Index1        1.3695        .65758        .12210E-01   -.81263    
   3  Normalizat    1.0779        .26332        .34880E-03   -.90464    
   4  Prefactor     1.0029        .14218        .19291E-03   -.92631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27771e-11
Minuit parameter uncertainties:
  1  0.103635
  2  0.661656
  3  0.263645
  4  0.142237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348568': 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) = 7933.30558922
delta logL = 0.463273650199

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  9.727e-02  1.036e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  1.369e+00  6.617e-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.003e+00  1.422e-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.078e+00  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 338.152 11.731
Photon Index (Free Index): 1.37 +/- 0.66
Photon Flux (Free Index): 1.69e-08 +/- 1.93e-08
Energy Flux (Free Index): 1.94e-05 +/- 2.06e-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/348568/cmap_HighResolution_634608001_634867201_4FGL_J2232.6+1143_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-05', comment='SUCCESS', photon_flux='2.80e-08', energy_flux2='1.94e-05', photon_flux_error='3.04e-08', dlogl='4.63e-01', energy_flux='1.04e-05', photon_flux2='1.69e-08', job_status='DONE', time_completed='2021-09-28 14:19:04.963548', photon_index_error2='0.66', photon_index2='1.37', ts='1.71', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='9.56e-08', energy_flux_error2='2.06e-05', EG='1.06', time_epoch_completed='1632863944.96', return_code='0', job_id='348568', GAL2='1.00', EG2='1.08', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='1.93e-08', ts2='2.64', photon_index='2.05' WHERE bin_id='1525' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:19:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 348568: <4FGL_J2232.6+1143_daily_bin1525> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1525 338.152 11.7306 634608001 634867201 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 :                                   640.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            781 sec.

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

