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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1133
RA = 338.152, Dec = 11.7306
tmin = 533001601, tmax = 533260801
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='346951', job_status='RUN', time_executed='2021-09-28 14:02:55.139966', time_epoch_executed='1632862975.14' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346951

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346951/ft1_4FGL_J2232.6+1143_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346951/ft2_4FGL_J2232.6+1143_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346951/ft1_4FGL_J2232.6+1143_daily_bin1133.fits outfile=/scratch/kocevski/346951/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1133.fits ra=338.152 dec=11.7306 rad=12.0 tmin=533001601.0 tmax=533260801.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.54
user 3.29
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346951/ft2_4FGL_J2232.6+1143_daily_bin1133.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/346951/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1133.fits evtable="EVENTS" outfile="/scratch/kocevski/346951/ft1_filtered_4FGL_J2232.6+1143_daily_bin1133.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.57
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346951/ft1_filtered_4FGL_J2232.6+1143_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/346951/ft2_4FGL_J2232.6+1143_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/346951/ltcube_533001601_533260801_4FGL_J2232.6+1143_daily_bin1133.fits outfile=/scratch/kocevski/346951/expmap_533001601_533260801_4FGL_J2232.6+1143_daily_bin1133.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/346951/ltcube_533001601_533260801_4FGL_J2232.6+1143_daily_bin1133.fits
.....................!
real 191.94
user 186.14
sys 5.46

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/346951/ft1_filtered_4FGL_J2232.6+1143_daily_bin1133.fits scfile=/scratch/kocevski/346951/ft2_4FGL_J2232.6+1143_daily_bin1133.fits outfile=/scratch/kocevski/346951/cmap_533001601_533260801_4FGL_J2232.6+1143_daily_bin1133.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/346951/ft1_filtered_4FGL_J2232.6+1143_daily_bin1133.fits scfile=/scratch/kocevski/346951/ft2_4FGL_J2232.6+1143_daily_bin1133.fits outfile=/scratch/kocevski/346951/cmap_HighResolution_533001601_533260801_4FGL_J2232.6+1143_daily_bin1133.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1140       1.0000         .10000E-03   10000.    
     3 'norm      '    31.408       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.006       1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.865       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.725       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9381       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6494       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4365       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9126       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2808       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9869       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8289       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0808       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0938       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94307       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=   9100.912     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2218 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.022        .29714E-06** at limit **
   2  norm          4.1138        3.2904       -.47300E-08   -.10802E-03
   3  norm          31.415        35.169        .16284E-05    .19704E-03
   4  norm          .10000E-03    .33024        .13930E-07** at limit **
   5  Prefactor     40.017        24.733        .18516E-05    .49145E-03
   6  Prefactor     55.862        32.859       -.39913E-06   -.80457E-04
   7  norm          .10000E-03    2.5587       -.10542E-07** at limit **
   8  Prefactor     22.718        19.147       -.82432E-06   -.25592E-03
   9  Prefactor     2.9382        5.6625        .21998E-06   -.67032E-04
  10  Prefactor     3.6495        .43938        .27117E-07   -.46773E-03
  11  Prefactor     5.4365        6.0472        .30853E-08    .17006E-04
  12  norm          1.9126        1.2994       -.16059E-06    .21066E-04
  13  Prefactor     .10000E-03    15.463       -.12676E-06** at limit **
  14  Prefactor     5.2813        10.543        .46801E-05   -.52210E-03
  15  Prefactor     3.9983        30.661        .57832E-05    .17177E-03
  16  Prefactor     2.8289        .30719       -.25153E-07   -.72676E-04
  17  Prefactor     .10000E-03    11.494        .55293E-07** at limit **
  18  Prefactor     6.0811        7.1628        .15053E-06   -.46399E-04
  19  Prefactor     .10000E-03    6.2427        .16522E-07** at limit **
  20  Normalizat    1.0938        .25563       -.10228E-05   -.26410E-04
  21  Prefactor     .94308        .13018       -.14051E-06   -.62272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.11381
  norm       = 31.4147
  norm       = 0.0001
  Prefactor  = 40.017
  Prefactor  = 55.8622
  norm       = 0.0001
  Prefactor  = 22.7181
  Prefactor  = 2.9382
  Prefactor  = 3.64951
  Prefactor  = 5.43649
  norm       = 1.91263
  Prefactor  = 0.0001
  Prefactor  = 5.28126
  Prefactor  = 3.99832
  Prefactor  = 2.82887
  Prefactor  = 0.0001
  Prefactor  = 6.08107
  Prefactor  = 0.0001
  Normalizat = 1.0938
  Prefactor  = 0.943085
 **********
 **   18 **HESSE 
 **********

 FCN=   9100.912     FROM HESSE     STATUS=OK           317 CALLS     2535 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1138        3.2899        .14113E-03   -1.5302    
   3  norm          31.415        35.510        .71496E-04   -1.4586    
   4  norm          .10000E-03    .58658        .10593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.017        25.471        .63372E-04   -1.4442    
   6  Prefactor     55.862        32.938        .53669E-04   -1.4212    
   7  norm          .10000E-03    2.5874        .14898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.718        19.387        .84026E-04   -1.4754    
   9  Prefactor     2.9382        5.6438        .23696E-03   -1.5365    
  10  Prefactor     3.6495        .44240        .19938E-04   -1.5326    
  11  Prefactor     5.4365        6.0497        .17234E-03   -1.5242    
  12  norm          1.9126        1.3102        .86574E-04   -1.5431    
  13  Prefactor     .10000E-03    15.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2813        11.094        .87452E-03   -1.5248    
  15  Prefactor     3.9983        32.609        .20199E-03   -1.5308    
  16  Prefactor     2.8289        .30835        .16143E-04   -1.5372    
  17  Prefactor     .10000E-03    11.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0811        7.1572        .16282E-03   -1.5215    
  19  Prefactor     .10000E-03    6.2812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0938        .29757        .41390E-03   -.89951    
  21  Prefactor     .94308        .15263        .23528E-03   -.94651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66974e-09
Minuit parameter uncertainties:
  1  7.36566e-05
  2  3.29002
  3  35.534
  4  5.37328e-06
  5  25.4776
  6  32.9484
  7  3.38273e-06
  8  19.3919
  9  5.64479
  10  0.442404
  11  6.05042
  12  1.31023
  13  2.70002e-05
  14  11.0979
  15  22.8536
  16  0.308348
  17  1.0839e-05
  18  7.15824
  19  1.53158e-06
  20  0.298029
  21  0.1527
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.650e+00  4.424e-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:  9.431e-01  1.527e-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.094e+00  2.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 225.35
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 9.30e-07 +/- 1.13e-07
Energy Flux (Fixed Index): 3.45e-04 +/- 4.18e-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) = 9097.19283303
delta logL = 3.71929894417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9097.19251621
delta logL = 3.71961576102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1559       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.4013       1.0000          .0000       10.000    
     3 'Normalizat'    .91303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0102       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=   9097.193     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1559        .85028        .39991E-02    .83855E-05
   2  Index1        2.4013        .25971        .50467E-01    .11983E-03
   3  Normalizat    .91309        .25878        .10049        .35342E-04
   4  Prefactor     1.0102        .13659        .43296E-01    .43960E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15592
  Index1     = 2.4013
  Normalizat = 0.913089
  Prefactor  = 1.01019
 **********
 **   18 **HESSE 
 **********

 FCN=   9097.193     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .44E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1559        .43336        .17679E-04   -1.5353    
   2  Index1        2.4013        .13345        .22153E-03   -.54655    
   3  Normalizat    .91309        .29344        .44533E-03   -.96002    
   4  Prefactor     1.0102        .15489        .22799E-03   -.92391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43734e-16
Minuit parameter uncertainties:
  1  0.433356
  2  0.133477
  3  0.293953
  4  0.154959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346951': 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) = 9097.19251619
delta logL = 3.71961578716

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.156e+00  4.334e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.401e+00  1.335e-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.010e+00  1.550e-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:  9.131e-01  2.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 232.74
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.40 +/- 0.13
Photon Flux (Free Index): 1.11e-06 +/- 1.38e-07
Energy Flux (Free Index): 2.94e-04 +/- 3.58e-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/346951/cmap_HighResolution_533001601_533260801_4FGL_J2232.6+1143_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.30e-07', energy_flux2='2.94e-04', photon_flux_error='1.13e-07', dlogl='3.72e+00', energy_flux='3.45e-04', photon_flux2='1.11e-06', job_status='DONE', time_completed='2021-09-28 14:14:03.963775', photon_index_error2='0.13', photon_index2='2.40', ts='225.35', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='3.58e-05', EG='1.09', time_epoch_completed='1632863643.96', return_code='0', job_id='346951', GAL2='1.01', EG2='0.91', return_code2='0', energy_flux_error='4.18e-05', photon_flux_error2='1.38e-07', ts2='232.74', photon_index='2.05' WHERE bin_id='1133' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:14:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 346951: <4FGL_J2232.6+1143_daily_bin1133> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1133 338.152 11.7306 533001601 533260801 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.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

