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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1569
RA = 338.152, Dec = 11.7306
tmin = 646012801, tmax = 646272001
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='348634', job_status='RUN', time_executed='2021-09-28 14:09:35.386854', time_epoch_executed='1632863375.39' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348634/ft1_4FGL_J2232.6+1143_daily_bin1569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348634/ft2_4FGL_J2232.6+1143_daily_bin1569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348634/ft1_4FGL_J2232.6+1143_daily_bin1569.fits outfile=/scratch/kocevski/348634/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1569.fits ra=338.152 dec=11.7306 rad=12.0 tmin=646012801.0 tmax=646272001.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 4.63
user 4.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348634/ft2_4FGL_J2232.6+1143_daily_bin1569.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/348634/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1569.fits evtable="EVENTS" outfile="/scratch/kocevski/348634/ft1_filtered_4FGL_J2232.6+1143_daily_bin1569.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/348634/ft1_filtered_4FGL_J2232.6+1143_daily_bin1569.fits" evtable="EVENTS" scfile=/scratch/kocevski/348634/ft2_4FGL_J2232.6+1143_daily_bin1569.fits sctable="SC_DATA" outfile=/scratch/kocevski/348634/ltcube_646012801_646272001_4FGL_J2232.6+1143_daily_bin1569.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/348634/ft2_4FGL_J2232.6+1143_daily_bin1569.fits
.....................!
real 12.00
user 11.23
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348634/ft1_filtered_4FGL_J2232.6+1143_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/348634/ft2_4FGL_J2232.6+1143_daily_bin1569.fits sctable="SC_DATA" expcube=/scratch/kocevski/348634/ltcube_646012801_646272001_4FGL_J2232.6+1143_daily_bin1569.fits outfile=/scratch/kocevski/348634/expmap_646012801_646272001_4FGL_J2232.6+1143_daily_bin1569.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/348634/ltcube_646012801_646272001_4FGL_J2232.6+1143_daily_bin1569.fits
.....................!
real 191.75
user 185.95
sys 5.42

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/348634/ft1_filtered_4FGL_J2232.6+1143_daily_bin1569.fits scfile=/scratch/kocevski/348634/ft2_4FGL_J2232.6+1143_daily_bin1569.fits outfile=/scratch/kocevski/348634/cmap_646012801_646272001_4FGL_J2232.6+1143_daily_bin1569.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348634/ft1_filtered_4FGL_J2232.6+1143_daily_bin1569.fits scfile=/scratch/kocevski/348634/ft2_4FGL_J2232.6+1143_daily_bin1569.fits outfile=/scratch/kocevski/348634/cmap_HighResolution_646012801_646272001_4FGL_J2232.6+1143_daily_bin1569.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .62396       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14873E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.828       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4857       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0517       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .87120E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.915       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8329       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.734       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.138       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3909       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16231       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.677       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6308       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3588       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70111       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=   7538.930     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2268 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.597       -.24682E-07** at limit **
   2  norm          .10000E-03    .75856        .47780E-08** at limit **
   3  norm          .10000E-03    6.4002        .57896E-08** at limit **
   4  norm          .62361        .83510        .19047E-06   -.18871E-03
   5  Prefactor     .10000E-03    37.994       -.11510E-05** at limit **
   6  Prefactor     14.795        25.945       -.59741E-05   -.51414E-03
   7  norm          .10000E-03    1.0710        .37851E-07** at limit **
   8  Prefactor     4.4869        9.6402        .68653E-05   -.40731E-03
   9  Prefactor     7.0519        10.775       -.76736E-08   -.34246E-04
  10  Prefactor     .87119E-01    .91616E-01   -.85254E-07   -.24562E-02
  11  Prefactor     12.915        7.4574       -.20547E-07    .80932E-05
  12  norm          2.8329        1.6036       -.81355E-08   -.33318E-04
  13  Prefactor     21.736        20.717        .29030E-07    .40087E-04
  14  Prefactor     12.138        10.007       -.10184E-07   -.10633E-04
  15  Prefactor     6.3916        13.100       -.51206E-07   -.16374E-04
  16  Prefactor     .16227        .12233        .31455E-07   -.15739E-03
  17  Prefactor     34.677        34.687        .29967E-06    .34057E-04
  18  Prefactor     .10000E-03    2.3648        .82155E-07** at limit **
  19  Prefactor     9.6308        10.874        .29728E-07   -.24887E-04
  20  Normalizat    1.3587        .20286        .18752E-06   -.56022E-04
  21  Prefactor     .70116        .10449       -.58728E-06   -.20756E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.623611
  Prefactor  = 0.000100002
  Prefactor  = 14.7949
  norm       = 0.0001
  Prefactor  = 4.48687
  Prefactor  = 7.05192
  Prefactor  = 0.0871188
  Prefactor  = 12.9148
  norm       = 2.83288
  Prefactor  = 21.7359
  Prefactor  = 12.1383
  Prefactor  = 6.39164
  Prefactor  = 0.162268
  Prefactor  = 34.6773
  Prefactor  = 0.0001
  Prefactor  = 9.63075
  Normalizat = 1.35874
  Prefactor  = 0.701157
 **********
 **   18 **HESSE 
 **********

 FCN=   7538.930     FROM HESSE     STATUS=OK           327 CALLS     2595 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .78568        .14767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.4098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .62361        .79103        .87073E-03   -1.5550    
   5  Prefactor     .10000E-03    38.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.795        27.748        .10401E-03   -1.4938    
   7  norm          .10000E-03    1.0735        .87739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4869        9.8898        .95053E-03   -1.5284    
   9  Prefactor     7.0519        10.817        .15107E-03   -1.5177    
  10  Prefactor     .87119E-01    .87045E-01    .25919E-03   -1.5649    
  11  Prefactor     12.915        7.4532        .11146E-03   -1.4989    
  12  norm          2.8329        1.6038        .79349E-04   -1.5371    
  13  Prefactor     21.736        20.678        .85917E-04   -1.4775    
  14  Prefactor     12.138        10.008        .11498E-03   -1.5011    
  15  Prefactor     6.3916        13.059        .15877E-03   -1.5202    
  16  Prefactor     .16227        .11744        .24219E-03   -1.5627    
  17  Prefactor     34.677        34.775        .68052E-04   -1.4530    
  18  Prefactor     .10000E-03    2.3786        .13037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6308        10.877        .12913E-03   -1.5087    
  20  Normalizat    1.3587        .24118        .27261E-03   -.81829    
  21  Prefactor     .70116        .12395        .19929E-03   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58539e-09
Minuit parameter uncertainties:
  1  6.6456e-06
  2  2.20048e-07
  3  6.078e-06
  4  0.791047
  5  0.000488698
  6  27.7722
  7  2.19781e-07
  8  9.89344
  9  10.8199
  10  0.0870456
  11  7.45377
  12  1.60385
  13  20.6844
  14  10.0097
  15  13.0652
  16  0.11744
  17  34.7951
  18  1.6061e-07
  19  10.8791
  20  0.241385
  21  0.124002
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  8.712e-02  8.705e-02  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:  7.012e-01  1.240e-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.359e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.86
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.22e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 8.23e-06 +/- 8.23e-06

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

Saving results to:
/scratch/kocevski/348634/likelihoodResults_646012801_646272001_4FGL_J2232.6+1143_daily_bin1569.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) = 7538.56753279
delta logL = 0.362568701797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7538.55109346
delta logL = 0.379008034063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34122E-01   1.0000         .10000E-03   10000.    
     2 'Index1    '    1.0659       1.0000          .0000       10.000    
     3 'Normalizat'    1.3761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69745       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=   7538.551     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33958E-01    .42900E-01    .37299E-02   -.17658E-02
   2  Index1        1.0637        .64492        .36011       -.61236E-04
   3  Normalizat    1.3760        .19012        .61309E-01    .30649E-04
   4  Prefactor     .69753        .10393        .42367E-01    .42911E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0339581
  Index1     = 1.06371
  Normalizat = 1.37597
  Prefactor  = 0.697529
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33958E-01    .68773E-01    .17286E-03   -1.5671    
   2  Index1        1.0637        1.0852        .15628E-02   -.90635    
   3  Normalizat    1.3760        .22515        .27116E-03   -.81326    
   4  Prefactor     .69753        .12314        .19977E-03   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13925e-09
Minuit parameter uncertainties:
  1  0.0687727
  2  1.10896
  3  0.22531
  4  0.123188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348634': 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) = 7538.5510901
delta logL = 0.37901139296

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.396e-02  6.877e-02  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  1.064e+00  1.109e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  6.975e-01  1.232e-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.376e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.62
Ra Dec: 338.152 11.731
Photon Index (Free Index): 1.06 +/- 1.11
Photon Flux (Free Index): 6.02e-09 +/- 1.04e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.98e-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/348634/cmap_HighResolution_646012801_646272001_4FGL_J2232.6+1143_daily_bin1569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', comment='SUCCESS', photon_flux='2.22e-08', energy_flux2='1.33e-05', photon_flux_error='2.22e-08', dlogl='3.79e-01', energy_flux='8.23e-06', photon_flux2='6.02e-09', job_status='DONE', time_completed='2021-09-28 14:20:43.888078', photon_index_error2='1.11', photon_index2='1.06', ts='2.86', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='8.41e-08', energy_flux_error2='1.98e-05', EG='1.36', time_epoch_completed='1632864043.89', return_code='0', job_id='348634', GAL2='0.70', EG2='1.38', return_code2='0', energy_flux_error='8.23e-06', photon_flux_error2='1.04e-08', ts2='3.62', photon_index='2.05' WHERE bin_id='1569' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:20:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 348634: <4FGL_J2232.6+1143_daily_bin1569> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1569 338.152 11.7306 646012801 646272001 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 :                                   665.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             261.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            875 sec.

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

