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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1090
RA = 338.152, Dec = 11.7306
tmin = 521856001, tmax = 522115201
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='346882', job_status='RUN', time_executed='2021-09-28 14:03:45.914611', time_epoch_executed='1632863025.91' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346882

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346882/ft1_4FGL_J2232.6+1143_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346882/ft2_4FGL_J2232.6+1143_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346882/ft1_4FGL_J2232.6+1143_daily_bin1090.fits outfile=/scratch/kocevski/346882/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1090.fits ra=338.152 dec=11.7306 rad=12.0 tmin=521856001.0 tmax=522115201.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.72
user 3.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346882/ft2_4FGL_J2232.6+1143_daily_bin1090.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/346882/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1090.fits evtable="EVENTS" outfile="/scratch/kocevski/346882/ft1_filtered_4FGL_J2232.6+1143_daily_bin1090.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/346882/ft1_filtered_4FGL_J2232.6+1143_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/346882/ft2_4FGL_J2232.6+1143_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/346882/ltcube_521856001_522115201_4FGL_J2232.6+1143_daily_bin1090.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/346882/ft2_4FGL_J2232.6+1143_daily_bin1090.fits
.....................!
real 12.08
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346882/ft1_filtered_4FGL_J2232.6+1143_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/346882/ft2_4FGL_J2232.6+1143_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/346882/ltcube_521856001_522115201_4FGL_J2232.6+1143_daily_bin1090.fits outfile=/scratch/kocevski/346882/expmap_521856001_522115201_4FGL_J2232.6+1143_daily_bin1090.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/346882/ltcube_521856001_522115201_4FGL_J2232.6+1143_daily_bin1090.fits
.....................!
real 189.58
user 185.26
sys 4.00

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/346882/ft1_filtered_4FGL_J2232.6+1143_daily_bin1090.fits scfile=/scratch/kocevski/346882/ft2_4FGL_J2232.6+1143_daily_bin1090.fits outfile=/scratch/kocevski/346882/cmap_521856001_522115201_4FGL_J2232.6+1143_daily_bin1090.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346882/ft1_filtered_4FGL_J2232.6+1143_daily_bin1090.fits scfile=/scratch/kocevski/346882/ft2_4FGL_J2232.6+1143_daily_bin1090.fits outfile=/scratch/kocevski/346882/cmap_HighResolution_521856001_522115201_4FGL_J2232.6+1143_daily_bin1090.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/346882/ft1_filtered_4FGL_J2232.6+1143_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/346882/ft2_4FGL_J2232.6+1143_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/346882/Model_4FGL_J2232.6+1143_daily_bin1090.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/346882/ft1_filtered_4FGL_J2232.6+1143_daily_bin1090.fits.....................!
real 96.15
user 94.78
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.0532       1.0000         .10000E-03   10000.    
     3 'norm      '    .40186E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .80841       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25906E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9146       1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.057       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6814       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6167       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4243       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2858       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2079       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76875       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.480       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .80555       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4421       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .79035       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96541       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=   9735.910     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2263 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.125       -.41081E-05** at limit **
   2  norm          8.0527        3.3613       -.30076E-06    .15723E-03
   3  norm          .10000E-03    120.11       -.17860E-05** at limit **
   4  norm          .80834        1.0038        .20459E-06    .23028E-03
   5  Prefactor     .10000E-03    43.366       -.64056E-06** at limit **
   6  Prefactor     .10000E-03    161.09       -.45890E-05** at limit **
   7  norm          3.9150        6.1008       -.54138E-06   -.14043E-04
   8  Prefactor     39.059        26.565       -.49675E-06    .64386E-05
   9  Prefactor     7.6804        15.108        .15515E-06    .16960E-05
  10  Prefactor     6.6165        .53163        .41215E-08    .25804E-03
  11  Prefactor     2.4248        7.0855       -.18125E-06   -.18189E-03
  12  norm          1.2857        1.0633        .71866E-07    .45419E-04
  13  Prefactor     .10000E-03    11.923       -.20051E-06** at limit **
  14  Prefactor     1.2071        23.044       -.25866E-05   -.25649E-04
  15  Prefactor     .10000E-03    10.530       -.30276E-06** at limit **
  16  Prefactor     .76873        .19097       -.83486E-08    .51586E-03
  17  Prefactor     46.480        44.021       -.94692E-06    .76259E-05
  18  Prefactor     .80538        1.0909        .13792E-06   -.96022E-03
  19  Prefactor     9.4422        8.8996       -.22516E-06    .44657E-05
  20  Normalizat    .79036        .24956        .22155E-05    .79347E-04
  21  Prefactor     .96541        .12139        .10041E-05    .13414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.05269
  norm       = 0.0001
  norm       = 0.808336
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.91497
  Prefactor  = 39.0585
  Prefactor  = 7.68035
  Prefactor  = 6.61649
  Prefactor  = 2.42484
  norm       = 1.28572
  Prefactor  = 0.0001
  Prefactor  = 1.20713
  Prefactor  = 0.0001
  Prefactor  = 0.768733
  Prefactor  = 46.4804
  Prefactor  = 0.805378
  Prefactor  = 9.44217
  Normalizat = 0.790358
  Prefactor  = 0.965408
 **********
 **   18 **HESSE 
 **********

 FCN=   9735.910     FROM HESSE     STATUS=OK           329 CALLS     2592 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    73.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.0527        3.3432        .11168E-03   -1.5140    
   3  norm          .10000E-03    124.11        .42523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .80834        .88553        .10401E-02   -1.5528    
   5  Prefactor     .10000E-03    44.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    154.20        .77392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9150        6.0771        .20391E-03   -1.5312    
   8  Prefactor     39.059        26.738        .64136E-04   -1.4457    
   9  Prefactor     7.6804        15.126        .14469E-03   -1.5154    
  10  Prefactor     6.6165        .53608        .18057E-04   -1.5193    
  11  Prefactor     2.4248        7.1899        .13143E-02   -1.5397    
  12  norm          1.2857        1.0724        .89430E-04   -1.5481    
  13  Prefactor     .10000E-03    11.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2071        23.623        .41202E-03   -1.5488    
  15  Prefactor     .10000E-03    10.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .76873        .19059        .20173E-04   -1.5533    
  17  Prefactor     46.480        44.073        .58812E-04   -1.4343    
  18  Prefactor     .80538        7.8311        .24921E-02   -1.5528    
  19  Prefactor     9.4422        8.9000        .13042E-03   -1.5093    
  20  Normalizat    .79036        .28238        .45307E-03   -1.0043    
  21  Prefactor     .96541        .14081        .22027E-03   -.93892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59436e-09
Minuit parameter uncertainties:
  1  0.000259858
  2  3.34333
  3  0.000230957
  4  0.885548
  5  0.000121052
  6  0.000602012
  7  6.07808
  8  26.7458
  9  15.1339
  10  0.536081
  11  7.19244
  12  1.07246
  13  9.28785e-06
  14  10.6846
  15  1.12378e-05
  16  0.190594
  17  44.1038
  18  5.02329
  19  8.90122
  20  0.282905
  21  0.14086
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  6.616e+00  5.361e-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.654e-01  1.409e-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:  7.904e-01  2.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 669.10
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.69e-06 +/- 1.37e-07
Energy Flux (Fixed Index): 6.25e-04 +/- 5.07e-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) = 9735.89685156
delta logL = 0.0128914069428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9735.89465564
delta logL = 0.0150873262555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5880       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0662       1.0000          .0000       10.000    
     3 'Normalizat'    .78035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96904       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=   9735.895     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5880        .56996        .39087E-02   -.25763E-03
   2  Index1        2.0662        .87067E-01    .39061E-01    .70307E-04
   3  Normalizat    .78035        .23225        .10275        .33789E-04
   4  Prefactor     .96904        .12173        .45879E-01   -.16814E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.58796
  Index1     = 2.0662
  Normalizat = 0.780347
  Prefactor  = 0.969043
 **********
 **   18 **HESSE 
 **********

 FCN=   9735.895     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .33E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5880        .52253        .17990E-04   -1.5195    
   2  Index1        2.0662        .80199E-01    .17222E-03   -.62705    
   3  Normalizat    .78035        .26444        .45549E-03   -1.0080    
   4  Prefactor     .96904        .13898        .21988E-03   -.93769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28353e-13
Minuit parameter uncertainties:
  1  0.522528
  2  0.080204
  3  0.264875
  4  0.139035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346882': 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) = 9735.89465564
delta logL = 0.0150873277726

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  6.588e+00  5.225e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.066e+00  8.020e-02  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:  9.690e-01  1.390e-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:  7.803e-01  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 674.70
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.07 +/- 0.08
Photon Flux (Free Index): 1.70e-06 +/- 1.46e-07
Energy Flux (Free Index): 6.20e-04 +/- 5.64e-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/346882/cmap_HighResolution_521856001_522115201_4FGL_J2232.6+1143_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.69e-06', energy_flux2='6.20e-04', photon_flux_error='1.37e-07', dlogl='1.51e-02', energy_flux='6.25e-04', photon_flux2='1.70e-06', job_status='DONE', time_completed='2021-09-28 14:15:19.192738', photon_index_error2='0.08', photon_index2='2.07', ts='669.10', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='5.64e-05', EG='0.79', time_epoch_completed='1632863719.19', return_code='0', job_id='346882', GAL2='0.97', EG2='0.78', return_code2='0', energy_flux_error='5.07e-05', photon_flux_error2='1.46e-07', ts2='674.70', photon_index='2.05' WHERE bin_id='1090' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:15:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 346882: <4FGL_J2232.6+1143_daily_bin1090> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1090> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:00:58 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:00:59 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:00:59 2021
Terminated at Tue Sep 28 14:15:19 2021
Results reported at Tue Sep 28 14:15:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1090 338.152 11.7306 521856001 522115201 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            861 sec.

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

