/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 3 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2212.9-2526_daily_bin55
RA = 333.226, Dec = -25.4335
tmin = 253584001, tmax = 253843201
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='219678', job_status='RUN', time_executed='2021-09-28 06:55:41.843119', time_epoch_executed='1632837341.84' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219678

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219678/ft1_4FGL_J2212.9-2526_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219678/ft2_4FGL_J2212.9-2526_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219678/ft1_4FGL_J2212.9-2526_daily_bin55.fits outfile=/scratch/kocevski/219678/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin55.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=253584001.0 tmax=253843201.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 1.43
user 1.22
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/219678/ft2_4FGL_J2212.9-2526_daily_bin55.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219678/ft2_4FGL_J2212.9-2526_daily_bin55.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/219678/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin55.fits evtable="EVENTS" outfile="/scratch/kocevski/219678/ft1_filtered_4FGL_J2212.9-2526_daily_bin55.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219678/ft1_filtered_4FGL_J2212.9-2526_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/219678/ft2_4FGL_J2212.9-2526_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/219678/ltcube_253584001_253843201_4FGL_J2212.9-2526_daily_bin55.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/219678/ft2_4FGL_J2212.9-2526_daily_bin55.fits
.....................!
real 14.47
user 14.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219678/ft1_filtered_4FGL_J2212.9-2526_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/219678/ft2_4FGL_J2212.9-2526_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/219678/ltcube_253584001_253843201_4FGL_J2212.9-2526_daily_bin55.fits outfile=/scratch/kocevski/219678/expmap_253584001_253843201_4FGL_J2212.9-2526_daily_bin55.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/219678/ltcube_253584001_253843201_4FGL_J2212.9-2526_daily_bin55.fits
.....................!
real 190.30
user 185.06
sys 4.85

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 J2212.9-2526 @ 333.226 -25.4335

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/219678/ft1_filtered_4FGL_J2212.9-2526_daily_bin55.fits scfile=/scratch/kocevski/219678/ft2_4FGL_J2212.9-2526_daily_bin55.fits outfile=/scratch/kocevski/219678/cmap_253584001_253843201_4FGL_J2212.9-2526_daily_bin55.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=333.226 yref=-25.4335 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219678/ft1_filtered_4FGL_J2212.9-2526_daily_bin55.fits scfile=/scratch/kocevski/219678/ft2_4FGL_J2212.9-2526_daily_bin55.fits outfile=/scratch/kocevski/219678/cmap_HighResolution_253584001_253843201_4FGL_J2212.9-2526_daily_bin55.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=333.226 yref=-25.4335 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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219678/ft1_filtered_4FGL_J2212.9-2526_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/219678/ft2_4FGL_J2212.9-2526_daily_bin55.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219678/Model_4FGL_J2212.9-2526_daily_bin55.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/219678/ft1_filtered_4FGL_J2212.9-2526_daily_bin55.fits.....................!
real 55.42
user 54.07
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/219678/ft1_filtered_4FGL_J2212.9-2526_daily_bin55.fits', '/scratch/kocevski/219678/ft2_4FGL_J2212.9-2526_daily_bin55.fits', expMap='/scratch/kocevski/219678/expmap_253584001_253843201_4FGL_J2212.9-2526_daily_bin55.fits', expCube='/scratch/kocevski/219678/ltcube_253584001_253843201_4FGL_J2212.9-2526_daily_bin55.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/219678/Model_4FGL_J2212.9-2526_daily_bin55.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2212.9-2526'

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  5.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/219678/ft1_filtered_4FGL_J2212.9-2526_daily_bin55.fits
Spacecraft file(s): /scratch/kocevski/219678/ft2_4FGL_J2212.9-2526_daily_bin55.fits
Exposure map: /scratch/kocevski/219678/expmap_253584001_253843201_4FGL_J2212.9-2526_daily_bin55.fits
Exposure cube: /scratch/kocevski/219678/ltcube_253584001_253843201_4FGL_J2212.9-2526_daily_bin55.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/219678/Model_4FGL_J2212.9-2526_daily_bin55.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) = 6797.61056912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.536       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10883E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22993E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .53922E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.851       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0922       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17755E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .85369E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .39979E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3907       1.0000         .10000E-03   10000.    
    17 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10955E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11718E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.7031       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .56355       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8678       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79871       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6797.479     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3291 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.543        8.4609       -.29386E-07    .37633E-05
   2  Prefactor     .10000E-03    2.3414       -.58654E-07** at limit **
   3  Prefactor     .10000E-03    3.2768       -.34243E-07** at limit **
   4  norm          16.615        9.5434       -.29688E-07    .13412E-03
   5  Prefactor     .10000E-03    6.3326        .11501E-06** at limit **
   6  Prefactor     .10000E-03    4.0252       -.11484E-07** at limit **
   7  Prefactor     .10000E-03    15.692       -.40593E-06** at limit **
   8  norm          .10000E-03    2.1040       -.10201E-06** at limit **
   9  Prefactor     46.935        17.327       -.35182E-06    .17318E-03
  10  norm          2.0923        .48060        .23901E-07    .20306E-02
  11  Prefactor     .10000E-03    21.953       -.44535E-05** at limit **
  12  Prefactor     33.654        20.709        .42468E-06    .79774E-04
  13  Prefactor     .10000E-03    5.7567       -.43255E-07** at limit **
  14  Prefactor     .10000E-03    175.75       -.33449E-06** at limit **
  15  norm          .10000E-03    9.0605       -.94465E-07** at limit **
  16  Prefactor     4.3919        6.2388       -.32102E-06    .46735E-04
  17  norm          .10000E-03    1.0304       -.21184E-06** at limit **
  18  Prefactor     .10000E-03    19.495        .53548E-06** at limit **
  19  Prefactor     .10000E-03    3.3435       -.68160E-07** at limit **
  20  norm          3.7030        3.4477        .14838E-06   -.34575E-03
  21  Prefactor     .54153        26.644        .28732E-05   -.18591E-03
  22  Prefactor     3.8758        6.6290       -.79053E-06   -.47989E-03
  23  norm          .10000E-03    .35443        .39803E-07** at limit **
  24  Prefactor     .10000E-03    2.3859        .77936E-08** at limit **
  25  Normalizat    .79883        .17255        .17016E-05    .19853E-03
  26  Prefactor     .96426        .13695        .28968E-08    .29256E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.6151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.9352
  norm       = 2.09228
  Prefactor  = 0.0001
  Prefactor  = 33.6541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.39189
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.70298
  Prefactor  = 0.541529
  Prefactor  = 3.87585
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.798828
  Prefactor  = 0.964257
 **********
 **   18 **HESSE 
 **********

 FCN=   6797.479     FROM HESSE     STATUS=OK           458 CALLS     3749 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.543        8.4768        .10887E-03   -1.4972    
   2  Prefactor     .10000E-03    2.3534        .12323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2803        .14576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.615        9.4664        .98181E-04   -1.4893    
   5  Prefactor     .10000E-03    6.3500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0268        .16154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.055        .21382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.935        17.201        .58579E-04   -1.4337    
  10  norm          2.0923        .46596        .25448E-04   -1.5419    
  11  Prefactor     .10000E-03    26.176        .36028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.654        20.451        .69040E-04   -1.4547    
  13  Prefactor     .10000E-03    22.114        .36606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    178.10        .38990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.0804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3919        6.2175        .19221E-03   -1.5289    
  17  norm          .10000E-03    4.3848        .16032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3546        .14726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7030        3.4071        .13307E-03   -1.5323    
  21  Prefactor     .54153        168.32        .43268E-02   -1.5561    
  22  Prefactor     3.8758        11.075        .20089E-03   -1.5314    
  23  norm          .10000E-03    .65694        .82882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3995        .12432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .79883        .20388        .26875E-03   -1.0011    
  26  Prefactor     .96426        .16444        .20451E-03   -.93931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24212e-09
Minuit parameter uncertainties:
  1  8.47759
  2  4.37412e-06
  3  3.38013e-06
  4  9.46725
  5  1.00793e-05
  6  3.23911e-06
  7  4.68207e-05
  8  2.09636e-06
  9  17.203
  10  0.465962
  11  7.43785e-05
  12  20.455
  13  0.000108726
  14  0.00026518
  15  1.26933e-05
  16  6.21843
  17  5.48244e-05
  18  0.000148243
  19  5.21043e-06
  20  3.40733
  21  19.1474
  22  11.0813
  23  3.96246e-05
  24  3.86581e-06
  25  0.204075
  26  0.164523
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  3.365e+01  2.046e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  9.643e-01  1.645e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  7.988e-01  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.13
Ra Dec: 333.226 -25.433
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 6.28e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 1.55e-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) = 6796.48051033
delta logL = 0.998620168129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6796.4274672
delta logL = 1.05166330005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0984       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8219       1.0000          .0000       10.000    
     3 'Normalizat'    .69837       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0310       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6796.427     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      266 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0941        22.095        .57596E-02    .24834E-02
   2  Index         3.8226        2.2517        .82158E-01    .56546E-03
   3  Normalizat    .69829        .60757E-01    .64572E-01    .12984E-03
   4  Prefactor     1.0311        .49780E-01    .41183E-01   -.85524E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09408
  Index      = 3.82263
  Normalizat = 0.698291
  Prefactor  = 1.03109
 **********
 **   18 **HESSE 
 **********

 FCN=   6796.427     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      297 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0941        33.064        .65090E-04   -1.5356    
   2  Index         3.8226        2.9316        .33300E-02   -.23771    
   3  Normalizat    .69829        .18077        .28569E-03   -1.0396    
   4  Prefactor     1.0311        .15114        .19861E-03   -.91700    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.86462e-10
Minuit parameter uncertainties:
  1  20.2428
  2  3.14705
  3  0.180926
  4  0.151202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219678': 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): 102
logL (Free Index) = 6796.42746666
delta logL = 1.05166384084

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  3.094e+00  2.024e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  3.823e+00  3.147e+00  0.000e+00  1.000e+01 (-1.000e+00)
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.031e+00  1.512e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  6.983e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.68
Ra Dec: 333.226 -25.433
Photon Index (Free Index): 3.82 +/- 3.15
Photon Flux (Free Index): 1.14e-07 +/- 5.42e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/219678/cmap_HighResolution_253584001_253843201_4FGL_J2212.9-2526_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.28e-08', energy_flux2='1.76e-05', photon_flux_error='3.81e-08', dlogl='1.05e+00', energy_flux='2.56e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-28 07:06:26.435110', photon_index_error2='3.15', photon_index2='3.82', ts='4.13', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.80', time_epoch_completed='1632837986.44', return_code='0', job_id='219678', GAL2='1.03', EG2='0.70', return_code2='102', energy_flux_error='1.55e-05', photon_flux_error2='5.42e-08', ts2='6.68', photon_index='2.26' WHERE bin_id='55' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:06:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 219678: <4FGL_J2212.9-2526_daily_bin55> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin55> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:55:28 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:55:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:55:30 2021
Terminated at Tue Sep 28 07:06:27 2021
Results reported at Tue Sep 28 07:06:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin55 333.226 -25.4335 253584001 253843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2212.9-2526 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   642.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            659 sec.

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

