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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1319
RA = 338.152, Dec = 11.7306
tmin = 581212801, tmax = 581472001
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='348241', job_status='RUN', time_executed='2021-09-28 14:06:09.331762', time_epoch_executed='1632863169.33' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348241

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348241/ft1_4FGL_J2232.6+1143_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348241/ft2_4FGL_J2232.6+1143_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348241/ft1_4FGL_J2232.6+1143_daily_bin1319.fits outfile=/scratch/kocevski/348241/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1319.fits ra=338.152 dec=11.7306 rad=12.0 tmin=581212801.0 tmax=581472001.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.02
user 2.83
sys 0.16

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348241/ft1_filtered_4FGL_J2232.6+1143_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/348241/ft2_4FGL_J2232.6+1143_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/348241/ltcube_581212801_581472001_4FGL_J2232.6+1143_daily_bin1319.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/348241/ft2_4FGL_J2232.6+1143_daily_bin1319.fits
.....................!
real 12.33
user 11.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348241/ft1_filtered_4FGL_J2232.6+1143_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/348241/ft2_4FGL_J2232.6+1143_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/348241/ltcube_581212801_581472001_4FGL_J2232.6+1143_daily_bin1319.fits outfile=/scratch/kocevski/348241/expmap_581212801_581472001_4FGL_J2232.6+1143_daily_bin1319.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/348241/ltcube_581212801_581472001_4FGL_J2232.6+1143_daily_bin1319.fits
.....................!
real 189.91
user 185.13
sys 4.41

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/348241/ft1_filtered_4FGL_J2232.6+1143_daily_bin1319.fits scfile=/scratch/kocevski/348241/ft2_4FGL_J2232.6+1143_daily_bin1319.fits outfile=/scratch/kocevski/348241/cmap_581212801_581472001_4FGL_J2232.6+1143_daily_bin1319.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348241/ft1_filtered_4FGL_J2232.6+1143_daily_bin1319.fits scfile=/scratch/kocevski/348241/ft2_4FGL_J2232.6+1143_daily_bin1319.fits outfile=/scratch/kocevski/348241/cmap_HighResolution_581212801_581472001_4FGL_J2232.6+1143_daily_bin1319.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6950       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14625E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4407       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11559E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5355       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1306       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0105       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26986E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    194.51       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .58823       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3989       1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.022       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31197       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1298       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85658       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=   12910.40     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2272 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.916       -.92648E-06** at limit **
   2  norm          .10000E-03    .70793        .91040E-08** at limit **
   3  norm          .10000E-03    6.3624        .62422E-08** at limit **
   4  norm          .10000E-03    .31876        .91636E-08** at limit **
   5  Prefactor     7.7073        14.257        .26502E-06   -.31433E-04
   6  Prefactor     .10000E-03    44.957        .24515E-05** at limit **
   7  norm          1.4376        3.4181        .10189E-05   -.50962E-03
   8  Prefactor     .10000E-03    18.979        .17196E-06** at limit **
   9  Prefactor     .10000E-03    4.9138       -.12163E-07** at limit **
  10  Prefactor     1.5349        .22444       -.20495E-09    .56934E-03
  11  Prefactor     1.1340        3.6786        .15399E-05   -.49173E-03
  12  norm          3.0095        1.7719       -.12101E-06   -.69100E-04
  13  Prefactor     .10084E-03    15.034       -.29767E-05** at limit **
  14  Prefactor     194.52        19.888        .10399E-05    .20984E-02
  15  Prefactor     .57486        7.5808       -.10076E-05    .13783E-03
  16  Prefactor     1.3990        .18493       -.47270E-08    .63751E-02
  17  Prefactor     49.026        31.474        .17340E-05    .33961E-03
  18  Prefactor     .31084        3.4357        .23721E-06   -.15886E-03
  19  Prefactor     .10000E-03    4.3158       -.76219E-08** at limit **
  20  Normalizat    1.1297        .18510       -.98902E-06    .11400E-03
  21  Prefactor     .85666        .97421E-01   -.32317E-07    .11507E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.7073
  Prefactor  = 0.000100003
  norm       = 1.43764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.53485
  Prefactor  = 1.13405
  norm       = 3.00949
  Prefactor  = 0.000100839
  Prefactor  = 194.523
  Prefactor  = 0.574859
  Prefactor  = 1.39901
  Prefactor  = 49.0263
  Prefactor  = 0.310841
  Prefactor  = 0.0001
  Normalizat = 1.12969
  Prefactor  = 0.856661
 **********
 **   18 **HESSE 
 **********

 FCN=   12910.40     FROM HESSE     STATUS=OK           323 CALLS     2595 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .73188        .18664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.3675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .66203        .12365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.7073        14.260        .14456E-03   -1.5153    
   6  Prefactor     .10000E-03    46.991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4376        3.6517        .33106E-03   -1.5468    
   8  Prefactor     .10000E-03    19.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5349        .22468        .19485E-04   -1.5460    
  11  Prefactor     1.1340        4.0771        .42547E-03   -1.5495    
  12  norm          3.0095        1.7777        .11081E-03   -1.5361    
  13  Prefactor     .10084E-03    97.755        .76462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     194.52        21.236        .14482E-03   -1.2909    
  15  Prefactor     .57486        41.032        .58494E-02   -1.5556    
  16  Prefactor     1.3990        .18247        .16342E-04   -1.5471    
  17  Prefactor     49.026        31.967        .57274E-04   -1.4306    
  18  Prefactor     .31084        23.351        .39879E-02   -1.5596    
  19  Prefactor     .10000E-03    4.3374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1297        .21949        .35456E-03   -.88804    
  21  Prefactor     .85666        .11676        .21823E-03   -.97672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8414e-08
Minuit parameter uncertainties:
  1  0.000247888
  2  1.19696e-06
  3  2.33882e-06
  4  3.32906e-06
  5  14.2662
  6  0.000742077
  7  3.65223
  8  5.63341e-05
  9  2.42942e-06
  10  0.22468
  11  4.07815
  12  1.7777
  13  0.0181424
  14  21.2372
  15  9.71948
  16  0.182466
  17  31.9787
  18  5.38957
  19  1.13646e-06
  20  0.219664
  21  0.116793
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.535e+00  2.247e-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:  8.567e-01  1.168e-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.130e+00  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 136.81
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 3.91e-07 +/- 5.72e-08
Energy Flux (Fixed Index): 1.45e-04 +/- 2.12e-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) = 12909.738432
delta logL = 0.658572301889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12909.7383558
delta logL = 0.658648486964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4488       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2283       1.0000          .0000       10.000    
     3 'Normalizat'    1.0785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87597       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=   12909.74     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4488        .65851        .41727E-02    .43613E-04
   2  Index1        2.2283        .43994        .81479E-01    .11918E-03
   3  Normalizat    1.0786        .18891        .81607E-01    .41660E-04
   4  Prefactor     .87579        .10169        .44698E-01    .21452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44882
  Index1     = 2.22829
  Normalizat = 1.07863
  Prefactor  = 0.875788
 **********
 **   18 **HESSE 
 **********

 FCN=   12909.74     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4488        .22846        .18456E-04   -1.5467    
   2  Index1        2.2283        .15626        .35256E-03   -.58757    
   3  Normalizat    1.0786        .21766        .36129E-03   -.90441    
   4  Prefactor     .87579        .11708        .21601E-03   -.96992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94522e-13
Minuit parameter uncertainties:
  1  0.228458
  2  0.156293
  3  0.217845
  4  0.117118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348241': 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) = 12909.7383523
delta logL = 0.658652001339

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.449e+00  2.285e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.228e+00  1.563e-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:  8.758e-01  1.171e-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.079e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 135.91
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.23 +/- 0.16
Photon Flux (Free Index): 4.32e-07 +/- 6.99e-08
Energy Flux (Free Index): 1.33e-04 +/- 2.12e-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/348241/cmap_HighResolution_581212801_581472001_4FGL_J2232.6+1143_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.91e-07', energy_flux2='1.33e-04', photon_flux_error='5.72e-08', dlogl='6.59e-01', energy_flux='1.45e-04', photon_flux2='4.32e-07', job_status='DONE', time_completed='2021-09-28 14:19:49.090464', photon_index_error2='0.16', photon_index2='2.23', ts='136.81', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='1.13', time_epoch_completed='1632863989.09', return_code='0', job_id='348241', GAL2='0.88', EG2='1.08', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='6.99e-08', ts2='135.91', photon_index='2.05' WHERE bin_id='1319' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:19:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 348241: <4FGL_J2232.6+1143_daily_bin1319> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1319 338.152 11.7306 581212801 581472001 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 :                                   818.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            853 sec.

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

