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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin622
RA = 183.001, Dec = -23.4494
tmin = 400550401, tmax = 400809601
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='406893', job_status='RUN', time_executed='2021-09-05 03:53:48.061935', time_epoch_executed='1630839228.06' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406893

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406893/ft1_4FGL_J1212.0-2326_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406893/ft2_4FGL_J1212.0-2326_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406893/ft1_4FGL_J1212.0-2326_daily_bin622.fits outfile=/scratch/kocevski/406893/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin622.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=400550401.0 tmax=400809601.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.75
user 4.16
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/406893/ft2_4FGL_J1212.0-2326_daily_bin622.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406893/ft2_4FGL_J1212.0-2326_daily_bin622.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/406893/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin622.fits evtable="EVENTS" outfile="/scratch/kocevski/406893/ft1_filtered_4FGL_J1212.0-2326_daily_bin622.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 1.78
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406893/ft1_filtered_4FGL_J1212.0-2326_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/406893/ft2_4FGL_J1212.0-2326_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/406893/ltcube_400550401_400809601_4FGL_J1212.0-2326_daily_bin622.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/406893/ft2_4FGL_J1212.0-2326_daily_bin622.fits
.....................!
real 12.62
user 11.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406893/ft1_filtered_4FGL_J1212.0-2326_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/406893/ft2_4FGL_J1212.0-2326_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/406893/ltcube_400550401_400809601_4FGL_J1212.0-2326_daily_bin622.fits outfile=/scratch/kocevski/406893/expmap_400550401_400809601_4FGL_J1212.0-2326_daily_bin622.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/406893/ltcube_400550401_400809601_4FGL_J1212.0-2326_daily_bin622.fits
.....................!
real 192.62
user 186.16
sys 5.19

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/406893/ft1_filtered_4FGL_J1212.0-2326_daily_bin622.fits scfile=/scratch/kocevski/406893/ft2_4FGL_J1212.0-2326_daily_bin622.fits outfile=/scratch/kocevski/406893/cmap_400550401_400809601_4FGL_J1212.0-2326_daily_bin622.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=183.001 yref=-23.4494 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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406893/ft1_filtered_4FGL_J1212.0-2326_daily_bin622.fits scfile=/scratch/kocevski/406893/ft2_4FGL_J1212.0-2326_daily_bin622.fits outfile=/scratch/kocevski/406893/cmap_HighResolution_400550401_400809601_4FGL_J1212.0-2326_daily_bin622.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=183.001 yref=-23.4494 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406893/ft1_filtered_4FGL_J1212.0-2326_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/406893/ft2_4FGL_J1212.0-2326_daily_bin622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406893/Model_4FGL_J1212.0-2326_daily_bin622.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/406893/ft1_filtered_4FGL_J1212.0-2326_daily_bin622.fits.....................!
real 57.72
user 56.27
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406893/ft1_filtered_4FGL_J1212.0-2326_daily_bin622.fits', '/scratch/kocevski/406893/ft2_4FGL_J1212.0-2326_daily_bin622.fits', expMap='/scratch/kocevski/406893/expmap_400550401_400809601_4FGL_J1212.0-2326_daily_bin622.fits', expCube='/scratch/kocevski/406893/ltcube_400550401_400809601_4FGL_J1212.0-2326_daily_bin622.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406893/Model_4FGL_J1212.0-2326_daily_bin622.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/406893/ft1_filtered_4FGL_J1212.0-2326_daily_bin622.fits
Spacecraft file(s): /scratch/kocevski/406893/ft2_4FGL_J1212.0-2326_daily_bin622.fits
Exposure map: /scratch/kocevski/406893/expmap_400550401_400809601_4FGL_J1212.0-2326_daily_bin622.fits
Exposure cube: /scratch/kocevski/406893/ltcube_400550401_400809601_4FGL_J1212.0-2326_daily_bin622.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406893/Model_4FGL_J1212.0-2326_daily_bin622.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) = 6518.40227018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9311       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2565       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.510       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .79003       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.605       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6395       1.0000         .10000E-03   10000.    
     9 'norm      '    .22492E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6462       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0197       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7927       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .43544       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4261       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.555       1.0000         .10000E-03   10000.    
    21 'norm      '    .12057E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5748       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5770       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6518.338     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2773 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9331        14.215       -.30007E-07    .24300E-05
   2  Prefactor     .10000E-03    16.288        .69572E-07** at limit **
   3  norm          3.2566        1.4762        .33305E-09    .59950E-04
   4  Prefactor     12.507        33.441        .22386E-06    .69365E-05
   5  Prefactor     .78802        6.9444        .30041E-05   -.31283E-03
   6  Prefactor     13.609        21.774       -.75930E-06    .78456E-05
   7  norm          .10000E-03    10.790       -.27823E-07** at limit **
   8  Prefactor     2.6820        19.025        .87229E-05    .46819E-03
   9  norm          .10003E-03    4.5234       -.32260E-05** at limit **
  10  Prefactor     .10000E-03    2.0137        .14280E-07** at limit **
  11  Prefactor     .10000E-03    26.738       -.15699E-06** at limit **
  12  Prefactor     .10000E-03    9.4552        .14612E-06** at limit **
  13  Prefactor     .10000E-03    6.2892       -.10533E-07** at limit **
  14  Prefactor     .10000E-03    14.099        .39112E-07** at limit **
  15  Prefactor     4.6512        39.852        .10209E-05    .17034E-04
  16  Prefactor     .98081        5.6198        .28411E-07    .71733E-04
  17  Prefactor     6.7978        3.0949       -.61325E-07    .14170E-03
  18  Prefactor     .57707        12.067        .11832E-05   -.23429E-03
  19  norm          2.4262        1.2453        .15707E-06   -.80809E-03
  20  Prefactor     38.388        112.24       -.78470E-05   -.10224E-03
  21  norm          .10000E-03    8.7964       -.43122E-05** at limit **
  22  Prefactor     8.5792        9.5092        .28367E-05   -.38891E-03
  23  Normalizat    1.5771        .26090       -.19775E-06    .81374E-04
  24  Prefactor     .84501        .12494       -.49838E-06    .20746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.93312
  Prefactor  = 0.0001
  norm       = 3.25661
  Prefactor  = 12.5075
  Prefactor  = 0.788018
  Prefactor  = 13.6089
  norm       = 0.0001
  Prefactor  = 2.68196
  norm       = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.65121
  Prefactor  = 0.980811
  Prefactor  = 6.79777
  Prefactor  = 0.577072
  norm       = 2.42625
  Prefactor  = 38.3884
  norm       = 0.000100001
  Prefactor  = 8.57924
  Normalizat = 1.57705
  Prefactor  = 0.845008
 **********
 **   18 **HESSE 
 **********

 FCN=   6518.338     FROM HESSE     STATUS=OK           407 CALLS     3180 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9331        14.213        .12715E-03   -1.5078    
   2  Prefactor     .10000E-03    16.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2566        1.4767        .64101E-04   -1.5347    
   4  Prefactor     12.507        33.439        .11326E-03   -1.5001    
   5  Prefactor     .78802        6.6705        .39174E-03   -1.5530    
   6  Prefactor     13.609        21.686        .10859E-03   -1.4970    
   7  norm          .10000E-03    10.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6820        17.477        .25097E-03   -1.5380    
   9  norm          .10003E-03    17.756        .27800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0241        .11186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.4583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6512        39.803        .18671E-03   -1.5277    
  16  Prefactor     .98081        26.235        .33272E-02   -1.5510    
  17  Prefactor     6.7978        3.2855        .85599E-04   -1.5186    
  18  Prefactor     .57707        107.03        .52589E-02   -1.5556    
  19  norm          2.4262        1.2408        .30868E-03   -1.5396    
  20  Prefactor     38.388        111.70        .32275E-03   -1.4468    
  21  norm          .10000E-03    8.7313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.5792        9.2877        .68446E-03   -1.5122    
  23  Normalizat    1.5771        .30845        .31927E-03   -.75636    
  24  Prefactor     .84501        .14891        .20426E-03   -.98090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07779e-09
Minuit parameter uncertainties:
  1  14.218
  2  1.77323e-05
  3  1.4767
  4  33.4888
  5  4.58581
  6  21.6989
  7  2.90524e-05
  8  13.6984
  9  0.0013795
  10  6.03787e-06
  11  4.55996e-05
  12  1.5894e-05
  13  2.95187e-06
  14  8.63335e-06
  15  27.2369
  16  10.1498
  17  3.2856
  18  15.7451
  19  1.24086
  20  112.312
  21  0.000203731
  22  9.2893
  23  0.308824
  24  0.148977
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.952e-06  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.450e-01  1.490e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.577e+00  3.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 4.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406893/likelihoodResults_400550401_400809601_4FGL_J1212.0-2326_daily_bin622.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): 102
logL (Free Index) = 6518.33869768
delta logL = -0.000751639672671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6518.3379462
delta logL = -1.56061105372e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6518.338     FROM MIGRAD    STATUS=FAILED        87 CALLS      239 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10202E-03    50.202        .18142E-02** at limit **
   2  Index         1.8029        6.0032        .50000        .30133E-04
   3  Normalizat    1.5770        .17723E-01    .31927E-03   -.39597E-04
   4  Prefactor     .84501        .86858E-02    .20426E-03    .25881E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6518.338     FROM SIMPLEX   STATUS=UNCHANGED    121 CALLS      360 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10202E-03    50.202        .40067E-03** at limit **
   2  Index         1.8029        6.0032        .49305E-03    .30133E-04
   3  Normalizat    1.5770        .17723E-01    .30437E-05   -.39597E-04
   4  Prefactor     .84501        .86858E-02    .21469E-05    .25881E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6518.338     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      411 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    99.241        .36285E-02** at limit **
   2  Index         1.2234        6.7820        .50000        .18417E-07
   3  Normalizat    1.5771        .21116E-01    .12771E-04    .37603E-03
   4  Prefactor     .84501        .10348E-01    .81703E-05    .49703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.22345
  Normalizat = 1.57705
  Prefactor  = 0.845008
 **********
 **   18 **HESSE 
 **********

 FCN=   6518.338     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      440 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    461.05        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2234        5.6086        .50000       -.85613    
   3  Normalizat    1.5771        .47846E-01    .25542E-05   -.75636    
   4  Prefactor     .84501        .23445E-01    .16341E-05   -.98090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.31702e-11
Minuit parameter uncertainties:
  1  2.83907e-05
  2  1155.16
  3  0.047847
  4  0.0234452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406893': 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) = 6518.33794318
delta logL = 2.85898750008e-06

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.839e-05  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.223e+00  1.155e+03  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.450e-01  2.345e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.577e+00  4.785e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/406893/cmap_HighResolution_400550401_400809601_4FGL_J1212.0-2326_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-03', job_status='DONE', photon_flux_upper_limit='4.79e-08', time_completed='2021-09-05 04:05:50.615586', job_id='406893', GAL2='0.85', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1630839950.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.86e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='622' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:05:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 406893: <4FGL_J1212.0-2326_daily_bin622> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin622> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 03:50:38 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:50:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:50:39 2021
Terminated at Sun Sep  5 04:05:51 2021
Results reported at Sun Sep  5 04:05:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin622 183.001 -23.4494 400550401 400809601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

